
The code is familiar; for the most part it’s copied verbatim from Listing 7.3.
Note, however, that it does not explicitly parse the document (there is no
parse() function). Instead, the content of the XML frame is accessed
directly through the DOM interface.
<INPUT TYPE=”BUTTON”
ONCLICK=”convert(controls,parent.xml.document)”
VALUE=”Convert”>
Editors
XML editors also use DOM. For example, XMetaL from SoftQuad exposes
the current document through DOM.
For example, macros can access the document to create tables of contents,
indeXEs, and so on. Using macros and DOM, you can customize the editor
to suit your needs.
Databases
An XML database stores XML documents ...