public class DomHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DomHelper.DOMBuilder
The
DOMBuilder is a utility class that will generate a W3C
DOM Document from SAX events. |
static class |
DomHelper.StartHandler |
Constructor and Description |
---|
DomHelper() |
Modifier and Type | Method and Description |
---|---|
static Location |
getLocationObject(Element element) |
static Document |
parse(InputSource inputSource)
Creates a W3C Document that remembers the location of each element in
the source file.
|
static Document |
parse(InputSource inputSource,
Map<String,String> dtdMappings)
Creates a W3C Document that remembers the location of each element in
the source file.
|
public static final String XMLNS_URI
public static Document parse(InputSource inputSource)
getLocationObject(Element)
method.inputSource
- the inputSource to read the document frompublic static Document parse(InputSource inputSource, Map<String,String> dtdMappings)
getLocationObject(Element)
method.inputSource
- the inputSource to read the document fromdtdMappings
- a map of DTD names and public idsCopyright © 2000–2020 Apache Software Foundation. All rights reserved.