SetSystemID

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 object

strSystemID

A string that specifies the new system ID


Return value

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.appeon&.com/dtd/datadef.dtd")
MessageBox ("Get System ID", &
   pbdom_doc.GetDocType().GetSystemID())

The returned string from the GetSystemID call is:

"http://www.appeon.com/dtd/datadef.dtd"

The final DOCTYPE definition in the document is:

<!DOCTYPE abc SYSTEM "http://www.appeon.com/dtd/datadef.dtd"[<!ELEMENT abc (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT inner_data (#PCDATA)>]>

See also

GetPublicID

GetSystemID

SetPublicID