DOCTYPE Object

Properties Methods Associated objects

The DOCTYPE object stores the information that is associated with a Document Type Declaration tag, <!DOCTYPE ... >.

Properties

ExtDTD

A boolean value, true if there is an external DTD, otherwise false.

ExtID

A sting value, which should be either "SYSTEM" or "PUBLIC" this value is used if extDTD is true, and is a reference to the type of external identifier, either a system or a public identifier.

PubIDLiteral

A String value used if ExtDTD is true, it gives the public identifier for the external DTD, this is only used in the case where extID="PUBLIC".

SystemLiteral

A String value used if ExtDTD is true, it gives the system identifier for the external DTD, if extID="PUBLIC", this is used in conjuction with PubIDLiteral.

Methods

(none)

Associated objects

(none)

Remarks

There is no type checking on the saving of documents and there is no type checking in the values you put into these properties (name and value). This means that you have to check the types going into the new document yourself. It will produce an error when loading an XML document with invalid characters in these properties.

When saving a document, XMLParser is semi inteligent, if your value contains a ' then it will surround the value with "s otherwise it will surround it with a '. This will not solve the problem completely, if your value has both 's and "s in it then the value will not be rejected, it will just be enclosed in "s as explained by the above rule, as it contains a '.