PBDOM_DOCTYPE:
SetSystemID method
Description
Sets
the system ID of an externally referenced DTD.
Syntax
pbdom_doctype_name.SetSystemID(strSystemID)
|
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:
<!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:
PBDOM_DOCUMENT pbdom_doc
pbdom_doc.GetDocType().SetSystemID &
("http://www.sybase&.com/dtd/datadef.dtd")
MessageBox ("Get System ID", &
pbdom_doc.GetDocType().GetSystemID())
The returned string from the GetSystemID call
is:
"http://www.sybase.com/dtd/datadef.dtd"
The final DOCTYPE definition in the document is:
<!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