Lightweight Java API to represent XML Infoset that is based on Common API for XML Pull Parsing and works very well with XPP3/MX1.
See also short presentation about XB1 design [40K PPT]
Basics
Samples
It is based on Jaxen (to avoid JAR hell the package was renamed to put it in XB1 package namespace)
Make sure to include xpp3_xpath-VERSION.jar
import org.xmlpull.v1.builder.xpath.Xb1XPath; org.xmlpull.v1.builder.XmlDocument doc = Xb1XPath xpath = new Xb1XPath( xpathExpr ); Iterator resultsIter = xpath.selectNodes( doc ).iterator(); System.out.println(builder.serializeToString(resultsIter.next()));
Read more on on how to use Jaxen XPath API and learn XPath by using XPath Explorer (which is based on Jaxen).
XB1 API and implementation is part of XPP3/MXP1 and you can also browse online CVS with XB1 source code
| Aleksander Andrzej Slominski | Last modified: $Id: index.html,v 1.2 2004/12/08 21:08:48 aslom Exp $ |