DOM Interfaces Properties and Methods
Because of space constraints, this section looks at the properties and methods of selected interfaces only.
The Document Interface
The Document interface represents an XML document. The Document interface has the following properties:
doctype— Read-only, of type DocumentType
implementation— Read-only, of type DOMImplementation
documentElement— Of type Element
The methods of the Document interface can be used to create new parts of an XML document or to retrieve information about the document. The Document interface has the following methods:
createAttribute(name)— Returns an Attr object
createAttributeNS(namespaceURI, qualifiedName)— Returns an Attr object
createCDATASection(data)— Returns a CDATASection ...
Get Sams Teach Yourself XML in 10 Minutes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.