public class XMLDocument extends Object
XMLProcessor, XMLSchema, XMLTextProcessor, and
 XSLTransformation it provides a simple API for XML parsing,
 validation, and transformation.| Constructor and Description | 
|---|
| XMLDocument(DOMSource aDoc) | 
| XMLDocument(String aSystemId,
           InputStream aStream) | 
| XMLDocument(String aSystemId,
           LSResourceResolver aResolver) | 
| XMLDocument(String aSystemId,
           String aContents) | 
| XMLDocument(URI aUri) | 
| Modifier and Type | Method and Description | 
|---|---|
| Document | getDocument() | 
| DOMSource | getDOMSource() | 
| String | print(boolean aPrettyPrint)Prints an XML document. | 
| void | print(OutputStream aOs,
     boolean aPrettyPrint)Prints an XML document. | 
| XMLDocument | process(XMLProcessor aProcessor) | 
| XMLDocument | transform(String aSystemId,
         URIResolver aResolver) | 
| XMLDocument | transform(URI aUri) | 
| XMLDocument | validate(String aSystemId,
        LSResourceResolver aResolver) | 
| XMLDocument | validate(URI aUri) | 
| String | write(XMLTextProcessor aProcessor) | 
| void | write(XMLTextProcessor aProcessor,
     OutputStream aOs) | 
| static XMLDocument | xmldocument(String aSystemId,
           InputStream aStream) | 
| static XMLDocument | xmldocument(String aSystemId,
           LSResourceResolver aResolver) | 
| static XMLDocument | xmldocument(String aSystemId,
           String aContents) | 
| static XMLDocument | xmldocument(URI aUri) | 
public XMLDocument(DOMSource aDoc)
public XMLDocument(URI aUri) throws IOException, XMLException
IOExceptionXMLExceptionpublic XMLDocument(String aSystemId, String aContents) throws XMLException
XMLExceptionpublic XMLDocument(String aSystemId, InputStream aStream) throws XMLException
XMLExceptionpublic XMLDocument(String aSystemId, LSResourceResolver aResolver) throws XMLException
XMLExceptionpublic static XMLDocument xmldocument(URI aUri) throws IOException, XMLException
IOExceptionXMLExceptionpublic static XMLDocument xmldocument(String aSystemId, String aContents) throws XMLException
XMLExceptionpublic static XMLDocument xmldocument(String aSystemId, InputStream aStream) throws XMLException
XMLExceptionpublic static XMLDocument xmldocument(String aSystemId, LSResourceResolver aResolver) throws XMLException
XMLExceptionpublic DOMSource getDOMSource()
public Document getDocument()
public XMLDocument process(XMLProcessor aProcessor) throws XMLException
XMLExceptionpublic void write(XMLTextProcessor aProcessor, OutputStream aOs) throws XMLException
XMLExceptionpublic String write(XMLTextProcessor aProcessor) throws XMLException
XMLExceptionpublic XMLDocument transform(URI aUri) throws XMLException
XMLExceptionpublic XMLDocument transform(String aSystemId, URIResolver aResolver) throws XMLException
XMLExceptionpublic XMLDocument validate(URI aUri) throws XMLException
XMLExceptionpublic XMLDocument validate(String aSystemId, LSResourceResolver aResolver) throws XMLException
XMLExceptionpublic void print(OutputStream aOs, boolean aPrettyPrint)
aOs - Output stream to print on.aPrettyPrint - Pretty print or not.public String print(boolean aPrettyPrint)
aPrettyPrint - Pretty print or not.Copyright © 2025. All rights reserved.