SetInternalSubset
Description
Sets the data for the internal subset of the PBDOM_DOCTYPE.
Syntax
|
1 |
pbdom_doctype_name.SetInternalSubset() |
|
Argument |
Description |
|---|---|
|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE object |
Return value
PBDOM_DOCTYPE. The current PBDOM_DOCTYPE with the new internal
subset.
Examples
Suppose you have the following DTD declaration:
|
1 |
<!DOCTYPE abc [<!ELEMENT abc (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT inner_data (#PCDATA)>]> |
The following code displays the internal subset in a message
box:
|
1 2 3 4 5 6 7 8 |
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:
|
1 |
"<!-- 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
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest