Examples of selectSingleNode()


Examples of org.jdom.xpath.XPath.selectSingleNode()

            System.out.println("file:" + f.getAbsolutePath());
            Document document = builder.build(f);
            System.out.println(document.getRootElement().getName());
       
            XPath xpath = XPath.newInstance("/spooler/answer");
            Element e = (Element)xpath.selectSingleNode(document);
            String timeStamp = e.getAttributeValue("time");
            System.out.println("Timestamp:" + timeStamp);

            xpath = XPath.newInstance("/spooler/answer/state");
            e = (Element)xpath.selectSingleNode(document);
View Full Code Here

Examples of org.jdom.xpath.XPath.selectSingleNode()

            Element e = (Element)xpath.selectSingleNode(document);
            String timeStamp = e.getAttributeValue("time");
            System.out.println("Timestamp:" + timeStamp);

            xpath = XPath.newInstance("/spooler/answer/state");
            e = (Element)xpath.selectSingleNode(document);
            String pid = e.getAttributeValue("pid");
            System.out.println("pid:" + pid);
           
            SystemProcess process = processes.select(pid);
View Full Code Here

Examples of org.jdom.xpath.XPath.selectSingleNode()

            System.out.println("pid:" + pid);
           
            SystemProcess process = processes.select(pid);

            xpath = XPath.newInstance("//spooler/answer/state/allocations");
            e = (Element)xpath.selectSingleNode(document);
            String count = e.getAttributeValue("count");
            String size = e.getAttributeValue("size");

            String reserved_virtual = "";
            String total_virtual = "";
View Full Code Here

Examples of org.jdom.xpath.XPath.selectSingleNode()

            Document document = builder.build(f);
            System.out.println(document.getRootElement().getName() + "file:" + f.getAbsolutePath());
       
            boolean schedulerProcessFound = false;
            XPath xpath = XPath.newInstance("//Table[@name='TableWorkingSet']/Item/Data[@name='process' and . = 'scheduler']/following-sibling::node()[@name='pid']");
            Element e = (Element)xpath.selectSingleNode(document);
            if (e != null) {
                schedulerProcessFound = true;           
                String pid = e.getText();
                System.out.println("pid:" + pid);
                xpath = XPath.newInstance("//Table[@name='TableWorkingSet']/Item/Data[@name='process' and . = 'scheduler']/following-sibling::node()[@name='private']");
View Full Code Here

Examples of org.jdom.xpath.XPath.selectSingleNode()

            if (e != null) {
                schedulerProcessFound = true;           
                String pid = e.getText();
                System.out.println("pid:" + pid);
                xpath = XPath.newInstance("//Table[@name='TableWorkingSet']/Item/Data[@name='process' and . = 'scheduler']/following-sibling::node()[@name='private']");
                e = (Element)xpath.selectSingleNode(document);
                String privateBytes = e.getText();
                System.out.println("private bytes:" + privateBytes);   
               
                xpath = XPath.newInstance("//Table[@name='collection']/Item/Data[@name='start']");
                e = (Element)xpath.selectSingleNode(document);
View Full Code Here

Examples of org.jdom.xpath.XPath.selectSingleNode()

                e = (Element)xpath.selectSingleNode(document);
                String privateBytes = e.getText();
                System.out.println("private bytes:" + privateBytes);   
               
                xpath = XPath.newInstance("//Table[@name='collection']/Item/Data[@name='start']");
                e = (Element)xpath.selectSingleNode(document);
                String year = e.getAttributeValue("year");
                String month = e.getAttributeValue("month");
                String day = e.getAttributeValue("day");
                String hour = e.getAttributeValue("hour");
                String minute = e.getAttributeValue("minute");
View Full Code Here

Examples of org.jdom2.xpath.XPath.selectSingleNode()

     */
    public Object selectSingleNode(final Element element, final String query) {
        final XPath xPathExpression = getXPathExpression(query);

        try {
            return xPathExpression.selectSingleNode(element);
        } catch (final JDOMException e) {
            e.printStackTrace();
        }
        return null;
    }
View Full Code Here

Examples of org.openntf.domino.utils.xml.XMLDocument.selectSingleNode()

      // Set some defaults
      Session session = getAncestorSession();
      String dataDirectory = session.getEnvironmentString("Directory", true);
      XMLDocument dxl = getDxl();
      dxl.selectSingleNode("/scriptlibrary/code/javaproject").setAttribute("codepath", dataDirectory);

    } catch (IOException e) {
      DominoUtils.handleException(e);
    }
  }
View Full Code Here

Examples of org.openntf.domino.utils.xml.XMLNode.selectSingleNode()

    XMLNode node = node_.selectSingleNode("code[@event='defaultvalue']");

    if (node == null) {
      return null;
    } else {
      node = node.selectSingleNode("formula");
    }
    return node;
  }

  private XMLNode createDefaultValueFormulaNode() {
View Full Code Here

Examples of org.xmlpull.v1.builder.xpath.Xb1XPath.selectSingleNode()

                  {
                    xpathObject2 = new Xb1XPath("components");
                    cachedXPathObjects.put("components", xpathObject2);
                  }

                  XmlElement componentsElement = (XmlElement)xpathObject2.selectSingleNode( componentElement );
              //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("XPP3 componentsElement:" + componentsElement, t.getElapsedTime());
              //logger.info("componentsElement:" + componentsElement);

              //groups = new String[]{CacheController.getPooledString(1, contentVO.getId())};
             
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.