XPath tutorial

What is XPath?

XPath is a standard, confirmed by the World Wide Web Consortium (W3C) as a common language to access XML documents. The language is much more powerful than XML DOM, wich reults in much, much less code to write.

Example XML:

<root>
        <section>Hello!</section>
        <section>World!</section>
</root>
Example XPath:
/root/section
This would give back a list with two values, "Hello!" and "World!".

Of course XPath is much more powerful. The different features will be discussed in this chapter.