PBDOM_DOCTYPE:
SetSystemID method
Description
Sets
the system ID of an externally referenced DTD.
Syntax
1 |
<span>pbdom_doctype_name</span>.SetSystemID(<span></span><span>strSystemID</span>) |
Argument |
Description |
---|---|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE |
strSystemID |
A string that specifies the new system |
Return Values
PBDOM_DOCTYPE.
Examples
Suppose you have the following DTD declaration:
1 |
<!DOCTYPE abc [<!ELEMENT abc (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT inner_data (#PCDATA)>]> |
The following PowerScript sets the system ID and then gets
it and returns it in a message box:
1 |
PBDOM_DOCUMENT pbdom_doc<br>pbdom_doc.GetDocType().SetSystemID &<br>   ("http://www.sap&.com/dtd/datadef.dtd")<br>MessageBox ("Get System ID", &<br>   pbdom_doc.GetDocType().GetSystemID()) |
The returned string from the GetSystemID call
is:
1 |
"http://www.sap.com/dtd/datadef.dtd" |
The final DOCTYPE definition in the document is:
1 |
<!DOCTYPE abc SYSTEM "http://www.sybase.com/dtd/datadef.dtd"[<!ELEMENT abc (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT inner_data (#PCDATA)>]> |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest