Package org.apache.struts2.util
Class DomHelper
java.lang.Object
org.apache.struts2.util.DomHelper
Helper class to create and retrieve information from location-enabled
 DOM-trees.
- Since:
- 1.2
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classTheDOMBuilderis a utility class that will generate a W3C DOM Document from SAX events.static class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LocationgetLocationObject(Element element) static Documentparse(InputSource inputSource) Creates a W3C Document that remembers the location of each element in the source file.static Documentparse(InputSource inputSource, Map<String, String> dtdMappings) Creates a W3C Document that remembers the location of each element in the source file.
- 
Constructor Details- 
DomHelperpublic DomHelper()
 
- 
- 
Method Details- 
getLocationObject
- 
parseCreates a W3C Document that remembers the location of each element in the source file. The location of element nodes can then be retrieved using thegetLocationObject(Element)method.- Parameters:
- inputSource- the inputSource to read the document from
- Returns:
- the W3C Document
 
- 
parseCreates a W3C Document that remembers the location of each element in the source file. The location of element nodes can then be retrieved using thegetLocationObject(Element)method.- Parameters:
- inputSource- the inputSource to read the document from
- dtdMappings- a map of DTD names and public ids
- Returns:
- the W3C Document
 
 
-