public class XmlWriter extends LoggableOp
_verbose
Constructor and Description |
---|
XmlWriter() |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
makeAttributeType(java.lang.String elname,
java.lang.String aname)
Generate the attribute type as a normalised string.
|
(package private) java.lang.String |
makeAttributeValue(java.lang.String elname,
java.lang.String aname)
Generate a full attribute default value.
|
(package private) java.lang.String |
makeExternalIdentifiers(java.lang.String pubid,
java.lang.String sysid)
Construct a string equivalent of external identifiers.
|
(package private) java.lang.String |
makeLiteral(java.lang.String data)
Quote a literal, and escape any '"' or non-ASCII characters within it.
|
void |
setXMLVersion(java.lang.String v)
Set the XML version string.
|
void |
write(XmlDocument document)
Write the given XmlDocument to its URL.
|
void |
write(XmlDocument document,
java.io.Writer out)
Write the given XmlDocument to a given Writer.
|
void |
write(XmlElement e,
java.io.Writer out,
java.lang.String prefix)
Deprecated.
Use XmlElement.writeXML instead.
|
void |
writeDTD(XmlDocument document,
java.io.Writer out)
Write the DTD of the given XmlDocument to a given Writer.
|
(package private) void |
writeDTDAttributes(java.lang.String elname,
java.io.Writer out)
Dump attributes for an element.
|
void |
writeDTDElements(java.io.Writer out)
Produce normalised declarations for all elements.
|
void |
writeDTDEntities(java.io.Writer out)
Produce normalised declarations for all general entities.
|
void |
writeDTDNotations(java.io.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, unindent
public void setXMLVersion(java.lang.String v)
public void write(XmlDocument document) throws java.io.IOException
java.io.IOException
public void write(XmlDocument document, java.io.Writer out) throws java.io.IOException
java.io.IOException
@Deprecated public void write(XmlElement e, java.io.Writer out, java.lang.String prefix) throws java.io.IOException
java.io.IOException
public void writeDTD(XmlDocument document, java.io.Writer out) throws java.io.IOException
java.io.IOException
public void writeDTDNotations(java.io.Writer out) throws java.io.IOException
java.io.IOException
public void writeDTDEntities(java.io.Writer out) throws java.io.IOException
java.io.IOException
public void writeDTDElements(java.io.Writer out) throws java.io.IOException
java.io.IOException
void writeDTDAttributes(java.lang.String elname, java.io.Writer out) throws java.io.IOException
java.io.IOException
makeAttributeType(String, String)
,
makeAttributeValue(String, String)
java.lang.String makeAttributeType(java.lang.String elname, java.lang.String aname)
java.lang.String makeAttributeValue(java.lang.String elname, java.lang.String aname)
makeLiteral(java.lang.String)
java.lang.String makeExternalIdentifiers(java.lang.String pubid, java.lang.String sysid)
makeLiteral(java.lang.String)
java.lang.String makeLiteral(java.lang.String data)