PBDOM_DOCTYPE:
GetPublicID method
Description
Retrieves
the public ID of an externally reference DTD declared in the DOCTYPE.
Syntax
|
1 |
<span>pbdom_doctype_name</span>.GetPublicID(<span></span>) |
|
Argument |
Description |
|---|---|
|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE |
Return Values
String. If no public ID is referenced,
an empty string is returned.
Examples
Suppose you have the following DTD declaration:
|
1 |
<!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:
|
1 |
pbdom_doctype pbdom_doctype_1<br>pbdom_document pbdom_doc<br> <br>pbdom_doctype_1 = pbdom_doc.GetDocType()<br>MessageBox ("DocType Public ID", &<br>   pbdom_doctype_1.GetPublicID())<br>MessageBox ("DocType System ID", &<br>   pbdom_doctype_1.GetSystemID()) |
The returned strings from the calls to GetPublicID and GetSystemID are:
|
1 |
"-//MyCompany//DTD//EN"<br>"http://mycompany.com/dtd/mydoctype.dtd" |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest