Package io.sf.carte.doc.dom
Class XMLDocumentBuilder
java.lang.Object
javax.xml.parsers.DocumentBuilder
io.sf.carte.doc.dom.XMLDocumentBuilder
Generic 
DocumentBuilder for XML documents.- 
Constructor SummaryConstructorsConstructorDescriptionXMLDocumentBuilder(DOMImplementation domImpl) XMLDocumentBuilder(DOMImplementation domImpl, SAXParserFactory parserFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionGet theSAXParserFactoryobject used by this builder.booleanbooleanbooleanparse(InputSource is) voidreset()voidvoidvoidsetHTMLProcessing(boolean html) Configure the builder to process the document as XHTML.voidsetIgnoreElementContentWhitespace(boolean ignore) Configure the builder to ignore (or not) element content whitespace when building the document.voidsetIgnoreNotSpecifiedAttributes(boolean ignore) Configure the builder to ignore (or not) the attributes that were notspecified, when building the document.voidsetStrictErrorChecking(boolean strictErrorChecking) Set thestrictErrorCheckingflag on the documents created by the DOM implementation.voidsetXMLReader(XMLReader xmlReader) Set theXMLReaderto be used when parsing.Methods inherited from class javax.xml.parsers.DocumentBuilderparse, parse, parse, parse
- 
Constructor Details- 
XMLDocumentBuilder
- 
XMLDocumentBuilder
 
- 
- 
Method Details- 
parse- Specified by:
- parsein class- DocumentBuilder
- Throws:
- SAXException
- IOException
 
- 
isNamespaceAwarepublic boolean isNamespaceAware()- Specified by:
- isNamespaceAwarein class- DocumentBuilder
 
- 
isValidatingpublic boolean isValidating()- Specified by:
- isValidatingin class- DocumentBuilder
 
- 
isXIncludeAwarepublic boolean isXIncludeAware()- Overrides:
- isXIncludeAwarein class- DocumentBuilder
 
- 
setEntityResolver- Specified by:
- setEntityResolverin class- DocumentBuilder
 
- 
setErrorHandler- Specified by:
- setErrorHandlerin class- DocumentBuilder
 
- 
newDocument- Specified by:
- newDocumentin class- DocumentBuilder
 
- 
getDOMImplementation- Specified by:
- getDOMImplementationin class- DocumentBuilder
 
- 
getSAXParserFactoryGet theSAXParserFactoryobject used by this builder.- Returns:
- the SAXParserFactoryobject.
 
- 
getSchema- Overrides:
- getSchemain class- DocumentBuilder
 
- 
setHTMLProcessingpublic void setHTMLProcessing(boolean html) Configure the builder to process the document as XHTML.Default is false.- Parameters:
- html- set it to- trueto process the document as HTML.
 
- 
setIgnoreElementContentWhitespacepublic void setIgnoreElementContentWhitespace(boolean ignore) Configure the builder to ignore (or not) element content whitespace when building the document.Default is false.- Parameters:
- ignore- set it to- trueto ignore element content whitespace.
 
- 
setIgnoreNotSpecifiedAttributespublic void setIgnoreNotSpecifiedAttributes(boolean ignore) Configure the builder to ignore (or not) the attributes that were notspecified, when building the document.Default is true.- Parameters:
- ignore- set it to- falseto set attributes that have a default value but were not specified.
 
- 
setStrictErrorCheckingpublic void setStrictErrorChecking(boolean strictErrorChecking) Set thestrictErrorCheckingflag on the documents created by the DOM implementation.Default is true.- Parameters:
- strictErrorChecking- the value of the- strictErrorCheckingflag.
 
- 
setXMLReaderSet theXMLReaderto be used when parsing.If no XMLReaderis set, one will be created by theSAXParserFactory.- Parameters:
- xmlReader- the XMLReader.
 
- 
resetpublic void reset()- Overrides:
- resetin class- DocumentBuilder
 
 
-