Sign in Join
FPDoc Onlineexperiment

TDOMDocumentType.PublicID property

Member of TDOMDocumentTypepublicIn unit Laz2_DOM

Public Identifier for the Document Type declaration.

Declaration

pascal
property PublicID: DOMString read FPublicID;

Description

PublicID is a read-only DOMString property which contains the public identifier for the external subset in the document type declaration. It contains the value passed as an argument to the CreateDocumentType method in TDOMImplementation, and stored in the new class instance.

PublicID was introduced in the SGML specifications (the predecessor of XML), and had an elaborate Formal Public Identifier format. For DOM and XML, the content has generally been simplified to an organization identifier and URL where the DTD is located. For example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

   or

  <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN"
    "http://www.oasis-open.org/docbook/xml/5.0/docbookx.dtd">

Use SystemID for the location on the local file system where the DTD is stored.

PublicID and SystemID are not validated in the DOM implementation (unlike XML). Both (or neither) of the values can be specified. URLs or local file paths are not verified.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.