Document Class

Represents an in-memory XML or XHTML document.

Definition

Line 11 of System.Dom/Document.cm

Inheritance

Constructors & Destructor

public Document()
public suppress Document(Document&&)
public suppress Document(const Document&)

Member Functions

public override void Accept(Visitor& visitor)
public override Node* AppendChild(UniquePtr<Node>&& newChild)
public void CheckValidInsert(Node* node, Node* refNode)
public override UniquePtr<Node> CloneNode(bool deep)
public Element* DocumentElement()
public Element* GetElementById(const String<uchar>& elementId)
public override Node* InsertBefore(UniquePtr<Node>&& newChild, Node* refChild)
public void InternalInvalidateIndex()
public override UniquePtr<Node> RemoveChild(Node* oldChild)
public override UniquePtr<Node> ReplaceChild(UniquePtr<Node>&& newChild, Node* oldChild)
public void SetXmlEncoding(const String<uchar>& xmlEncoding_)
public void SetXmlStandalone(bool xmlStandalone_)
public void SetXmlVersion(const String<uchar>& xmlVersion_)
public override void Write(CodeFormatter& formatter)
public const String<uchar>& XmlEncoding() const
public bool XmlStandalone() const
public const String<uchar>& XmlVersion() const
public suppress Document& operator=(Document&&)
public suppress Document& operator=(const Document&)

Member Variables

private Element* documentElement
private HashMap<String<uchar>, Element*, Hasher<String<uchar>>, EqualTo<String<uchar>>> elementsByIdMap
private bool indexValid
private String<uchar> xmlEncoding
private bool xmlStandalone
private String<uchar> xmlVersion

Constructor& Destructor Details

Document Constructor

public Document()

Definition
Line 15 of System.Dom/Document.cm


Document Constructor

public suppress Document(Document&&)

Definition
Line 14 of System.Dom/Document.cm


Document Constructor

public suppress Document(const Document&)

Definition
Line 13 of System.Dom/Document.cm


Member Function Details

Accept Member Function

public override void Accept(Visitor& visitor)

Definition
Line 154 of System.Dom/Document.cm


AppendChild Member Function

public override Node* AppendChild(UniquePtr<Node>&& newChild)

Definition
Line 145 of System.Dom/Document.cm


CheckValidInsert Member Function

public void CheckValidInsert(Node* node, Node* refNode)

Definition
Line 70 of System.Dom/Document.cm


CloneNode Member Function

public override UniquePtr<Node> CloneNode(bool deep)

Definition
Line 88 of System.Dom/Document.cm


DocumentElement Member Function

public Element* DocumentElement()

Definition
Line 21 of System.Dom/Document.cm


GetElementById Member Function

public Element* GetElementById(const String<uchar>& elementId)

Definition
Line 53 of System.Dom/Document.cm


InsertBefore Member Function

public override Node* InsertBefore(UniquePtr<Node>&& newChild, Node* refChild)

Definition
Line 98 of System.Dom/Document.cm


InternalInvalidateIndex Member Function

public void InternalInvalidateIndex()

Definition
Line 49 of System.Dom/Document.cm


RemoveChild Member Function

public override UniquePtr<Node> RemoveChild(Node* oldChild)

Definition
Line 129 of System.Dom/Document.cm


ReplaceChild Member Function

public override UniquePtr<Node> ReplaceChild(UniquePtr<Node>&& newChild, Node* oldChild)

Definition
Line 107 of System.Dom/Document.cm


SetXmlEncoding Member Function

public void SetXmlEncoding(const String<uchar>& xmlEncoding_)

Definition
Line 41 of System.Dom/Document.cm


SetXmlStandalone Member Function

public void SetXmlStandalone(bool xmlStandalone_)

Definition
Line 25 of System.Dom/Document.cm


SetXmlVersion Member Function

public void SetXmlVersion(const String<uchar>& xmlVersion_)

Definition
Line 33 of System.Dom/Document.cm


Write Member Function

public override void Write(CodeFormatter& formatter)

Definition
Line 80 of System.Dom/Document.cm


XmlEncoding Member Function

public const String<uchar>& XmlEncoding()

Definition
Line 45 of System.Dom/Document.cm


XmlStandalone Member Function

public bool XmlStandalone()

Definition
Line 29 of System.Dom/Document.cm


XmlVersion Member Function

public const String<uchar>& XmlVersion()

Definition
Line 37 of System.Dom/Document.cm


operator= Member Function

public suppress Document& operator=(Document&&)

Definition
Line 20 of System.Dom/Document.cm


operator= Member Function

public suppress Document& operator=(const Document&)

Definition
Line 19 of System.Dom/Document.cm