Document

Class representing an XML document.

Constructors

this
this(string s)

Constructs a Document by parsing XML text.

this
this(const(Tag) tag)

Constructs a Document from a Tag.

Members

Functions

opCmp
int opCmp(Object o)

Compares two Documents

opEquals
bool opEquals(Object o)

Compares two Documents for equality

toHash
size_t toHash()

Returns the hash of a Document

toString
string toString()

Returns the string representation of a Document. (That is, the complete XML of a document).

Variables

epilog
string epilog;

Contains all text which occurs after the root element. Defaults to the empty string

prolog
string prolog;

Contains all text which occurs before the root element. Defaults to <?xml version="1.0"?>

Inherited Members

From Element

opOpAssign
void opOpAssign(Text item)

Append a text item to the interior of this element

opOpAssign
void opOpAssign(CData item)

Append a CData item to the interior of this element

opOpAssign
void opOpAssign(Comment item)

Append a comment to the interior of this element

opOpAssign
void opOpAssign(ProcessingInstruction item)

Append a processing instruction to the interior of this element

opOpAssign
void opOpAssign(Element item)

Append a complete element to the interior of this element

opEquals
bool opEquals(Object o)

Compares two Elements for equality

opCmp
int opCmp(Object o)

Compares two Elements

toHash
size_t toHash()

Returns the hash of an Element

text
string text(DecodeMode mode)

Returns the decoded interior of an element.

pretty
string[] pretty(uint indent)

Returns an indented string representation of this item

toString
string toString()

Returns the string representation of an Element

Meta

Suggestion Box / Bug Report