15-Minute Primer: XPath
Page 1 of 5    
 

The Concept

XPath provides a convenient, standardized means of drawing a value (or a group of values) from an XML document.  The basic concept is simple—take the concept of a path, as used in mechanisms and Web URLs, and apply it to XML.  This makes sense because, like a file system or the Web, XML documents are hierarchical.  They consist of a group of named entities (primarily elements) that can be nested within one another.  Just like a file or a Web page, the position of any element can be identified using its "path."

 
 
 
 
 

Note: The sample code in this tutorial makes use of the Tectonic programming language
(featured in the Delve SOA Fast-Prototyping Toolkit)



   

Not sure exactly what the heck XML is? 
Get started with this
excellent wikipedia article:
> Click Here!

Want to learn
the XML basics? 

We recommend
great books like:
> "XML in a Nutshell"

> "XML Crash Course"
Sponsors
Our primary sponsor is Cretaceous Software: 
Check out Cretaceous Software products!
> Click Here

 

 
 

© Copyright 2007 All Rights Reserved. XML How-To (xmlhowto.org)