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

tag
Tag tag;

The start tag of the element

items
Item[] items;

The element's items

texts
Text[] texts;

The element's text items

cdatas
CData[] cdatas;

The element's CData items

comments
Comment[] comments;

The element's comments

pis
ProcessingInstruction[] pis;

The element's processing instructions

elements
Element[] elements;

The element's child elements

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

isEmptyXML
bool isEmptyXML [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta