Chapter 3 DynaScript Predefined Objects
Represents the document type definition (DTD) portion of an XML document.
To use a DOMDocumentType's property:
DOMDocumentType.propertyName
To use a DOMDocumentType's method:
DOMDocumentType.MethodName( parameter )
The DOMDocumentType
object
is accessible through the docType
property
of a DOMDocument
object.
The DOMDocumentType
object
provides access to the list of entities and notations declared in
the DTD. DOM Level 1 does not support access to any other portion
of the DTD.
The DOMDocumentType
object has
no methods of its own, but it does inherit all of the properties
and methods from the DOMNode
object
as well as the properties defined here.
This example assigns a DOMDocumentType
object
to the variable dtd.
var xmlDoc = document.value.xml ;
var domDoc = toDOMDocument( xmlDoc );
var dtd = domDoc.doctype;
Copyright © 1999 Sybase, Inc. All rights reserved. |
![]() |