Platinum Partner

Java DOM: Sample XPath Query


    try
    {
      XPath xpath = XPathFactory.newInstance().newXPath();
      Element e = (Element) xpath.evaluate("/Archive/Section/Description", parentNode,
          XPathConstants.NODE);
      printXmlNode(e);
    }
    catch (XPathExpressionException e)
    {
      e.printStackTrace();
    }
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}