PBDOM_DOCTYPE:
SetInternalSubset method
Description
Sets
the data for the internal subset of the PBDOM_DOCTYPE.
Syntax
|
1 |
<span>pbdom_doctype_name</span>.SetInternalSubset(<span></span>) |
|
Argument |
Description |
|---|---|
|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE |
Return Values
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 |
string strInternalSubset<br>pbdom_document pbdom_doc<br> <br>strInternalSubset = pbdom_doc.GetDocType().GetInternalSubset()<br>strInternalSubset += "<!ELEMENT another_data(#PCDATA)>"<br>pbdom_doc.GetDocType().SetInternalSubset (strInternalSubset)<br>MessageBox ("Get Internal Subset", &<br>   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