Section 25.85. DOMImplementation.createDocumentType( ): create a DocumentType node


25.85. DOMImplementation.createDocumentType( ): create a DocumentType node

DOM Level 2 Core:

25.85.1. Synopsis

 DocumentType createDocumentType(String qualifiedName,                                 String publicId,                                 String systemId)     tHRows DOMException; 

25.85.1.1. Arguments

qualifiedName

The name of the document type. If you are using XML namespaces, this may be a qualified name that specifies a namespace prefix and a local name separated by a colon.


publicId

The public identifier of the document type, or null.


systemId

The system identifier of the document type, or null. This argument typically specifies the local filename of a DTD file.

25.85.1.2. Returns

A new DocumentType object with an ownerDocument property of null.

25.85.1.3. Throws

This method may throw a DOMException with one of the following code values:


INVALID_CHARACTER_ERR

qualifiedName contains an illegal character.


NAMESPACE_ERR

qualifiedName is malformed.


NOT_SUPPORTED_ERR

The current implementation does not support XML documents and has not implemented this method.

25.85.2. Description

This method creates a new DocumentType node. This method specifies only an external subset of the document type. As of Level 2, the DOM standard does not provide any way to specify an internal subset, and the returned DocumentType does not define any Entity or Notation nodes. This method is useful only with XML documents.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net