net.sf.xmlmatcher.tools
Class XPathGen

java.lang.Object
  extended by net.sf.xmlmatcher.tools.XPathGen

public class XPathGen
extends java.lang.Object


Constructor Summary
XPathGen()
           
 
Method Summary
static java.lang.String generate(org.w3c.dom.Element element)
           
static java.lang.String generate(org.w3c.dom.Element element, boolean showIndexes, boolean includeNsPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathGen

public XPathGen()
Method Detail

generate

public static java.lang.String generate(org.w3c.dom.Element element)
Returns:
Absolute path to given Element from root (as XPath string)

generate

public static java.lang.String generate(org.w3c.dom.Element element,
                                        boolean showIndexes,
                                        boolean includeNsPrefix)
Parameters:
showIndexes - if true XPath will contain index qualifier siblings have the same tags
includeNsPrefix - path will include namespace prefixes for each element (if any)
Returns:
Absolute path to given Element from root (as XPath string)


Copyright © 2007. All Rights Reserved.