public class XmlWriter extends LoggableOp
_verbose| Constructor and Description |
|---|
XmlWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setXMLVersion(String v)
Set the XML version string.
|
void |
write(XmlDocument document)
Write the given XmlDocument to its URL.
|
void |
write(XmlDocument document,
Writer out)
Write the given XmlDocument to a given Writer.
|
void |
write(XmlElement e,
Writer out,
String prefix)
Deprecated.
Use XmlElement.writeXML instead.
|
void |
writeDTD(XmlDocument document,
Writer out)
Write the DTD of the given XmlDocument to a given Writer.
|
void |
writeDTDElements(Writer out)
Produce normalised declarations for all elements.
|
void |
writeDTDEntities(Writer out)
Produce normalised declarations for all general entities.
|
void |
writeDTDNotations(Writer out)
Produce normalised declarations for all notations.
|
getErrorCount, getErrorStream, getLineNumber, getWarningCount, indent, isVerbose, logError, logError, logError, logInfo, logInfo, logWarning, logWarning, logWarning, reset, setErrorStream, setVerbose, unindentpublic void setXMLVersion(String v)
public void write(XmlDocument document) throws IOException
IOExceptionpublic void write(XmlDocument document, Writer out) throws IOException
IOExceptionpublic void write(XmlElement e, Writer out, String prefix) throws IOException
IOExceptionpublic void writeDTD(XmlDocument document, Writer out) throws IOException
IOExceptionpublic void writeDTDNotations(Writer out) throws IOException
IOExceptionmakeExternalIdentifiers(java.lang.String, java.lang.String)public void writeDTDEntities(Writer out) throws IOException
public void writeDTDElements(Writer out) throws IOException
IOExceptionwriteDTDAttributes(java.lang.String, java.io.Writer)Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.