XPath

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
Implementations
  Specifications
Tutorials
  

Articles:
  • The Java XPath API by Elliotte Rusty Harold   - [Clicks: 4]
    XPath expressions are much easier to write than detailed Document Object Model (DOM) navigation code. When you need to extract information from an XML document, the quickest and simplest way is to embed an XPath expression inside your Java program. Java 5 introduces the javax.xml.xpath package, an XML object-model independent library for querying documents with XPath.
    http://www.ibm.com/developerworks/java/library/x-javaxpathapi.html - Aug, 2008
  • Process instance data using schema information by Xia Li
    In this article, you meet a function library implemented in pure XSLT that enables applications to take advantage of XPath 2 schema-related node tests which are only available in schema-aware processors. You will also see how to decouple the validation process from the instance data processing. You can use the XSLT function library with any basic XSLT 2 processor to employ the schema information to process instance data—and apply the same approach equally to XQuery applications, too.
    [Includes sample code]
    http://www.ibm.com/developerworks/xml/library/x-schemanode/index.html - Aug, 2008
  • Evaluating XPaths from the Java platform by Brett D. McLaughlin   - [Clicks: 5]
    No data format is harder to search than XML, but with the fairly recent introduction of the XQuery API, XML searches are now flexible and easy to perform. For Java programmers who work with XML documents using SAX, DOM, JDOM, JAXP, and more, the XQuery API for Java is a welcome addition to the programmer's toolkit. Now the power of XQuery is available to Java programmers without resorting to system calls or unwieldy APIs, all in a Sun-standardized package.
    [Includes sample code]
    http://www.ibm.com/developerworks/java/library/x-xpathjava/index.html - Jul, 2008
  • How XQuery extends XPath by Donnie Cameron   - [Clicks: 9]
    XPath and XQuery are similar in some ways. XPath is even an integral part of XQuery. Both languages allow you to select bits of data from an XML document or an XML document store. In this article, you'll find descriptions of XPath and XQuery, and learn how XQuery extends XPath.
    http://www.ibm.com/developerworks/xml/library/x-xqueryxpath.html - Apr, 2008

[Top]

Implementations:
  • jaxen   - [Clicks: 13]
    The jaxen project is a Java XPath Engine. jaxen is a universal object model walker, capable of evaluating XPath expressions across multiple models. Currently supported are dom4j and JDOM.
    http://jaxen.org/

[Top]

Specifications:
  • XPath   - [Clicks: 8]
    XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer.
    http://www.w3.org/TR/xpath

[Top]

Tutorials:
  • Locate specific sections of your XML documents with XPath, Part 2 by Brett D. McLaughlin   - [Clicks: 3]
    Part 2 of this tutorial focuses on using predicates and predicate matching in your XPaths. It covers the various selectors XPath provides for being as specific or generic in a search as you like. It also shows you how to build complex predicates into a SQL-like set of queries, all using only standard XPath syntax. You'll begin to understand the ideal applications of XPath, and you'll know when XPath is best used alongside another XML technology such as XQuery. Finally, you'll see how XPath deals with data types, particularly when you perform comparisons of attribute values to numeric values.
    [Formats: html, pdf]
    http://www.ibm.com/developerworks/edu/x-dw-x-introxpath2.html - Jun, 2008
  • Locate specific sections of your XML documents with XPath, Part 1 by Brett D. McLaughlin   - [Clicks: 4]
    Part 1 of this tutorial details the XPath specification, which allows you to specify particular sections of an XML document using a directory-like syntax. You'll learn the syntax of XPath, and you'll work with tools that let you experiment with XPath. By the time you complete this tutorial, you'll be well beyond the basics of XPath. You'll have a solid understanding of nodes, wildcards, and how XPaths are evaluated, and you'll be able to combine the results of two different XPaths.
    [Formats: html, pdf]
    http://www.ibm.com/developerworks/edu/x-dw-x-introxpath1.html - Jun, 2008

[Top]