com.opensymphony.xwork.util
Class DomHelper
java.lang.Object
com.opensymphony.xwork.util.DomHelper
public class DomHelper
- extends Object
Helper class to create and retrieve information from location-enabled
DOM-trees.
- Since:
- 1.2
- Version:
- $Date: 2007-11-26 03:02:22 -0600 (Mon, 26 Nov 2007) $ $Id: DomHelper.java 1687 2007-11-26 09:02:22Z tm_jee $
- Author:
- Don Brown, tmjee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLNS_URI
public static final String XMLNS_URI
- See Also:
- Constant Field Values
DomHelper
public DomHelper()
getLocationObject
public static Location getLocationObject(Element element)
parse
public static Document parse(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
getLocationObject(Element)
method.
- Parameters:
inputSource
- the inputSource to read the document from
parse
public static Document parse(InputSource inputSource,
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
getLocationObject(Element)
method.
- Parameters:
inputSource
- the inputSource to read the document fromdtdMappings
- a map of DTD names and public ids