public interface ConfiguredDOMBuilder
Implementations for configuring the readers using DOM are according to How to Validate XML using Java.
Modifier and Type | Method and Description |
---|---|
SaxErrorData |
getParsingErrors()
Returns errors collected during parsing; may be empty but never null.
|
org.w3c.dom.Document |
readAndValidate(java.io.File xmlFile)
Reads and validates
xmlFile and returns it as DOM document. |
org.w3c.dom.Document |
readAndValidate(org.xml.sax.InputSource source)
Reads and validates
source and returns it as DOM document. |
org.w3c.dom.Document |
readAndValidate(XmlString xmlText)
Reads and validates
xmlText and returns it as DOM document. |
SaxErrorData getParsingErrors()
org.w3c.dom.Document readAndValidate(java.io.File xmlFile) throws XmlParsingException
xmlFile
and returns it as DOM document.XmlParsingException
org.w3c.dom.Document readAndValidate(XmlString xmlText) throws XmlParsingException
xmlText
and returns it as DOM document.XmlParsingException
org.w3c.dom.Document readAndValidate(org.xml.sax.InputSource source) throws XmlParsingException
source
and returns it as DOM document.XmlParsingException
Copyright 2009-2015 Tatjana (Tanja) Kostic