O'Reilly logo

Sams Teach Yourself XML in 10 Minutes by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required