com.opensymphony.xwork.util
Class DomHelper
java.lang.Object
com.opensymphony.xwork.util.DomHelper
public class DomHelper
- extends java.lang.Object
Helper class to create and retrieve information from location-enabled
DOM-trees.
- Since:
- 1.2
Field Summary |
static java.lang.String |
XMLNS_URI
|
Method Summary |
static Location |
getLocationObject(org.w3c.dom.Element element)
|
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource inputSource)
Creates a W3C Document that remembers the location of each element in
the source file. |
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource inputSource,
java.util.Map dtdMappings)
Creates a W3C Document that remembers the location of each element in
the source file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLNS_URI
public static final java.lang.String XMLNS_URI
- See Also:
- Constant Field Values
DomHelper
public DomHelper()
getLocationObject
public static Location getLocationObject(org.w3c.dom.Element element)
parse
public static org.w3c.dom.Document parse(org.xml.sax.InputSource inputSource)
- Creates a W3C Document that remembers the location of each element in
the source file. The location of element nodes can then be retrieved
using the
#getLocation(Element)
method.
- Parameters:
inputSource
- the inputSource to read the document from
parse
public static org.w3c.dom.Document parse(org.xml.sax.InputSource inputSource,
java.util.Map dtdMappings)
- Creates a W3C Document that remembers the location of each element in
the source file. The location of element nodes can then be retrieved
using the
#getLocation(Element)
method.
- Parameters:
inputSource
- the inputSource to read the document fromdtdMappings
- a map of DTD names and public ids