| java.lang.Object com.rimfaxe.xml.xmlreader.XPathVisitor
XPathVisitor | class XPathVisitor implements Visitor(Code) | | Visitor that evaluates an xpath expression relative to a context
node by walking over the parse tree of the expression.
Copyright (C) 2002 Hewlett-Packard Company.
This file is part of Sparta, an XML Parser, DOM, and XPath library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU
Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your option)
any later version. This library is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
version: $Date: 2003/01/27 23:30:58 $ $Revision: 1.6 $ author: Eamonn O'Brien-Strain |
Constructor Summary | |
public | XPathVisitor(Element context, XPath xpath) Evaluate a relative xpath expression relative to a context
element by walking over the parse tree of th expression. | public | XPathVisitor(Document context, XPath xpath) Evaluate an absolute xpath expression in a document by walking
over the parse tree of th expression. |
XPathVisitor | public XPathVisitor(Element context, XPath xpath) throws XPathException(Code) | | Evaluate a relative xpath expression relative to a context
element by walking over the parse tree of th expression.
|
XPathVisitor | public XPathVisitor(Document context, XPath xpath) throws XPathException(Code) | | Evaluate an absolute xpath expression in a document by walking
over the parse tree of th expression.
|
getFirstResultElement | public Element getFirstResultElement()(Code) | | Get the first element that match the xpath expression, or null.
|
getFirstResultString | public String getFirstResultString()(Code) | | Get the first string that match the xpath expression, or null.
|
getResultEnumeration | public Enumeration getResultEnumeration()(Code) | | Get all the elements or strings that match the xpath expression.
|
|
|