|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xmlbeans.impl.xpathgen.XPathGenerator
public class XPathGenerator
Generates an XPath String that points to a given position in an XML document
| Constructor Summary | |
|---|---|
XPathGenerator()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
generateXPath(XmlCursor node,
XmlCursor context,
javax.xml.namespace.NamespaceContext nsctx)
Generates an XPath pointing to the position in the document indicated by node. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPathGenerator()
| Method Detail |
|---|
public static java.lang.String generateXPath(XmlCursor node,
XmlCursor context,
javax.xml.namespace.NamespaceContext nsctx)
throws XPathGenerationException
node.
If the context parameter is null, the XPath is absolute, otherwise the
XPath will be relative to the position indicated by context.
Note: the cursor position for the node parameter is not preserved
node - the position in the document that the generated path will point tocontext - the context node; the generated path will be relative to it if not null and if
pointing to an element on the path from the document root to nodensctx - a namespace context that will be used to obtain prefixes; a (non-default)
namespace mapping must be available for all required namespace URIs
String
XPathGenerationException - if the path could not be generated: the cursor is in a bad
position (like over a comment) or no prefix mapping was found for one of the namespace URIs
public static void main(java.lang.String[] args)
throws XmlException
XmlException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||