![]() |
ScroogeXHTML for Object Pascal 9.3
|
document object which stores and builds the complete output More...
Public Member Functions | |
TSimpleDomDocument () | |
Creates a new instance of the TSimpleDomDocument class. | |
Add (const string S) | |
Adds a string to the document. | |
AddEncoded (const string S) | |
Adds an encoded string to the document. |
document object which stores and builds the complete output
A class which represents a document.
TSimpleDomDocument::TSimpleDomDocument | ( | ) |
Creates a new instance of the TSimpleDomDocument class.
This constructor initializes a new instance of the TSimpleDomDocument class, and automatically adds an empty starting paragraph to the document.
TSimpleDomDocument::Add | ( | const string | S | ) |
Adds a string to the document.
This method appends the specified string to the current text node in the last paragraph of the document. If the current text node does not exist, a new one will be created automatically.
S | The string to be added to the document. |
TSimpleDomDocument::AddEncoded | ( | const string | S | ) |
Adds an encoded string to the document.
This method appends an encoded version of the specified string to the current text node in the last paragraph of the document. It sets the text node as encoded before adding the string. A new text node is added before and after the encoded string to separate it from other content for better control over formatting.
S | The string to be added in its encoded form. |
Implements ISimpleDomDocument.