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
IOException
XMLException
public XMLDocument(String aSystemId, String aContents) throws XMLException
XMLException
public XMLDocument(String aSystemId, InputStream aStream) throws XMLException
XMLException
public XMLDocument(String aSystemId, LSResourceResolver aResolver) throws XMLException
XMLException
public static XMLDocument xmldocument(URI aUri) throws IOException, XMLException
IOException
XMLException
public static XMLDocument xmldocument(String aSystemId, String aContents) throws XMLException
XMLException
public static XMLDocument xmldocument(String aSystemId, InputStream aStream) throws XMLException
XMLException
public static XMLDocument xmldocument(String aSystemId, LSResourceResolver aResolver) throws XMLException
XMLException
public DOMSource getDOMSource()
public Document getDocument()
public XMLDocument process(XMLProcessor aProcessor) throws XMLException
XMLException
public void write(XMLTextProcessor aProcessor, OutputStream aOs) throws XMLException
XMLException
public String write(XMLTextProcessor aProcessor) throws XMLException
XMLException
public XMLDocument transform(URI aUri) throws XMLException
XMLException
public XMLDocument transform(String aSystemId, URIResolver aResolver) throws XMLException
XMLException
public XMLDocument validate(URI aUri) throws XMLException
XMLException
public XMLDocument validate(String aSystemId, LSResourceResolver aResolver) throws XMLException
XMLException
public 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 © 2024. All rights reserved.