What is XPath Nodes in XML
In this article I will explain how to select the unknown nodes in XPath.
In this article I will explain how to select the unknown element in Xml.The XPath wildcards can be used to select unknown XML elements. The following are some wildcards and their description.
- * : Matches any element node
- @* : Matches any attribute node
- node() : Matches any node of any kind
<?xml version="1.0" encoding="utf-8" ?>
The following lines listed some path expressions and the result of the expressions
/Employee/* : Selects all the child nodes of the Employee element.
//* : Selects all elements in the document.
//address[@*] : Selects all address elements which have any attribute.
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here