SetSystemID
Description
Sets the system ID of an externally referenced DTD.
Syntax
|
1 |
pbdom_doctype_name.SetSystemID(strSystemID) |
|
Argument |
Description |
|---|---|
|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE object |
|
strSystemID |
A string that specifies the new system |
Return value
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 2 3 4 5 |
PBDOM_DOCUMENT pbdom_doc pbdom_doc.GetDocType().SetSystemID & ("http://www.appeon&.com/dtd/datadef.dtd") MessageBox ("Get System ID", & pbdom_doc.GetDocType().GetSystemID()) |
The returned string from the GetSystemID call is:
|
1 |
"http://www.appeon.com/dtd/datadef.dtd" |
The final DOCTYPE definition in the document is:
|
1 |
<!DOCTYPE abc SYSTEM "http://www.appeon.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