nodenameSelects all nodes with the name “nodename”/Selects from the root node//Selects nodes in the document from the current node that match the selection no matter where they are.Selects the current node..Selects the parent of the current node@Selects attributesemployeeSelects all nodes with the name “employee”employees/employeeSelects all employee elements that are children of employees//employeeSelects all book elements no matter where they are in the documentRead full article from XML XPath Tutorial. XPath Parsing XML in Java
No comments:
Post a Comment