Package org.apache.openjpa.lib.xml
Class XMLFactory
- java.lang.Object
- 
- org.apache.openjpa.lib.xml.XMLFactory
 
- 
 public class XMLFactory extends java.lang.ObjectThe XMLFactory produces validating and non-validating DOM level 2 and SAX level 2 parsers and XSL transformers through JAXP. It uses caching to avoid repeatedly paying the relatively expensive runtime costs associated with resolving the correct XML implementation through the JAXP configuration mechanisms.- Author:
- Abe White
 
- 
- 
Constructor SummaryConstructors Constructor Description XMLFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static org.w3c.dom.DocumentgetDocument()Return a new DOM Document.static javax.xml.parsers.DocumentBuildergetDOMParser(boolean validating, boolean namespaceAware)Return a DocumentBuilder with the specified configuration.static javax.xml.parsers.SAXParsergetSAXParser(boolean validating, boolean namespaceAware)Return a SAXParser with the specified configuration.
 
- 
- 
- 
Method Detail- 
getSAXParserpublic static javax.xml.parsers.SAXParser getSAXParser(boolean validating, boolean namespaceAware)Return a SAXParser with the specified configuration.
 - 
getDOMParserpublic static javax.xml.parsers.DocumentBuilder getDOMParser(boolean validating, boolean namespaceAware)Return a DocumentBuilder with the specified configuration.
 - 
getDocumentpublic static org.w3c.dom.Document getDocument() Return a new DOM Document.
 
- 
 
-