GetPublicID
Description
Retrieves the public ID of an externally reference DTD declared in
the DOCTYPE.
Syntax
|
1 |
pbdom_doctype_name.GetPublicID() |
|
Argument |
Description |
|---|---|
|
pbdom_doctype_name |
The name of a PBDOM_DOCTYPE object |
Return value
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 2 3 4 5 6 7 8 |
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:
|
1 2 |
"-//MyCompany//DTD//EN" "http://mycompany.com/dtd/mydoctype.dtd" |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest