Package org.dom4j

Examples of org.dom4j.Node.selectNodes()


            final Node node = resultDoc.selectSingleNode("/joblist");
            final ArrayList<IStoredJob> list = new ArrayList<IStoredJob>();
            if (null == node) {
                return list;
            }
            final List items = node.selectNodes("job");
            if (null != items && items.size() > 0) {
                for (final Object o : items) {
                    final Node node1 = (Node) o;
                    final Node uuid = node1.selectSingleNode("uuid");
                    final Node id1 = node1.selectSingleNode("id");
View Full Code Here


        //extract job list
        final Document resultDoc = response.getResultDoc();
        final ArrayList<IStoredJob> list = new ArrayList<IStoredJob>();

        final Node jobs = resultDoc.selectSingleNode("/result/jobs");
        for (final Object job1 : jobs.selectNodes("job")) {
            final Node job = (Node) job1;
            final String id = job.selectSingleNode("@id").getStringValue();
            final String name = job.selectSingleNode("name").getStringValue();
            final String group = job.selectSingleNode("group").getStringValue();
            final String desc = job.selectSingleNode("description").getStringValue();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.