Description
Retrieves the public ID of an externally reference DTD declared in the DOCTYPE.
Syntax
pbdom_doctype_name.GetPublicID()
Return value
String.
If no public ID is referenced, an empty string is returned.
Examples
Suppose you have the following DTD declaration:
<!DOCTYPE Books PUBLIC "-//MyCompany//DTD//EN" "http://mycompany.com/dtd/mydoctype.dtd">
The following PowerScript code displays the public and system IDs in message boxes:
pbdom_doctype pbdom_doctype_1 pbdom_document pbdom_doc pbdom_doctype_1 = pbdom_doc.GetDocType() MessageBox ("DocType Public ID", & pbdom_doctype_1.GetPublicID()) MessageBox ("DocType System ID", & pbdom_doctype_1.GetSystemID())
The returned strings from the calls to GetPublicID and GetSystemID are:
"-//MyCompany//DTD//EN" "http://mycompany.com/dtd/mydoctype.dtd"
See also