Description
Sets the data for the internal subset of the PBDOM_DOCTYPE.
Syntax
pbdom_doctype_name.SetInternalSubset()
Return value
PBDOM_DOCTYPE. The current PBDOM_DOCTYPE with the new internal subset.
Examples
Suppose you have the following DTD declaration:
<!DOCTYPE abc [<!ELEMENT abc (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT inner_data (#PCDATA)>]>
The following code displays the internal subset in a message box:
string strInternalSubset
pbdom_document pbdom_doc
strInternalSubset = pbdom_doc.GetDocType().GetInternalSubset()
strInternalSubset += "<!ELEMENT another_data(#PCDATA)>"
pbdom_doc.GetDocType().SetInternalSubset (strInternalSubset)
MessageBox ("Get Internal Subset", &
pbdom_doc.GetDocType().GetInternalSubset())The returned string from the call to GetInternalSubset is:
"<!-- internal subset --> <!ELEMENT abc (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT inner_data (#PCDATA)> <!ELEMENT another_data (#PCDATA)>"
The new ELEMENT declaration for "another_data" is included in the final internal subset.
See also


