CustomXmlWriter

Customizable XML writer.

Members

Aliases

attrText
alias attrText = escapedText!(EscapeScope.attribute)

Write attribute contents.

putDoctype
deprecated alias putDoctype = doctype
Undocumented in source.
putText
deprecated alias putText = text
Undocumented in source.

Functions

addAttribute
void addAttribute(string value)

Write tag attribute.

addAttribute
void addAttribute(string name, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
comment
void comment(string text)

Write an XML comment.

doctype
void doctype(string text)

Write a DOCTYPE declaration.

endAttributes
void endAttributes()

Write end of attributes and begin tag contents.

endAttributesAndTag
void endAttributesAndTag()

Write end of attributes and tag.

endPI
void endPI()
Undocumented in source. Be warned that the author may not have intended to support it.
endTag
void endTag()

Write end of tag.

endTag
void endTag(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
startDocument
void startDocument()

Write the beginning of an XML document.

startPI
void startPI()

Write a processing instruction.

startPI
void startPI(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
startTag
void startTag()

Write opening a tag (no attributes).

startTag
void startTag(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
startTagWithAttributes
void startTagWithAttributes()

Write opening a tag (attributes follow).

startTagWithAttributes
void startTagWithAttributes(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
text
void text(char[] s)

Write plain text (escaping entities).

Mixins

__anonymous
mixin Formatter.Mixin!formatter
Undocumented in source.

Variables

formatter
Formatter formatter;

Formatter instance.

output
WRITER output;

You can set this to something to e.g. write to another buffer.

Meta