<?xml version="1.0" encoding="us-ascii"?>
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ --><!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.2-Based DOM//EN" "http://www.w3.org/2002/08/xmlspec-v22-dom.dtd">
<spec>
  <!--
  *************************************************************************
  * FRONT MATTER                                                          *
  *************************************************************************
  -->
<!-- 
  ****************************************************** 
  | filenames to be used for each section              |
  ******************************************************
-->
<?command-options --map Copyright-Notice copyright-notice
--map Introduction     introduction
--map TOC expanded-toc
--map Core core
--map Events events
--map idl idl-definitions
--map ecma-binding ecma-script-binding
--map java-binding java-binding
--map Index def-index
--map Objects object-index
--map References references
--map Errors errors
--map Level-3-AS abstract-schemas
--map Load-Save load-save
--map XPath xpath
?>

<?command-options --map -IndexFile-      def-index
--map -OjbectIndexFile-      object-index
--strip-references
--strip-glossary
?>

<?command-options --map-type ECMAScript Object Object
--map-type ECMAScript DOMString String
--map-type ECMAScript "unsigned short" Number
--map-type ECMAScript "unsigned int" Number
--map-type ECMAScript "unsigned long" Number
--map-type ECMAScript long Number
--map-type ECMAScript boolean Boolean

--map-type ECMAScript DOMTimeStamp Date
--map-type ECMAScript DOMObject Object
--map-type ECMAScript DOMUserData "any type"
--map-type ECMAScript DOMInputStream Object
--map-type ECMAScript DOMOutputStream Object
--map-type ECMAScript DOMReader "this is an error and shouldn't be used."
--map-type ECMAScript DOMSystemException Object

--map-type Java Object Object
--map-type Java DOMString String
--map-type Java "unsigned short" short
--map-type Java "unsigned int" int
--map-type Java "unsigned long" int
--map-type Java long int
--map-type Java boolean boolean

--map-type Java DOMTimeStamp long
--map-type Java DOMObject Object
--map-type Java DOMUserData Object
--map-type Java DOMInputStream java.io.InputStream
--map-type Java DOMOutputStream java.io.OutputStream
--map-type Java DOMReader java.io.Reader
--map-type Java DOMSystemException Exception
?>

<header> 
<title>Document Object Model (DOM) Level 3 Core Specification</title>
<version>1.0</version> <w3c-designation>WD-DOM-Level-3-Core-20020806
</w3c-designation> <w3c-doctype>W3C Working Draft</w3c-doctype> <pubdate> 
<day>06</day> <month>August</month> <year>2002</year> 
</pubdate> 
    <publoc>
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2002/08/WD-DOM-Level-3-Core-20020806" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2002/08/WD-DOM-Level-3-Core-20020806</loc>
    </publoc>
    <altlocs>
      
      
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" role="postscript" href="http://www.w3.org/2002/08/WD-DOM-Level-3-Core-20020806/DOM3-Core.ps" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">PostScript file</loc>
      
      
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" role="zip" href="http://www.w3.org/2002/08/WD-DOM-Level-3-Core-20020806/DOM3-Core.zip" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">ZIP file</loc>
    </altlocs>
    <latestloc>
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Core" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Core</loc>
    </latestloc> 
    <prevlocs>
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2002/07/WD-DOM-Level-3-Core-20020731/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2002/07/WD-DOM-Level-3-Core-20020731/</loc>
    </prevlocs> 
<authlist> 
    <author role="editor">
      <name>Arnaud Le Hors</name>
      <affiliation>IBM</affiliation>
    </author>
      <author role="editor">
	<name>Philippe Le Hégaret</name> 
	<affiliation>W3C, WG Chair</affiliation>
      </author> 
    <author role="editor">
      <name>Lauren Wood</name>
      <affiliation>SoftQuad, Inc. (WG Chair emerata, for DOM Level 1 and 2)</affiliation>
    </author>
    <author role="editor">
      <name>Gavin Nicol</name>
      <affiliation>Inso EPS (for DOM Level 1)</affiliation>
    </author>
      <author role="editor">
	<name>Jonathan Robie</name>
	<affiliation>Texcel Research and Software AG (for DOM Level 1)</affiliation>
      </author>
    <author role="editor">
      <name>Mike Champion</name>
      <affiliation>ArborText and Software AG (for DOM Level 1 from November 20,
        1997)</affiliation>
    </author>
    <author role="editor">
      <name>Steve Byrne</name>
      <affiliation>JavaSoft (for DOM Level 1 until November 19,
        1997)</affiliation>
    </author>
</authlist>
    <!--
    ******************************************************
    * DOCUMENT ABSTRACT                                  *
    ******************************************************
    -->
<abstract id="id-abstract"> 

<p>This specification defines the Document Object Model Core Level 3, a
platform- and language-neutral interface that allows programs and scripts to
dynamically access and update the content, structure and style of documents.
The Document Object Model Core Level 3 builds on the Document Object Model Core
Level 2 <bibref role="normative" ref="DOM2Core"/>.</p>

</abstract>

<status id="Level-3-status"> 


<p><emph>This section describes the status of this document at the time of its
publication. Other documents may supersede this document. The latest status of
this document series is maintained at the W3C.</emph></p>

<p>This document contains the Document Object Model Level 3 Core
specification.</p>

<p>
This is a Working Draft for review by W3C members and other
interested parties.
</p>
<p>
It is a draft document and may be updated, replaced or obsoleted by
other documents at any time. It is inappropriate to use W3C Working Drafts as
reference material or to cite them as other than "work in progress". This is
work in progress and does not imply endorsement by, or the consensus of, either
W3C or members of the DOM Working Group.
</p>
<p>
Comments on this document are invited and are to be sent to the
<emph role="important">DOM IG</emph> mailing list <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="mailto:w3c-dom-ig@w3.org" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">w3c-dom-ig@w3.org</loc>. An archive
is available at <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://lists.w3.org/Archives/Member/w3c-dom-ig/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://lists.w3.org/Archives/Member/w3c-dom-ig/</loc>.</p>

<p>This document has been produced as part of the <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Activity.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C DOM Activity</loc>. The authors
of this document are the DOM Working Group members.</p>

      <p>
        Patent disclosures relevant to this specification may be found
        on the Working Group's <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/2002/07/08-IPR-statements.html">patent
        disclosure page</loc>.
      </p>

<p>A list of <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">current W3C Recommendations and
other technical documents</loc> can be found at http://www.w3.org/TR.</p>

</status> 


<sourcedesc>
<p>Created in electronic form.</p>
</sourcedesc>
<langusage>
<language id="en">English</language>
</langusage>
<revisiondesc>
<p>$Revision: 1.8 $</p>
</revisiondesc>
<?GENERATE-TOC?>
</header>
<front>
  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<div1 id="TOC">
  <head>Expanded Table of Contents</head>
  <?GENERATE-EXPANDED-TOC?>	
</div1>

  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF COPYRIGHT NOTICE                                         *
 *************************************************************************
-->
<div1 id="Copyright-Notice">
  <head>Copyright Notice</head>

  <p role="important">
    Copyright © 2002 <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">World Wide Web
    Consortium</loc>, (<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.lcs.mit.edu/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Massachusetts
    Institute of Technology</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.inria.fr/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Institut
    National de Recherche en Informatique et en Automatique</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.keio.ac.jp/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Keio University</loc>). All Rights Reserved.
  </p>
  <p>
    This document is published under the <specref ref="Copyright-notice-document"/>. The bindings within this document are
    published under the <specref ref="Copyright-notice-software"/>.  The
    software license requires "Notice of any changes or modifications to the
    W3C files, including the date changes were made." Consequently, modified
    versions of the DOM bindings must document that they do not conform to the
    W3C standard; in the case of the IDL definitions, the pragma prefix can no
    longer be 'w3c.org'; in the case of the Java language binding, the package
    names can no longer be in the 'org.w3c' package.
  </p>
  <div2 id="Copyright-notice-document">
    <head>W3C Document Copyright Notice and License</head>
    <note>
      <p>
	This section is a copy of the W3C Document Notice and License and could
	be found at <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Legal/copyright-documents-19990405" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/Consortium/Legal/copyright-documents-19990405</loc>.
      </p>
    </note>
    <p role="important">
      Copyright © 1994-2002 <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">World
      Wide Web Consortium</loc>, (<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.lcs.mit.edu/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Massachusetts Institute of
      Technology</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.inria.fr/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Institut National de
      Recherche en Informatique et en Automatique</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.keio.ac.jp/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Keio University</loc>). All Rights
      Reserved.
    </p>
    <p role="important">      
      http://www.w3.org/Consortium/Legal/
    </p>
    <p>
      Public documents on the W3C site are provided by the copyright holders
      under the following license. The software or Document Type Definitions
      (DTDs) associated with W3C specifications are governed by the <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Legal/copyright-software.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Software
      Notice</loc>. By using and/or copying this document, or the W3C document
      from which this statement is linked, you (the licensee) agree that you
      have read, understood, and will comply with the following terms and
      conditions:
    </p>
    <p>
      Permission to use, copy, and distribute the contents of this document, or
      the W3C document from which this statement is linked, in any medium for
      any purpose and without fee or royalty is hereby granted, provided that
      you include the following on <emph>ALL</emph> copies of the document, or
      portions thereof, that you use:
    </p>
    <olist>
      <item>
	<p>
	  A link or URL to the original W3C document.
	</p>
      </item>
      <item>
	<p>
	  The pre-existing copyright notice of the original author, or if it
	  doesn't exist, a notice of the form: "Copyright ©
	  [$date-of-document] <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">World Wide Web
	  Consortium</loc>, (<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.lcs.mit.edu/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Massachusetts
	  Institute of Technology</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.inria.fr/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Institut National de Recherche en
	  Informatique et en Automatique</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.keio.ac.jp/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Keio University</loc>). All Rights
	  Reserved.  http://www.w3.org/Consortium/Legal/" (Hypertext is
	  preferred, but a textual representation is permitted.)
	</p>
      </item>
      <item>
	<p>
	  <emph>If it exists</emph>, the STATUS of the W3C document.
	</p>
      </item>
    </olist>
    <p>
      When space permits, inclusion of the full text of this <emph role="important">NOTICE</emph> should be provided. We request that
      authorship attribution be provided in any software, documents, or other
      items or products that you create pursuant to the implementation of the
      contents of this document, or any portion thereof.
    </p>
    <p>
      No right to create modifications or derivatives of W3C documents is
      granted pursuant to this license. However, if additional requirements
      (documented in the <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Legal/IPR-FAQ.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Copyright
      FAQ</loc>) are satisfied, the right to create modifications or
      derivatives is sometimes granted by the W3C to individuals complying with
      those requirements.
    </p>
    <p>
      THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
      NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
      LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
      PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT
      ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH
      CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
      TRADEMARKS OR OTHER RIGHTS.
    </p>
    <p>
      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
      CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE
      PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
    </p>
    <p>
      The name and trademarks of copyright holders may NOT be used in
      advertising or publicity pertaining to this document or its contents
      without specific, written prior permission. Title to copyright in this
      document will at all times remain with copyright holders.
    </p>
  </div2>
  <div2 id="Copyright-notice-software">
    <head>W3C Software Copyright Notice and License</head>
    <note>
      <p>
	This section is a copy of the W3C Software Copyright Notice and License
	and could be found at <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Legal/copyright-software-19980720" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/Consortium/Legal/copyright-software-19980720</loc>
      </p>
    </note>
    <p role="important">
      Copyright © 1994-2002 <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">World
      Wide Web Consortium</loc>, (<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.lcs.mit.edu/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Massachusetts Institute of
      Technology</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.inria.fr/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Institut National de
      Recherche en Informatique et en Automatique</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.keio.ac.jp/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Keio University</loc>). All Rights
      Reserved.
    </p>
    <p role="important">      
      http://www.w3.org/Consortium/Legal/
    </p>
    <p>
      This W3C work (including software, documents, or other related items) is
      being provided by the copyright holders under the following license. By
      obtaining, using and/or copying this work, you (the licensee) agree that
      you have read, understood, and will comply with the following terms and
      conditions:
    </p>
    <p>
      Permission to use, copy, and modify this software and its documentation,
      with or without modification, for any purpose and without fee or royalty
      is hereby granted, provided that you include the following on ALL copies
      of the software and documentation or portions thereof, including
      modifications, that you make:
    </p>
    <olist>
      <item>
	<p>The full text of this NOTICE in a location viewable to users of the
	redistributed or derivative work.</p>
      </item>
      <item>
	<p>
	  Any pre-existing intellectual property disclaimers. If none exist,
	  then a notice of the following form: "Copyright ©
	  [$date-of-software] <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">World Wide Web
	  Consortium</loc>, (<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.lcs.mit.edu/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Massachusetts
	  Institute of Technology</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.inria.fr/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Institut National de Recherche en
	  Informatique et en Automatique</loc>, <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.keio.ac.jp/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Keio University</loc>). All Rights
	  Reserved.  http://www.w3.org/Consortium/Legal/."
	</p>
      </item>
      <item>
	<p>
	  Notice of any changes or modifications to the W3C files, including
	  the date changes were made. (We recommend you provide URIs to the
	  location from which the code is derived.)
	</p>
      </item>
    </olist>
    <p>
      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
      HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
      INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
      FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
      DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
      TRADEMARKS OR OTHER RIGHTS.
    </p>
    <p>
      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
      CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
      DOCUMENTATION.
    </p>
    <p>
      The name and trademarks of copyright holders may NOT be used in
      advertising or publicity pertaining to the software without specific,
      written prior permission. Title to copyright in this software and any
      associated documentation will at all times remain with copyright holders.
    </p>
  </div2>
</div1>
<!--
 *************************************************************************
 * END OF COPYRIGHT NOTICE                                               *
 *************************************************************************
-->

  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF DOM INTRODUCTION                                         * 
 *************************************************************************
-->
<div1 id="Introduction">
  <head>What is the Document Object Model?</head>

  <orglist role="editors">
    <member>
      <name>Philippe Le Hégaret</name>
      <affiliation>W3C</affiliation>
    </member>
    <member>
      <name>Lauren Wood</name>
      <affiliation>SoftQuad Software Inc. (for DOM Level 2)</affiliation>
    </member>
    <member>
      <name>Jonathan Robie</name>
      <affiliation>Texcel (for DOM Level 1)</affiliation>
    </member>
  </orglist>

  <div2 id="ID-E7C3082">
    <head>Introduction</head>
    <p>The Document Object Model (DOM) is an application programming interface 
      (<termref def="dt-API">API</termref>) for valid <termref def="dt-HTML">HTML</termref> and
      well-formed <termref def="dt-XML">XML</termref> documents. It defines the logical structure of documents and
      the way a document is accessed and manipulated. In the DOM specification,
      the term "document" is used in the broad sense - increasingly, XML is being used as a
      way of representing many different kinds of information that may
      be stored in diverse systems, and much of this would traditionally
      be seen as data rather than as documents. Nevertheless, XML presents
      this data as documents, and the DOM may be used to manage this data.</p>

    <p>With the Document
      Object Model, programmers can build documents, navigate
      their structure, and add, modify, or delete elements and content.
      Anything found in an HTML or XML document can be accessed,
      changed, deleted, or added using the Document Object Model,
      with a few exceptions - in particular, the DOM <termref def="dt-interface">interfaces</termref> for
      the XML internal and external subsets have not yet been specified.</p>
    <p>As a W3C specification, one important objective for the Document
      Object Model is to provide a standard programming interface that
      can be used in a wide variety of environments and <termref def="dt-application">applications</termref>.
      The DOM is designed to be used with any programming
      language. In order to provide a precise, language-independent
      specification of the DOM interfaces, we have chosen to define
      the specifications in Object Management Group (OMG) IDL <bibref role="normative" ref="OMGIDL"/>, as defined in the CORBA 2.3.1 specification <bibref role="informative" ref="CORBA"/>. In addition to the OMG IDL specification, we provide
      <termref def="dt-lang-binding">language bindings</termref> for Java <bibref role="normative" ref="Java"/> and ECMAScript <bibref role="normative" ref="ECMAScript"/> (an industry-standard scripting
      language based on JavaScript <bibref role="informative" ref="JavaScript"/> and JScript
      <bibref role="informative" ref="JScript"/>).</p> 
    <note><p>OMG IDL is used only as a language-independent and
	implementation-neutral way to specify <termref def="dt-interface">interfaces</termref>. Various other
	IDLs could have been used (<bibref role="informative" ref="COM"/>, <bibref role="informative" ref="JavaIDL"/>, <bibref role="informative" ref="MSIDL"/>, ...). In general, IDLs 
	are designed for specific computing environments. The Document Object
	Model can be implemented in any computing environment, and does not 
	require the object binding runtimes generally associated with 
	such IDLs.
      </p></note>

  </div2>
  <div2 id="ID-E7C30821">
    <head>What the Document Object Model is</head>
    <p>The DOM is a programming <termref def="dt-API">API</termref> for documents.
      It is based on an object structure that closely resembles the structure of the
      documents it <termref def="dt-model">models</termref>. For instance, consider this table, taken
      from an XHTML document: </p>
    <eg role="code" xml:space="preserve">
      &lt;table&gt;
      &lt;tbody&gt; 
      &lt;tr&gt; 
      &lt;td&gt;Shady Grove&lt;/td&gt;
      &lt;td&gt;Aeolian&lt;/td&gt; 
      &lt;/tr&gt; 
      &lt;tr&gt;
      &lt;td&gt;Over the River, Charlie&lt;/td&gt;        
      &lt;td&gt;Dorian&lt;/td&gt; 
      &lt;/tr&gt; 
      &lt;/tbody&gt;
      &lt;/table&gt;
    </eg> 
    <p>A graphical representation of the DOM of the example table is:
      <graphic xmlns:xlink="http://www.w3.org/1999/xlink" source="./images/table.png" alt="graphical representation of the DOM of the example table" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
    </p>
    <p>In the DOM, documents have a logical
      structure which is very much like a tree; to be more precise, which is
      like a "forest" or "grove",
      which can contain more than one tree. Each document contains zero or one
      doctype nodes, one document element node,
      and zero or more comments 
		or processing instructions; the document element serves as the root
		of the element tree for the document. However, the DOM
      does not specify that documents must be <emph>implemented</emph> as a
      tree or a grove<!--but not the same as an sgml grove-->, nor
      does it specify how the relationships among objects be
      implemented. The DOM is a logical model that may be implemented in any
      convenient manner. In this
      specification, we use the term <emph>structure model</emph> to
      describe the tree-like representation of a document.
      We also use the term "tree" when referring to the arrangement of 
      those information items which can be reached by using "tree-walking" 
      methods; (this does not include attributes).
      One important property of DOM structure models
      is <emph>structural isomorphism</emph>: if any two Document
      Object Model implementations are used to create a representation
      of the same document, they will create the same structure model,
      in accordance with the XML Information Set <bibref role="informative" ref="InfoSet"/>.</p>
    <note><p>There may be some variations depending on the parser being
	used to build the DOM. For instance, the DOM may not contain
	white spaces in element content if the parser discards them.</p>
    </note>
      <p>The name "Document Object Model" was chosen because
      it is an "<termref def="dt-object-model">object model</termref>" in the traditional
      object oriented design sense: documents are modeled using
      objects, and the model encompasses not only the structure of a
      document, but also the behavior of a document and the objects
      of which it is composed. In other words, the nodes in the
      above diagram do not represent a data structure, they
      represent objects, which have functions and identity. As an
      object model, the DOM identifies:</p>
    <ulist>
      <item><p>the interfaces and objects used to represent and manipulate
	  a document</p></item>
      <item><p>the semantics of these interfaces and objects - including
	  both behavior and attributes</p></item>
      <item><p>the relationships and collaborations among these interfaces
	  and objects</p></item>
    </ulist>
    
    <p>The structure of SGML documents has traditionally been
      represented by an abstract <termref def="dt-datamodel">data model</termref>, not by an object model.
      In an abstract <termref def="dt-datamodel">data model</termref>, the model is centered around the
      data. In object oriented programming languages, the data itself
      is encapsulated in objects that hide the data, protecting it
      from direct external manipulation. The functions associated with
      these objects determine how the objects may be manipulated, and
      they are part of the object model.</p>

  </div2>
  <div2 id="ID-E7C30822">
    <head>What the Document Object Model is not</head>
    <p>This section is designed to give a more precise understanding
      of the DOM by distinguishing it from other
      systems that may seem to be like it.</p>
    <ulist>
      <item><p>The Document Object Model is not a binary specification.
	  DOM programs written in the same language binding will be
	  source code compatible across platforms, but the DOM
	  does not define any form of binary interoperability.</p></item>
      <item><p>The Document Object Model is not a way of persisting objects
	  to XML or HTML. Instead of specifying how objects may be
	  represented in XML, the DOM specifies how
	  XML and HTML documents are represented as objects, so that
	  they may be used in object oriented programs.</p></item>
      <item><p>The Document Object Model is not a set of data structures;
	  it is an <termref def="dt-object-model">object model</termref> that specifies interfaces. Although this
	  document contains diagrams showing parent/child relationships,
	  these are logical relationships defined by the programming
	  interfaces, not representations of any particular internal
	  data structures.</p></item>

      <item><p>The Document Object Model does not define what information in a
	  document is relevant or how information in a document is structured. For
	  XML, this is specified by the XML Information Set <bibref role="informative" ref="InfoSet"/>. The DOM is simply an <termref def="dt-API">API</termref> to this information set. <!-- @@SEEME
	  --></p></item>

      <item><p>The Document Object Model, despite its name, is not a
	  competitor to the Component Object Model <bibref role="informative" ref="COM"/>. COM, like
	  CORBA, is a language independent way to specify interfaces and
	  objects; the DOM is a set of interfaces and
	  objects designed for managing HTML and XML documents. The DOM
	  may be implemented using language-independent systems like COM
	  or CORBA; it may also be implemented using language-specific
	  bindings like the Java or ECMAScript bindings specified in
	  this document.</p></item>
    </ulist>
  </div2>
  <div2 id="ID-E7C30823">
    <head>Where the Document Object Model came from</head>
    <p>The DOM originated as a specification to
      allow JavaScript scripts and Java programs to be portable among
      Web browsers.  "Dynamic HTML" was  the immediate ancestor of the
      Document Object Model, and it was originally thought of largely
      in terms of  browsers. However, when the DOM
      Working Group was formed at W3C, it was also joined by vendors in other
      domains, including HTML or XML editors and document
      repositories. Several of these vendors had worked with SGML
      before XML was developed; as a result, the DOM
      has been influenced by SGML Groves and the HyTime standard. Some
      of these vendors had also developed their own object models for
      documents in order to provide an API for SGML/XML
      editors or document repositories, and these object models have
      also influenced the DOM.</p>
  </div2>
  

  <div2 id="ID-E7C30824"><head>Entities and the DOM Core</head>
    <p>In the fundamental DOM interfaces, there are no objects representing
      entities. Numeric character references, and references to the
      pre-defined entities in HTML and XML, are replaced by the
      single character that makes up the entity's replacement.
      For example, in:   
    </p>
      <eg role="code" xml:space="preserve">
        &lt;p&gt;This is a dog &amp;amp; a cat&lt;/p&gt;        
      </eg>
    <p>
      the "&amp;amp;" will be replaced by the character "&amp;", and the text
      in the P element will form a single continuous sequence of
      characters. Since numeric character references and pre-defined entities
      are not recognized as such in CDATA sections, or in the SCRIPT and STYLE
      elements in HTML, they are not replaced by the single character they
      appear to refer to. If the example above were enclosed in a CDATA
      section, the "&amp;amp;" would not be replaced by "&amp;"; neither would
      the &lt;p&gt; be recognized as a start tag. The representation of general
      entities, both internal and external, are defined within the
      extended (XML) interfaces of <specref ref="Core"/>.</p>
    <p>
      Note: When a DOM representation of a document is serialized
      as XML or HTML text, applications will need to check each
      character in text data to see if it needs to be escaped
      using a numeric or pre-defined entity. Failing to do so
      could result in invalid HTML or XML. Also, <termref def="dt-implementation">implementations</termref> should be
      aware of the fact that serialization into a character encoding
      ("charset") that does not fully cover ISO 10646 may fail if there are
      characters in markup or CDATA sections that are not present in the
      encoding.</p>
  </div2>

  <div2 id="ID-Conformance">
    <head>Conformance</head>
    <p>
      This section explains the different levels of conformance to DOM Level 3.
      DOM Level 3 consists of ? modules. It is possible to conform to DOM
      Level 3, or to a DOM Level 3 module.
    </p>

    <p>
      An implementation is DOM Level 3 conformant if it supports the Core
      module defined in this document (see <specref ref="ID-BBACDC08"/>). An
      implementation conforms to a DOM Level 3 module if it supports all the
      interfaces for that module and the associated semantics.
    </p>
    <p>
      Here is the complete list of DOM Level 3.0 modules and the features used
      by them.  Feature names are case-insensitive.
    </p>

    <glist>
      <gitem>
	<label>Core module</label>
	<def>
	  <p>
	    defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="core.html#ID-BBACDC08" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"Core"</xspecref>.
	  </p>
	</def>
      </gitem>
      <gitem>
	<label>XML module</label>
	<def>
	  <p>
	    Defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="core.html#ID-E067D597" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"XML"</xspecref>.
	  </p>
	</def>
      </gitem>
      <gitem>
	<label>Events module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events/events.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"Events"</xspecref> in <bibref role="informative" ref="DOMEvents"/>.</p>
	</def>
      </gitem>
      <gitem>
	<label>User interface Events module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events/events.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"UIEvents"</xspecref> in
	  <bibref role="informative" ref="DOMEvents"/>.</p>
	</def>
      </gitem>
      <gitem>
	<label>Mouse Events module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events/events.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"MouseEvents"</xspecref> in
	  <bibref role="informative" ref="DOMEvents"/>.</p>
	</def>
      </gitem>
      <gitem>
	<label>Text Events module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events/events.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"TextEvents"</xspecref> in
	  <bibref role="informative" ref="DOMEvents"/>.</p>
	</def>
      </gitem>
      <gitem>
	<label>Mutation Events module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events/events.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"MutationEvents"</xspecref> in
	  <bibref role="informative" ref="DOMEvents"/>.</p>
	</def>
      </gitem>
      <gitem>
	<label>HTML Events module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events/events.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"HTMLEvents"</xspecref> in
	  <bibref role="informative" ref="DOMEvents"/>.</p>
	</def>
      </gitem>
      <!-- REVISIT: LS and AS features -->
      <gitem>
	<label>Load and Save module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-ASLS/load-save.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"LS"</xspecref> in <bibref role="informative" ref="DOMLS"/>.</p>
	</def>
      </gitem>
<!--
      <gitem>
	<label>Abstract Schemas Editing module</label>
	<def>
	  <p>defines the feature <xspecref
	  href='&as-ls.latest.url;/abstract-schemas.html'>"AS-EDIT"</xspecref>
	  in <bibref role="informative" ref="DOMASLS"/>.</p>
	</def>
      </gitem>
-->
      <gitem>
	<label>XPath module</label>
	<def>
	  <p>defines the feature <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-XPath/xpath.html" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">"XPath"</xspecref> in
	   <bibref role="informative" ref="DOMXPath"/>.</p>
	</def>
      </gitem>
    </glist>
    
    <p>
      A DOM implementation must not return <code>true</code> to the
      <code>hasFeature(feature, version)</code> <termref def="dt-method">method</termref> of the <code>DOMImplementation</code>
      interface for that feature unless the implementation conforms to that
      module. The <code>version</code> number for all features used in DOM
      Level 3.0 is <code>"3.0"</code>.
    </p>
  </div2>

  <div2 id="ID-E7C30826"><head>DOM Interfaces and DOM Implementations</head>

    <p>The DOM specifies interfaces which may be used to manage XML or
      HTML documents. It is important to realize that these interfaces
      are an abstraction - much like "abstract base classes" in C++,
      they are a means of specifying a way to access and manipulate an
      application's internal representation of a document. Interfaces 
	do not imply a particular concrete
      implementation. Each DOM application is free to maintain
      documents in any convenient representation, as long as the
      interfaces shown in this specification are supported. Some
      DOM implementations will be existing programs that use the
      DOM interfaces to access software written long before the
      DOM specification existed. Therefore, the DOM is designed
      to avoid implementation dependencies; in particular,</p>
    <olist>
      <item><p>Attributes defined in the IDL do not imply concrete
	  objects which must have specific data members - in the
	  language bindings, they are translated to a pair of
	  get()/set() functions, not to a data member. Read-only
	  attributes have only a get() function in the language
	  bindings.  </p>
      </item>
      <item><p>DOM applications may provide additional interfaces
	  and objects not found in this specification and still be
	  considered DOM conformant.</p></item>
      <item><p>Because we specify interfaces and not the actual
	  objects that are to be created, the DOM cannot know what
	  constructors to call for an implementation.  In general,
	  DOM users call the createX() methods on the Document
	  class to create document structures, and DOM
	  implementations create their own internal representations
	  of these structures in their implementations of the
	  createX() functions.
	</p></item>
    </olist>
    <p>
      The Level 2 interfaces were extended to provide both Level 2 and Level 3
      functionality.
    </p>
    <p>
      DOM implementations in languages other than Java or ECMAScript may choose
      bindings that are appropriate and natural for their language and run time
      environment.  For example, some systems may need to create a Document3
      class which inherits from a Document class and contains the new methods
      and attributes.
    </p>
    <p>DOM Level 3 does not specify multithreading mechanisms.</p>
  </div2>
</div1>
<!--
  *************************************************************************
  * END OF DOM INTRODUCTION                                               *
  *************************************************************************
-->


</front> 
 
<body>
  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF CORE                                                     *
 *************************************************************************
-->
<div1 id="Core">
  <head>Document Object Model Core</head>
  <orglist role="editors">
    <member>
      <name>Arnaud Le Hors</name>
      <affiliation>IBM</affiliation>
    </member>
    <member>
      <name>Philippe Le Hégaret</name>
      <affiliation>W3C</affiliation>
    </member>
    <member>
      <name>Gavin Nicol</name>
      <affiliation>Inso EPS (for DOM Level 1)</affiliation>
    </member>
    <member>
      <name>Lauren Wood</name>
      <affiliation>SoftQuad, Inc. (for DOM Level 1)</affiliation>
    </member>
    <member>
      <name>Mike Champion</name>
      <affiliation>ArborText and Software AG (for DOM Level 1 from November 20,
        1997)</affiliation>
    </member>
    <member>
      <name>Steve Byrne</name>
      <affiliation>JavaSoft (for DOM Level 1 until November 19,
        1997)</affiliation>
    </member>
  </orglist>
  <?GENERATE-MINI-TOC?>
  <!--
  ******************************************************
  | INTRODUCTION                                       |
  ******************************************************
  -->
  <div2 id="ID-1590626201">
    <head>Overview of the DOM Core Interfaces</head> <p>This section
    defines a set of objects and interfaces for accessing and
    manipulating document objects. The functionality specified in this
    section (the <emph>Core</emph> functionality) is sufficient to allow
    software developers and web script authors to access and manipulate
    parsed HTML and XML content inside conforming products. The DOM Core
    <termref def="dt-API">API</termref> also allows creation and
    population of a <code>Document</code> object using only DOM API
    calls. A solution for loading a <code>Document</code> and saving it
    persistently is proposed in <bibref role="informative" ref="DOMLS"/>.
    </p>

    <div3 id="ID-1590626202"><head>The DOM Structure Model</head>	
      <p>The DOM presents documents as a hierarchy of <code>Node</code> objects
        that also implement other, more specialized interfaces. Some types of
        nodes may have <termref def="dt-child">child</termref> nodes of various
        types, and others are leaf nodes that cannot have anything below them
        in the document structure. For XML and HTML, the node types, and which
        node types they may have as children, are as follows:
        <ulist>	
          <item>
            <p><code>Document</code> -- <code>Element</code> (maximum of one),
              <code>ProcessingInstruction</code>, <code>Comment</code>,
              <code>DocumentType</code> (maximum of one) </p>
          </item>	
          <item>
            <p><code>DocumentFragment</code> -- <code>Element</code>,
              <code>ProcessingInstruction</code>, <code>Comment</code>,
              <code>Text</code>, <code>CDATASection</code>,
              <code>EntityReference</code> </p>
          </item>	
          <item>
            <p><code>DocumentType</code> -- no children</p>
          </item>	
          <item>
            <p><code>EntityReference</code> -- <code>Element</code>,
              <code>ProcessingInstruction</code>, <code>Comment</code>,
              <code>Text</code>, <code>CDATASection</code>,
              <code>EntityReference</code> </p>
          </item>	
          <item>
            <p><code>Element</code> -- <code>Element</code>, <code>Text</code>,
              <code>Comment</code>, <code>ProcessingInstruction</code>,
              <code>CDATASection</code>, <code>EntityReference</code></p>
          </item>	
          <item>
            <p><code>Attr</code> -- <code>Text</code>,
              <code>EntityReference</code></p>
          </item>	
          <item>
            <p><code>ProcessingInstruction</code> -- no children</p>
          </item>	
          <item>
            <p><code>Comment</code> -- no children</p>
          </item>	
          <item>
            <p><code>Text</code> -- no children</p>
          </item>	
          <item>
            <p><code>CDATASection</code> -- no children</p>
          </item>	
          <item>
            <p><code>Entity</code> -- <code>Element</code>,
              <code>ProcessingInstruction</code>, <code>Comment</code>,
              <code>Text</code>, <code>CDATASection</code>,
              <code>EntityReference</code></p>
          </item>	
          <item>
            <p><code>Notation</code> -- no children</p>
          </item>	
        </ulist> </p>
      <p>The DOM also specifies a <code>NodeList</code> interface to handle
        ordered lists of <code>Nodes</code>, such as the children of a
        <code>Node</code>, or the <termref def="dt-element">elements</termref>
        returned by the <code>getElementsByTagName</code> method of the
        <code>Element</code> interface, and also a <code>NamedNodeMap</code>
        interface to handle unordered sets of nodes referenced by their name
        attribute, such as the attributes of an <code>Element</code>.
        <termdef id="td-live" term="live"> <code>NodeList</code> and
          <code>NamedNodeMap</code> objects in the DOM are <term>live</term>;
          that is, changes to the underlying document structure are reflected
          in all relevant <code>NodeList</code> and <code>NamedNodeMap</code>
          objects. For example, if a DOM user gets a <code>NodeList</code>
          object containing the children of an <code>Element</code>, then
          subsequently adds more children to that
          <termref def="dt-element">element</termref> (or removes children, or
          modifies them), those changes are automatically reflected in the
          <code>NodeList</code>, without further action on the user's
          part. Likewise, changes to a <code>Node</code> in the tree are
          reflected in all references to that <code>Node</code> in
          <code>NodeList</code> and <code>NamedNodeMap</code>
          objects.</termdef></p> <p>Finally, the interfaces <code>Text</code>,
        <code>Comment</code>, and <code>CDATASection</code> all inherit from
        the <code>CharacterData</code> interface.</p>
    </div3>
    <div3 id="ID-249F15BA"><head>Memory Management</head>
      <p>Most of the APIs defined by this specification are
        <emph>interfaces</emph> rather than classes. That means that an
        implementation need only expose methods with the defined names and
        specified operation, not implement classes that correspond directly to
        the interfaces. This allows the DOM APIs to be implemented as a thin
        veneer on top of legacy applications with their own data structures, or
        on top of newer applications with different class hierarchies. This
        also means that ordinary constructors (in the Java or C++ sense) cannot
        be used to create DOM objects, since the underlying objects to be
        constructed may have little relationship to the DOM interfaces. The
        conventional solution to this in object-oriented design is to define
        <emph>factory</emph> methods that create instances of objects that
        implement the various interfaces. Objects implementing some interface
        "X" are created by a "createX()" method on the <code>Document</code>
        interface; this is because all DOM objects live in the context of a
        specific Document.</p>
      <p>The Core DOM APIs are designed to be compatible with a wide range of
        languages, including both general-user scripting languages and the more
        challenging languages used mostly by professional programmers. Thus,
        the DOM APIs need to operate across a variety of memory management
        philosophies, from language bindings that do not expose memory
        management to the user at all, through those (notably Java) that
        provide explicit constructors but provide an automatic garbage
        collection mechanism to automatically reclaim unused memory, to those
        (especially C/C++) that generally require the programmer to explicitly
        allocate object memory, track where it is used, and explicitly free it
        for re-use. To ensure a consistent API across these platforms, the DOM
        does not address memory management issues at all, but instead leaves
        these for the implementation. Neither of the explicit language bindings
        defined by the DOM API (for
        <termref def="dt-ECMAScript">ECMAScript</termref> and Java) require any
        memory management methods, but DOM bindings for other languages
        (especially C or C++) may require such support. These extensions will
        be the responsibility of those adapting the DOM API to a specific
        language, not the DOM Working Group.</p>
    </div3>
    <div3 id="ID-45A944CB">
      <head>Naming Conventions</head>
      <p>While it would be nice to have attribute and method names that are
        short, informative, internally consistent, and familiar to users of
        similar APIs, the names also should not clash with the names in legacy
        APIs supported by DOM implementations. Furthermore, both OMG IDL and
        <code>ECMAScript</code> have significant limitations in their ability
        to disambiguate names from different namespaces that make it difficult
        to avoid naming conflicts with short, familiar names. So, DOM names
        tend to be long and descriptive in order to be unique across all
        environments.</p>
      <p>The Working Group has also attempted to be internally consistent in
        its use of various terms, even though these may not be common
        distinctions in other APIs. For example, the DOM API uses the method
        name "remove" when the method changes the structural model, and the
        method name "delete" when the method gets rid of something inside the
        structure model. The thing that is deleted is not returned. The thing
        that is removed may be returned, when it makes sense to return it.</p>
    </div3>
    <div3 id="ID-1CED5498">
      <head>Inheritance vs. Flattened Views of the API</head>
      <p>The DOM Core <termref def="dt-API">APIs</termref> present two somewhat
        different sets of interfaces to an XML/HTML document: one presenting an
        "object oriented" approach with a hierarchy of
        <termref def="dt-inheritance">inheritance</termref>, and a "simplified"
        view that allows all manipulation to be done via the <code>Node</code>
        interface without requiring casts (in Java and other C-like languages)
        or query interface calls in <termref def="dt-COM">COM</termref>
        environments. These operations are fairly expensive in Java and COM,
        and the DOM may be used in performance-critical environments, so we
        allow significant functionality using just the <code>Node</code>
        interface. Because many other users will find the
        <termref def="dt-inheritance">inheritance</termref> hierarchy easier to
        understand than the "everything is a <code>Node</code>" approach to the
        DOM, we also support the full higher-level interfaces for those who
        prefer a more object-oriented <termref def="dt-API">API</termref>. </p>
      <p>In practice, this means that there is a certain amount of redundancy
        in the <termref def="dt-API">API</termref>. The Working Group considers
        the "<termref def="dt-inheritance">inheritance</termref>" approach the
        primary view of the API, and the full set of functionality on
        <code>Node</code> to be "extra" functionality that users may employ,
        but that does not eliminate the need for methods on other interfaces
        that an object-oriented analysis would dictate. (Of course, when the
        O-O analysis yields an attribute or method that is identical to one on
        the <code>Node</code> interface, we don't specify a completely
        redundant one.) Thus, even though there is a generic
        <code>nodeName</code> attribute on the <code>Node</code> interface,
        there is still a <code>tagName</code> attribute on the
        <code>Element</code> interface; these two attributes must contain the
        same value, but the it is worthwhile to support both, given the
        different constituencies the DOM <termref def="dt-API">API</termref>
        must satisfy.</p>
    </div3>
    <div3 id="ID-C74D1578">
      <head>The <code>DOMString</code> type</head>
      <p>To ensure interoperability, the DOM specifies the following:</p>
      <definitions>
	<typedef name="DOMString" id="DOMString">
	  <descr>
	    <p>A <code>DOMString</code> is a sequence of
	      <termref def="dt-16-bit-unit">16-bit units</termref>.</p>
	  </descr>
	  <sequence type="unsigned short"/>
	</typedef>
      </definitions>	
      <p>Applications must encode <code>DOMString</code> using UTF-16
	(defined in <bibref ref="Unicode"/> and Amendment 1 of
	<bibref ref="ISO10646"/>).</p>
      <p>The UTF-16 encoding was chosen because of its widespread industry
      practice. Note that for both HTML and XML, the document character set
      (and therefore the notation of numeric character references) is based on
      UCS <bibref ref="ISO10646"/>. A single numeric character reference in a
      source document may therefore in some cases correspond to two 16-bit
      units in a <code>DOMString</code> (a high surrogate and a low
      surrogate).</p>
      <note>
	<p>Even though the DOM defines the name of the string type to be
	  <code>DOMString</code>, bindings may use different names. For
	  example for Java, <code>DOMString</code> is bound to the
	  <code>String</code> type because it also uses UTF-16 as its
	  encoding.</p>
      </note>
      <note>
        <p>As of August 2000, the OMG IDL specification
          (<bibref ref="OMGIDL"/>) included a <code>wstring</code>
            type. However, that definition did not meet the interoperability
            criteria of the DOM <termref def="dt-API">API</termref> since it
            relied on negotiation to decide the width and encoding of a
            character.</p>
      </note>
    </div3>
    <div3 id="Core-DOMTimeStamp">
      <head>The <code>DOMTimeStamp</code> type</head>
      <p>To ensure interoperability, the DOM specifies the following:</p>
      <definitions>
	<typedef name="DOMTimeStamp" id="DOMTimeStamp">
	  <descr>
	    <p>A <code>DOMTimeStamp</code> represents a number of
	      milliseconds.</p>
	  </descr>
	  <typename>unsigned long long</typename>
	</typedef>
      </definitions>	
      <note>
	<p> Even though the DOM uses the type <code>DOMTimeStamp</code>,
	  bindings may use different types. For example for Java,
	  <code>DOMTimeStamp</code> is bound to the <code>long</code>
	  type. In ECMAScript, <code>DOMTimeStamp</code> is bound to the
	  <code>Date</code> type because the range of the
	  <code>integer</code> type is too small.</p>
      </note>	
    </div3>
    <div3 id="Core-DOMUserData">
      <head>The <code>DOMUserData</code> type</head>
      <p>To ensure interoperability, the DOM specifies the following:</p>
      <definitions>
	<typedef name="DOMUserData" id="DOMUserData">
	  <descr>
	    <p>A <code>DOMUserData</code> represents a reference to an
              application object.</p>
	  </descr>
	  <typename>Object</typename>
	</typedef>
      </definitions>
      <note>
	<p>Even though the DOM uses the type <code>DOMUserData</code>, bindings
	  may use different types. For example, in Java <code>DOMUserData</code>
          is bound to the <code>Object</code> type, while in ECMAScript
          <code>DOMUserData</code> is bound to <code>any type</code>.</p>
      </note>	
      <issue id="DOMKeyObject-1" status="open">
        <p>What does DOMUserData map to in ECMAScript?</p>
        <resolution>
          <p>"any type"</p>
        </resolution>
      </issue>
    </div3>
    <div3 id="Core-DOMObject">
      <head>The <code>DOMObject</code> type</head>
      <p>To ensure interoperability, the DOM specifies the following:</p>
      <definitions>
	<typedef name="DOMObject" id="DOMObject">
	  <descr>
	    <p>A <code>DOMObject</code> represents a reference to an
              application object.</p>
	  </descr>
	  <typename>Object</typename>
	</typedef>
      </definitions>
      <note>
	<p>Even though the DOM uses the type <code>DOMObject</code>, bindings
	may use different types. For example, in Java and ECMAScript
	<code>DOMObject</code> is bound to the <code>Object</code> type.</p>
      </note>
    </div3>
    <div3 id="ID-5DFED1F0">
      <head>String comparisons in the DOM</head>
      <p>The DOM has many interfaces that imply string matching. HTML
        processors generally assume an uppercase (less often, lowercase)
        normalization of names for such things as
        <termref def="dt-element">elements</termref>, while XML is explicitly
        case sensitive. For the purposes of the DOM, string matching is
        performed purely by binary
        <termref def="dt-string-compare">comparison</termref> of the
        <termref def="dt-16-bit-unit">16-bit units</termref> of the
        <code>DOMString</code>. In addition, the DOM assumes that any case
        normalizations take place in the processor, <emph>before</emph> the DOM
        structures are built.</p>
      <p>
	The W3C Text normalization, as defined in <bibref role="informative" ref="Charmod"/>, is
	assumed to happen at serialization time. The DOM Level 3 Load and Save
	module <bibref role="informative" ref="DOMLS"/> provides a serialization mechanism (see
	the <code>DOMWriter</code> interface, section 2.3.1) and defines the
	<code>"ls-normalize-characters"</code> to assure that text is
	serialized in the W3C Text Normalization form. Other serialization
	mechanisms built on top of the DOM Level 3 Core also have to assure
	that text is serialized in the W3C Text Normalization form.
      </p>

<!--
      <note>	
        <p>Besides case folding, there are additional normalizations that can
          be applied to text. The W3C I18N Working Group is in the process of
          defining exactly which normalizations are necessary, and where they
          should be applied. The W3C I18N Working Group expects to require
          early normalization, which means that data read into the DOM is
          assumed to already be normalized. The DOM and applications built on
          top of it in this case only have to assure that text remains
          normalized when being changed. For further details, please see
          <bibref ref="Charmod"/>.</p>
      </note>
-->
      <note role="editorial">
	<p>
	  We need to review the case sensitivity of methods and attributes and
	  how it fits with XML and HTML. Current wording is not clear at all
	  ...
	</p>
      </note>
    </div3>
    <div3 id="Namespaces-Considerations">
      <head>XML Namespaces</head>

      <p>The DOM Level 2 (and higher) supports XML namespaces <bibref ref="Namespaces"/> by augmenting several interfaces of the DOM Level 1
        Core to allow creating and manipulating <termref def="dt-element">elements</termref> and attributes associated to a
        namespace.</p>
      <p>As far as the DOM is concerned, special attributes used for declaring
        <termref def="dt-XML-namespace">XML namespaces</termref> are still
        exposed and can be manipulated just like any other attribute. However,
        nodes are permanently bound to <termref def="dt-namespaceURI">namespace
          URIs</termref> as they get created. Consequently, moving a node
        within a document, using the DOM, in no case results in a change of its
        <termref def="dt-namespaceprefix">namespace prefix</termref> or
        namespace URI. Similarly, creating a node with a namespace prefix and
        namespace URI, or changing the namespace prefix of a node, does not
        result in any addition, removal, or modification of any special
        attributes for declaring the appropriate XML namespaces. Namespace
        validation is not enforced; the DOM application is responsible. In
        particular, since the mapping between prefixes and namespace URIs is
        not enforced, in general, the resulting document cannot be serialized
        naively. For example, applications may have to declare every namespace
        in use when serializing a document.</p>
      <p>In general, the DOM implementation (and higher) doesn't perform any
        URI normalization or  canonicalization. The URIs given to the DOM are
        assumed to be valid (e.g., characters such as white spaces are properly
        escaped), and no lexical checking is performed. Absolute URI references
        are treated as strings and <termref def="dt-string-compare">compared
          literally</termref>. How relative namespace URI references are
        treated is undefined. To ensure interoperability only absolute
        namespace URI references (i.e., URI references beginning with a scheme
        name and a colon) should be used. Applications that wish to have no
        namespace should use the value <code>null</code> as the namespaceURI
        parameter of methods. If they pass an empty string the DOM
        implementation turns it into a <code>null</code>.</p>
      <note>
        <p>In the DOM, all namespace declaration attributes are <emph>by
            definition</emph> bound to the namespace URI:
          "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>". These are the attributes
          whose <termref def="dt-namespaceprefix">namespace prefix</termref> or
          <termref def="dt-qualifiedname">qualified name</termref> is
          "xmlns". Although, at the time of writing, this is not part of the
          XML Namespaces specification <bibref ref="Namespaces"/>, it is
            planned to be incorporated in a future revision.</p>
      </note>
      <p>In a document with no namespaces, the
        <termref def="dt-child">child</termref> list of an
        <code>EntityReference</code> node is always the same as that of the
        corresponding <code>Entity</code>. This is not true in a document where
        an entity contains unbound <termref def="dt-namespaceprefix">namespace
          prefixes</termref>. In such a case, the
        <termref def="dt-descendant">descendants</termref> of the corresponding
        <code>EntityReference</code> nodes may be bound to different
        <termref def="dt-namespaceURI">namespace URIs</termref>, depending on
        where the entity references are. Also, because, in the DOM, nodes
        always remain bound to the same namespace URI, moving such
        <code>EntityReference</code> nodes can lead to documents that cannot be
        serialized. This is also true when the DOM Level 1 method
        <code>createEntityReference</code> of the <code>Document</code>
        interface is used to create entity references that correspond to such
        entities, since the <termref def="dt-descendant">descendants</termref>
        of the returned <code>EntityReference</code> are unbound. The DOM Level
        2 does not support any mechanism to resolve namespace prefixes. For all
        of these reasons, use of such entities and entity references should be
        avoided or used with extreme care. A future Level of the DOM may
        include some additional support for handling these.</p>
      <p>The new methods, such as <code>createElementNS</code> and
        <code>createAttributeNS</code> of the <code>Document</code> interface,
        are meant to be used by namespace aware applications. Simple
        applications that do not use namespaces can use the DOM Level 1
        methods, such as <code>createElement</code> and
        <code>createAttribute</code>. Elements and attributes created in this
        way do not have any namespace prefix, namespace URI, or local name.</p>
      <note>
	<p role="Infoset">
	  Given that the property [in-scope namespaces] defined in <bibref ref="InfoSet"/> is not accessible from DOM Level 3 Core, the
	  properties [prefix] and [namespace name] defined by the Namespace
	  Information Item in <bibref ref="InfoSet"/> are not accessible from
	  DOM Level 3 Core. However, <bibref role="informative" ref="DOMXPath"/> does provide a way to access them.
	</p>
      </note>      
      <note>
        <p>DOM Level 1 methods are namespace ignorant. Therefore, while it is
          safe to use these methods when not dealing with namespaces, using
          them and the new ones at the same time should be avoided. DOM Level 1
          methods solely identify attribute nodes by their
          <code>nodeName</code>. On the contrary, the DOM Level 2 methods
          related to namespaces, identify attribute nodes by their
          <code>namespaceURI</code> and <code>localName</code>. Because of this
          fundamental difference, mixing both sets of methods can lead to
          unpredictable results. In particular, using
          <code>setAttributeNS</code>, an
          <termref def="dt-element">element</termref> may have two attributes
          (or more) that have the same <code>nodeName</code>, but different
          <code>namespaceURI</code>s. Calling <code>getAttribute</code> with
          that <code>nodeName</code> could then return any of those
          attributes. The result depends on the implementation. Similarly,
          using <code>setAttributeNode</code>, one can set two attributes (or
          more) that have different <code>nodeNames</code> but the same
          <code>prefix</code> and <code>namespaceURI</code>. In this case
          <code>getAttributeNodeNS</code> will return either attribute, in an
          implementation dependent manner. The only guarantee in such cases is
          that all methods that access a named item by its
          <code>nodeName</code> will access the same item, and all methods
          which access a node by its URI and local name will access the same
          node. For instance, <code>setAttribute</code> and
          <code>setAttributeNS</code> affect the node that
          <code>getAttribute</code> and <code>getAttributeNS</code>,
          respectively, return.</p>
      </note>
    </div3>

    <div3 id="baseURIs-Considerations">
      <head>Base URIs</head>

      <p>The DOM Level 3 adds support for the [base URI] property defined in
        <bibref ref="InfoSet"/> by providing a new attribute on the
        <code>Node</code> interface that exposes this information. However,
        unlike the <code>namespaceURI</code> attribute, the
        <code>baseURI</code> attribute is not a static piece of information
        that every node carries. Instead, it is a value that is dynamically
        computed according to <bibref ref="XMLBase"/>. This means its value
        depends on the location of the node in the tree and moving the node
        from one place to another in the tree may affect its value. Other
        changes, such as adding or changing an xml:base attribute on the node
        being queried or one of its ancestors may also affect its value.
      </p>
      <p>One consequence of this it that when external entity references are
        expanded while building a <code>Document</code> one may need to add, or
        update it if one already exists, an xml:base attribute to the
        <code>Element</code> nodes originally contained in the entity being
        expanded so that the <code>baseURI</code> returns the correct value. In
        the case of <code>ProcessingInstruction</code> nodes originally
        contained in the entity being expanded the information is lost.
        <bibref role="informative" ref="DOMLS"/> handles elements as described
        here and generates a warning in the latter case.
      </p>

      <issue id="baseURI-5" status="closed">
        <p>This does not work for PIs.</p>
        <resolution>
          <p>Info is lost, a warning is generated (Telcon 29 Apr 2002)</p>
        </resolution>
      </issue>
    </div3>

    <div3 id="Embedded-DOM">
      <head>Mixed DOM implementations</head>

      <p>As new XML vocabularies are developed, those defining the vocabularies
	are also beginning to define specialized APIs for manipulating XML
	instances of those vocabularies. This is usually done by extending the
	DOM to provide interfaces and methods that perform operations
	frequently needed their users. For example, the MathML <bibref role="informative" ref="MathML2"/> and SVG
	<bibref role="informative" ref="SVG1"/> specifications are developing DOM extensions to allow users to
	manipulate instances of these vocabularies using semantics appropriate
	to images and mathematics (respectively) as well as the generic DOM XML
	semantics. Instances of SVG or MathML are often embedded in XML
	documents conforming to a different schema such as XHTML.
      </p>

      <p>
	While the XML Namespaces Recommendation provides a mechanism for
	integrating these documents at the syntax level, it has become clear
	that the DOM Level 2 Recommendation <bibref ref="DOM2Core"/> is not
	rich enough to cover all the issues that have been encountered in
	having these different DOM implementations be used together in a single
	application. DOM Level 3 deals with the requirements brought about by
	embedding fragments written according to a specific markup language
	(the embedded component) in a document where the rest of the markup is
	not written according to that specific markup language (the host
	document). It does not deal with fragments embedded by reference or
	linking.</p>

      <p>A DOM implementation supporting DOM Level 3 Core should be able to
	collaborate with subcomponents implementing specific DOMs to assemble a
	compound document that can be traversed and manipulated via DOM
	interfaces as if it were a seamless whole.</p>

      <p>The normal typecast operation on an object should support the
	interfaces expected by legacy code for a given document type.
	Typecasting techniques may not be adequate for selecting between
	multiple DOM specializations of an object which were combined at run
	time, because they may not all be part of the same object as defined by
	the binding's object model. Conflicts are most obvious with the
	<code>Document</code> object, since it is shared as owner by the rest
	of the document. In a homogeneous document, elements rely on the
	Document for specialized services and construction of specialized
	nodes. In a heterogeneous document, elements from different modules
	expect different services and APIs from the same <code>Document</code>
	object, since there can only be one owner and root of the document
	hierarchy.</p>
    </div3>

    <div3 id="Bootstrap">
      <head>Bootstrapping</head>

      <p>Because previous versions of the DOM specification only defined a set
        of interfaces, applications had to rely on some implementation
        dependent code to start from. However, hard-coding the application to a
        specific implementation prevents the application from running on other
        implementations and from using the most-suitable implementation of the
        environment. At the same time, implementations may also need to load
        modules or perform other setup to efficiently adapt to different and
        sometimes mutually-exclusive feature sets.</p>

      <p>To solve these problems this specification introduces a
        <code>DOMImplementationRegistry</code> object with a function that lets
        an application find an implementation, based on the specific features
        it requires. How this object is found and what it exactly looks like is
        not defined here, because this cannot be done in a language-independent
        manner. Instead, each language binding defines its own way of doing
        this. See <specref ref="java-binding"/> and
          <specref ref="ecma-binding"/> for specifics.</p>

      <p>In all cases, though, the <code>DOMImplementationRegistry</code>
        provides a <code>getDOMImplementation</code> method accepting a
        features string, which is passed to every known
        <code>DOMImplementationSource</code> until a suitable
        <code>DOMImplementation</code> is found and returned. This method is
        the same as the one found on the <code>DOMImplementationSource</code>
        interface defined below.</p>

      <p>Any number of <code>DOMImplementationSource</code> objects can be
        registered. A source may return one or more
        <code>DOMImplementation</code> singletons or construct new
        <code>DOMImplementation</code> objects, depending upon whether the
        requested features require specialized state in the
        <code>DOMImplementation</code> object.</p>

      <issue id="Level-3-Bootstrap-1" status="open">
        <p>Is this not generic enough?</p>
        <resolution>
          <p>Yes. (F2F 31 Jul 2001)</p>
        </resolution>
      </issue>
      <issue id="Level-3-Bootstrap-2" status="open">
        <p>Should the method <code>getDOMImplementation</code> be called
          <code>byFeature</code> instead?</p>
        <resolution>
          <p>No. (F2F 31 Jul 2001)</p>
        </resolution>
      </issue>
    </div3>

  </div2>
  <!--
  ******************************************************
  | DOCUMENT OBJECT MODEL APIs                         |
  ******************************************************
  -->
  <div2 id="ID-BBACDC08">
    <head>Fundamental Interfaces</head>

    <p>The interfaces within this section are considered
      <emph>fundamental</emph>, and must be fully implemented by all conforming
      implementations of the DOM, including all HTML DOM implementations
      <bibref role="informative" ref="DOM2HTML"/>, unless otherwise specified.
    </p>
    <p>A DOM application may use the <code>hasFeature(feature, version)</code>
    method of the <code>DOMImplementation</code> interface with parameter
    values "Core" and "3.0" (respectively) to determine whether or not this
    module is supported by the implementation. Any implementation that conforms
    to DOM Level 3 or a DOM Level 3 module must conform to the Core
    module. Please refer to additional information about <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020114/introduction.html#ID-Conformance" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">conformance</xspecref> in this specification.
    The DOM Level 3 Core module is backward compatible with the DOM Level 2
      Core <bibref ref="DOM2Core"/> module, i.e. a DOM Level 3 Core
      implementation who returns <code>true</code> for "Core"
      with the <code>version</code> number <code>"3.0"</code> must also return
      <code>true</code> for this <code>feature</code> when the
      <code>version</code> number is <code>"2.0"</code>,
      <code>""</code> or, <code>null</code>.
    </p>

    <definitions>
      
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<!--[ Exceptions description ]-->
<exception name="DOMException" id="ID-17189187">
  <descr>
    <p>DOM operations only raise exceptions in "exceptional"
      circumstances, i.e., when an operation is impossible to perform (either
      for logical reasons, because data is lost, or because the implementation
      has become unstable). In general, DOM methods return specific error
      values in ordinary processing situations, such as out-of-bound errors
      when using <code>NodeList</code>.</p>
    <p>Implementations should raise other exceptions under other circumstances.
      For example, implementations should raise an implementation-dependent 
      exception if a <code>null</code> argument is passed when
      <code>null</code> was not expected.</p>
    <p>Some languages and object systems do not support the concept of
      exceptions. For such systems, error conditions may be indicated using
      native error reporting mechanisms. For some bindings, for example,
      methods may return error codes similar to those listed in the
      corresponding method descriptions.</p>
  </descr>
  <component id="ID-146F692A" name="code">
    <typename>unsigned short</typename>
  </component>
</exception>
<group id="ID-258A00AF" name="ExceptionCode">
  <descr>
    <p>An integer indicating the type of error generated.</p>
    <note>
      <p>Other numeric codes are reserved for W3C for possible future use.</p>
    </note>
  </descr>
  <constant id="DOMException-INDEX_SIZE_ERR" name="INDEX_SIZE_ERR" type="unsigned short" value="1">
    <descr>
      <p>If index or size is negative, or greater than the allowed value</p>
    </descr>
  </constant>
  <constant id="DOMException-DOMSTRING_SIZE_ERR" name="DOMSTRING_SIZE_ERR" type="unsigned short" value="2">
    <descr>
      <p>If the specified range of text does not fit into a DOMString</p>
    </descr>
  </constant>
  <constant id="DOMException-HIERARCHY_REQUEST_ERR" name="HIERARCHY_REQUEST_ERR" type="unsigned short" value="3">
    <descr>
      <p>If any node is inserted somewhere it doesn't belong</p>
    </descr>
  </constant>
  <constant id="DOMException-WRONG_DOCUMENT_ERR" name="WRONG_DOCUMENT_ERR" type="unsigned short" value="4">
    <descr>
      <p>If a node is used in a different document than the one that created it
        (that doesn't support it)</p>
    </descr>
  </constant>
  <constant id="DOMException-INVALID_CHARACTER_ERR" name="INVALID_CHARACTER_ERR" type="unsigned short" value="5">
    <descr>
      <p>If an invalid or illegal character is specified, such as in a
        name. See <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">production 2</xspecref>
        in the XML specification for the definition of a legal character, and 
        <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">production 5</xspecref> for the
        definition of a legal name character.</p>
    </descr>
  </constant>
  <constant id="DOMException-NO_DATA_ALLOWED_ERR" name="NO_DATA_ALLOWED_ERR" type="unsigned short" value="6">
    <descr>
      <p>If data is specified for a node which does not support data</p>
    </descr>
  </constant>
  <constant id="DOMException-NO_MODIFICATION_ALLOWED_ERR" name="NO_MODIFICATION_ALLOWED_ERR" type="unsigned short" value="7">
    <descr>
      <p>If an attempt is made to modify an object where modifications are not
        allowed</p>
    </descr>
  </constant>
  <constant id="DOMException-NOT_FOUND_ERR" name="NOT_FOUND_ERR" type="unsigned short" value="8">
    <descr>
      <p>If an attempt is made to reference a node in a context where it does
        not exist</p>
    </descr>
  </constant>
  <constant id="DOMException-NOT_SUPPORTED_ERR" name="NOT_SUPPORTED_ERR" type="unsigned short" value="9">
    <descr>
      <p>If the implementation does not support the requested type of object or
        operation.</p>
    </descr>
  </constant>
  <constant id="DOMException-INUSE_ATTRIBUTE_ERR" name="INUSE_ATTRIBUTE_ERR" type="unsigned short" value="10">
    <descr>
      <p>If an attempt is made to add an attribute that is already in use
	elsewhere</p>
    </descr>
  </constant>
  <!-- ****** DOM Level 2 additions ****** -->
  <constant id="DOMException-INVALID_STATE_ERR" name="INVALID_STATE_ERR" type="unsigned short" value="11" since="DOM Level 2">
    <descr>
      <p>If an attempt is made to use an object that is not, or is no longer,
        usable.</p>
    </descr>
  </constant>
  <constant id="DOMException-SYNTAX_ERR" name="SYNTAX_ERR" type="unsigned short" value="12" since="DOM Level 2">
    <descr>
      <p>If an invalid or illegal string is specified.</p>
    </descr>
  </constant>
  <constant id="DOMException-INVALID_MODIFICATION_ERR" name="INVALID_MODIFICATION_ERR" type="unsigned short" value="13" since="DOM Level 2">
    <descr>
      <p>If an attempt is made to modify the type of the underlying object.</p>
    </descr>
  </constant>
  <constant id="DOMException-NAMESPACE_ERR" name="NAMESPACE_ERR" type="unsigned short" value="14" since="DOM Level 2">
    <descr>
      <p>If an attempt is made to create or change an object in a way which is
        incorrect with regard to namespaces.</p>
    </descr>
  </constant>
  <constant id="DOMException-INVALID_ACCESS_ERR" name="INVALID_ACCESS_ERR" type="unsigned short" value="15" since="DOM Level 2">
    <descr>
      <p>If a parameter or an operation is not supported by the underlying
        object.</p>
    </descr>
  </constant>
  <constant id="DOMException-VALIDATION_ERR" name="VALIDATION_ERR" type="unsigned short" value="16" since="DOM Level 3">
    <descr>
      <p>If a call to a method such as <code>insertBefore</code> or
      <code>removeChild</code> would make the <code>Node</code> invalid with
      respect to <termref def="dt-partially-valid">"partial
      validity"</termref>, this exception would be raised and the operation
      would not be done. This code is used in <bibref role="informative" ref="DOMVal"/>. Refer to this specification for further information.</p>
    </descr>
  </constant>
</group>

      
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<interface name="DOMImplementationSource" id="DOMImplementationSource">
  <descr>
    <p>This interface permits a DOM implementer to supply one or more
      implementations, based upon requested features. Each implemented
      <code>DOMImplementationSource</code> object is listed in the
      binding-specific list of available sources so that its
      <code>DOMImplementation</code> objects are made available.</p>
  </descr>
  <method name="getDOMImplementation" id="ID-getDOMImpl">
    <descr>
      <p>A method to request a DOM implementation.</p>
    </descr>
    <parameters>
      <param name="features" type="DOMString" attr="in">
        <descr>
          <p>A string that specifies which features are required. This is a
            space separated list in which each feature is specified by its name
            optionally followed by a space and a version number. This is
            something like: "XML 1.0 Traversal Events 2.0"</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMImplementation">
      <descr>
        <p>An implementation that has the desired features, or
          <code>null</code> if this source has none.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>
</interface>
 
<!--[ DOMImplementation object description ]-->    
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="DOMImplementation" id="ID-102161490">
  <descr>
    <p>The <code>DOMImplementation</code> interface provides a number of
      methods for performing operations that are independent of any particular
      instance of the document object model.</p>
  </descr>
  <method name="hasFeature" id="ID-5CED94D7">
    <descr>
      <p>Test if the DOM implementation implements a specific feature.</p>
    </descr>
    <parameters>
      <param name="feature" type="DOMString" attr="in">
	<descr>
          <p>The name of the feature to test (case-insensitive). The values
          used by DOM features are defined throughout the DOM Level 3
          specifications and listed in the <specref ref="ID-Conformance"/>
          section. The name must be an <termref def="dt-XML-name">XML
          name</termref>. To avoid possible conflicts, as a convention, names
          referring to features defined outside the DOM specification should be
          made unique.</p>
        </descr>
      </param>
      <param name="version" type="DOMString" attr="in">
	<descr>
          <p>This is the version number of the feature to test. In Level 3, the
          string can be either "3.0", "2.0" or "1.0". If the version is
          <code>null</code> or empty string, supporting any version of the
          feature causes the method to return <code>true</code>.</p>
        </descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
        <p><code>true</code> if the feature is implemented in the specified
          version, <code>false</code> otherwise.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <!-- ****** DOM Level 2 additions ****** -->
  <method name="createDocumentType" id="Level-2-Core-DOM-createDocType" since="DOM Level 2">
    <descr>
      <p>Creates an empty <code>DocumentType</code> node. Entity declarations
        and notations are not made available. Entity reference expansions and
        default attribute additions do not occur. It is expected that a future
        version of the DOM will provide a way for populating a
        <code>DocumentType</code>.</p>
    </descr>
    <parameters>
      <param name="qualifiedName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-qualifiedname">qualified name</termref>
	    of the document type to be created.</p>
	</descr>
      </param>
      <param name="publicId" type="DOMString" attr="in">
	<descr>
          <p>The external subset public identifier.</p>
	</descr>
      </param>
      <param name="systemId" type="DOMString" attr="in">
	<descr>
          <p>The external subset system identifier.</p>
	</descr>
      </param>
    </parameters>
    <returns type="DocumentType">
      <descr>
        <p>A new <code>DocumentType</code> node with
          <code>Node.ownerDocument</code> set to <code>null</code>.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified qualified name
	    contains an illegal character.</p>
	  <p>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
	    malformed.</p>
          <p>NOT_SUPPORTED_ERR: May be raised by DOM implementations which do
            not support the <code>"XML"</code> feature, if they choose not to
            support this method.
            <note>
              <p>Other features introduced in the future, by the DOM WG or in
                extensions defined by other groups, may also demand support for
                this method; please consult the definition of the feature to
                see if it requires this method.</p>
            </note>
          </p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="createDocument" id="Level-2-Core-DOM-createDocument" since="DOM Level 2">
    <descr>
      <p>Creates a DOM Document object of the specified type with its document
        element.</p>
      <p>Note that based on the <code>DocumentType</code> given to create the
        document, the implementation may instantiate specialized
        <code>Document</code> objects that support additional features than the
        "Core", such as "HTML" <bibref role="informative" ref="DOM2HTML"/>.
        On the other hand, setting the <code>DocumentType</code> after the
        document was created makes this very unlikely to happen. Alternatively,
        specialized <code>Document</code> creation methods, such as
        <code>createHTMLDocument</code>
        <bibref role="informative" ref="DOM2HTML"/>, can be used to obtain
        specific types of <code>Document</code> objects.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            document element to create or <code>null</code>.</p>
	</descr>
      </param>
      <param name="qualifiedName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-qualifiedname">qualified name</termref> of
            the document element to be created or <code>null</code>.</p>
	</descr>
      </param>
      <param name="doctype" type="DocumentType" attr="in">
	<descr>
          <p>The type of document to be created or <code>null</code>.</p>
	  <p>When <code>doctype</code> is not <code>null</code>, its
	    <code>Node.ownerDocument</code> attribute is set to the document
	    being created.</p>
	</descr>
      </param>
    </parameters>
    <returns type="Document">
      <descr>
        <p>A new <code>Document</code> object with its document element. If the
	  <code>NamespaceURI</code>, <code>qualifiedName</code>, and
	  <code>doctype</code> are <code>null</code>, the returned
	  <code>Document</code> is empty with no document element.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified qualified name
	    contains an illegal character.</p>
	  <p>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
            malformed, if the <code>qualifiedName</code> has a prefix and the
            <code>namespaceURI</code> is <code>null</code>, or if the
	    <code>qualifiedName</code> is <code>null</code> and the
            <code>namespaceURI</code> is different from <code>null</code>, or if the
            <code>qualifiedName</code> has a prefix that is "xml" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/XML/1998/namespace" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/XML/1998/namespace</loc>" <bibref ref="Namespaces"/>,
              or if the DOM implementation does not support the
              <code>"XML"</code> feature but a non-null namespace URI was
              provided, since namespaces were defined by XML.</p>
	  <p>WRONG_DOCUMENT_ERR: Raised if <code>doctype</code> has already
	    been used with a different document or was created from a different
            implementation.</p>

          <p>NOT_SUPPORTED_ERR: May be raised by DOM implementations which do
            not support the "XML" feature, if they choose not to support this
	    method.
            <note><p>Other features introduced in the future, by the DOM WG or
                in extensions defined by other groups, may also demand support
                for this method; please consult the definition of the feature
                to see if it requires this method.</p></note>
          </p>
	</descr>
      </exception>
    </raises>
  </method>

  <!-- ****** DOM Level 3 additions ****** -->
  <method name="getInterface" id="DOMImplementation3-getInterface" since="DOM Level 3">
    <descr>
      <p>This method makes available a <code>DOMImplementation</code>'s
        specialized interface (see <specref ref="Embedded-DOM"/>).</p>
    </descr>
    <parameters>
      <param name="feature" type="DOMString" attr="in">
        <descr>
          <p>The name of the feature requested (case-insensitive).</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMImplementation">
      <descr>
        <p>Returns an alternate <code>DOMImplementation</code> which implements
        the specialized APIs of the specified feature, if any, or
        <code>null</code> if there is no alternate
        <code>DOMImplementation</code> object which implements interfaces
        associated with that feature.  Any alternate
        <code>DOMImplementation</code> returned by this method must delegate to
        the primary core <code>DOMImplementation</code> and not return results
        inconsistent with the primary <code>DOMImplementation</code></p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>
</interface>
 
<!--[ DocumentFragment object description ]-->    
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="DocumentFragment" inherits="Node" id="ID-B63ED1A3">
  <descr>
    <p><code>DocumentFragment</code> is a "lightweight" or "minimal"
      <code>Document</code> object. It is very common to want to be able to
      extract a portion of a document's tree or to create a new fragment of a
      document. Imagine implementing a user command like cut or rearranging a
      document by moving fragments around. It is desirable to have an object
      which can hold such fragments and it is quite natural to use a Node for
      this purpose. While it is true that a <code>Document</code> object could
      fulfill this role, a <code>Document</code> object can potentially be a
      heavyweight object, depending on the underlying implementation. What is
      really needed for this is a very lightweight
      object. <code>DocumentFragment</code> is such an object.</p>
    <p>Furthermore, various operations -- such as inserting nodes as children
      of another <code>Node</code> -- may take <code>DocumentFragment</code>
      objects as arguments;  this results in all the child nodes of the
      <code>DocumentFragment</code> being moved to the child list of this
      node.</p>
    <p>The children of a <code>DocumentFragment</code> node are zero or more
      nodes representing the tops of any sub-trees defining the structure of
      the document. <code>DocumentFragment</code> nodes do not need to be
      <termref def="dt-well-formed">well-formed XML documents</termref>
      (although they do need to follow the rules imposed upon well-formed XML
      parsed entities, which can have multiple top nodes). For example, a
      <code>DocumentFragment</code> might have only one child and that child
      node could be a <code>Text</code> node. Such a structure model represents
      neither an HTML document nor a well-formed XML document.</p>
    <p>When a <code>DocumentFragment</code> is inserted into a
      <code>Document</code> (or indeed any other <code>Node</code> that may
      take children) the children of the <code>DocumentFragment</code> and not
      the <code>DocumentFragment</code> itself are inserted into the
      <code>Node</code>. This makes the <code>DocumentFragment</code> very
      useful when the user wishes to create nodes that are
      <termref def="dt-sibling">siblings</termref>; the
      <code>DocumentFragment</code> acts as the parent of these nodes so that
      the user can use the standard methods from the <code>Node</code>
      interface, such as <code>insertBefore</code> and
      <code>appendChild</code>.</p>
    <note>
      <p role="Infoset">
	The properties [notations] and [unparsed entities] defined by the
	Document Information Item in <bibref ref="InfoSet"/> are accessible
	through the <code>DocumentType</code> interface. The property [all
	declarations processed] is not accessible through the DOM API.
      </p>
    </note>
  </descr> 
</interface>

<!--[ Document object description ]-->    
<interface name="Document" inherits="Node" id="i-Document">
  <descr>
    <p>The <code>Document</code> interface represents the entire HTML or XML
      document. Conceptually, it is the
      <termref def="dt-root-node">root</termref> of the document tree, and
      provides the primary access to the document's data.</p>
    <p>Since elements, text nodes, comments, processing instructions,
      etc. cannot exist outside the context of a <code>Document</code>, the
      <code>Document</code> interface also contains the factory methods needed
      to create these objects. The <code>Node</code> objects created have a
      <code>ownerDocument</code> attribute which associates them with the
      <code>Document</code> within whose context they were created.</p>
  </descr>

  <attribute id="ID-B63ED1A31" name="doctype" type="DocumentType" readonly="yes" version="DOM Level 3">
    <descr>
      <p>The Document Type Declaration (see <code>DocumentType</code>)
        associated with this document. For HTML documents as well as XML
        documents without a document type declaration this returns
        <code>null</code>.</p>
      <p>This provides direct access to the <code>DocumentType</code> node,
        child node of this <code>Document</code>. This node can be set at
        document creation time and later changed through the use of child nodes
        manipulation methods, such as <code>insertBefore</code>, or
        <code>replaceChild</code>. Note, however, that while some
        implementations may instantiate different types of
        <code>Document</code> objects supporting additional features than the
        "Core", such as "HTML" <bibref role="informative" ref="DOM2HTML"/>,
        based on the <code>DocumentType</code> specified at creation time,
        changing it afterwards is very unlikely to result in a change of the
        features supported.</p>
    </descr> 
  </attribute>

  <attribute readonly="yes" name="implementation" type="DOMImplementation" id="ID-1B793EBA">
    <descr>
      <p>The <code>DOMImplementation</code> object that handles this
        document. A DOM application may use objects from multiple
        implementations.</p>
    </descr> 
  </attribute>
  
  <attribute readonly="yes" name="documentElement" type="Element" id="ID-87CD092">
    <descr>

      <p>This is a <termref def="dt-convenience">convenience</termref>
	attribute that allows direct access to the child node that is the
	<termref def="dt-document-element">document element</termref> of the
	document.</p>
      <p role="Infoset">
	<termdef id="infoset-document-element" term="[document element]">This
	attribute represents the property [document element] defined in
	<bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <!-- ********** -->
  <method name="createElement" id="ID-2141741547">
    <descr>
      <p>Creates an element of the type specified. Note that the instance
        returned implements the <code>Element</code> interface, so attributes
        can be specified directly  on the returned object.</p>
      <p>In addition, if there are known attributes with default values,
	<code>Attr</code> nodes representing them are automatically created and
	attached to the element.</p>
      <p>To create an element with a qualified name and namespace URI, use the
	<code>createElementNS</code> method.</p>
    </descr>
    <parameters>
      <param name="tagName" type="DOMString" attr="in">
	<descr>
          <p>The name of the element type to instantiate. For XML, this is
            case-sensitive, otherwise it depends on the case-sentivity of the
            markup language in use. In that case, the name is mapped to the
            canonical form of that markup by the DOM implementation.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Element">
      <descr><p>A new <code>Element</code> object with the
          <code>nodeName</code> attribute set to <code>tagName</code>, and
          <code>localName</code>, <code>prefix</code>, and
          <code>namespaceURI</code> set to <code>null</code>.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified name contains an
            illegal character.</p>
        </descr>
      </exception>
    </raises>
  </method>
  
  <!-- ********** -->
  <method name="createDocumentFragment" id="ID-35CB04B5">
    <descr>
      <p>Creates an empty <code>DocumentFragment</code> object.</p>
    </descr>
    <parameters>
      <!-- No parameters -->
    </parameters>
    <returns type="DocumentFragment">
      <descr>
        <p>A new <code>DocumentFragment</code>.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <!-- ********** -->
  <method name="createTextNode" id="ID-1975348127">
    <descr>
      <p>Creates a <code>Text</code> node given the specified string.</p>
    </descr> 
    <parameters>
      <param name="data" type="DOMString" attr="in">
	<descr>
          <p>The data for the node.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Text">
      <descr>
        <p>The new <code>Text</code> object.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <!-- ********** -->
  <method name="createComment" id="ID-1334481328">
    <descr>
      <p>Creates a <code>Comment</code> node given the specified string.</p>
    </descr> 
    <parameters>
      <param name="data" type="DOMString" attr="in">
	<descr>
          <p>The data for the node.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Comment">
      <descr>
        <p>The new <code>Comment</code> object.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <!-- ********** -->
  <method name="createCDATASection" id="ID-D26C0AF8">
    <descr>
      <p>Creates a <code>CDATASection</code> node whose value is the specified
        string.</p>
    </descr> 
    <parameters>
      <param name="data" type="DOMString" attr="in">
	<descr>
          <p>The data for the <code>CDATASection</code> contents.</p>
	</descr>
      </param>
    </parameters>
    <returns type="CDATASection">
      <descr>
        <p>The new <code>CDATASection</code> object.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_SUPPORTED_ERR: Raised if this document is an HTML
            document.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <!-- ********** -->
  <method name="createProcessingInstruction" id="ID-135944439">
    <descr>
      <p>Creates a <code>ProcessingInstruction</code> node given the specified
        name and data strings.</p>
    </descr> 
    <parameters>
      <param name="target" type="DOMString" attr="in">
	<descr>
          <p>The target part of the processing instruction.</p>
        </descr>
      </param>
      <param name="data" type="DOMString" attr="in">
	<descr>
          <p>The data for the node.</p>
        </descr>
      </param>
    </parameters>
    <returns type="ProcessingInstruction">
      <descr>
        <p>The new <code>ProcessingInstruction</code> object.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified target contains an
            illegal character.</p>
          <p>NOT_SUPPORTED_ERR: Raised if this document is an HTML
            document.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <!-- ********** -->
  <method name="createAttribute" id="ID-1084891198">
    <descr>
      <p>Creates an <code>Attr</code> of the given name. Note that the
        <code>Attr</code> instance can then be set on an <code>Element</code>
        using the <code>setAttributeNode</code> method. </p>
      <p>To create an attribute with a qualified name and namespace URI, use
	the <code>createAttributeNS</code> method.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the attribute.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>A new <code>Attr</code> object with the <code>nodeName</code>
          attribute set to <code>name</code>, and <code>localName</code>,
          <code>prefix</code>, and <code>namespaceURI</code> set to
          <code>null</code>. The value of the attribute is the empty
          string.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified name contains an
            illegal character.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="createEntityReference" id="ID-392B75AE">
    <descr>
      <p>Creates an <code>EntityReference</code> object. In addition, if the
        referenced entity is known, the child list of the
        <code>EntityReference</code> node is made the same as that of the
        corresponding <code>Entity</code> node.</p>
      <note>
        <p>If any descendant of the <code>Entity</code> node has an unbound
          <termref def="dt-namespaceprefix">namespace prefix</termref>, the
          corresponding descendant of the created <code>EntityReference</code>
          node is also unbound; (its <code>namespaceURI</code> is
          <code>null</code>). The DOM Level 2 does not support any mechanism to
          resolve namespace prefixes.</p>
      </note>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the entity to reference.</p>
        </descr>
      </param>
    </parameters>
    <returns type="EntityReference">
      <descr><p>The new <code>EntityReference</code> object.</p></descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified name contains an
            illegal character.</p>
          <p>NOT_SUPPORTED_ERR: Raised if this document is an HTML
            document.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <!-- ********** -->
  <method name="getElementsByTagName" id="ID-A6C9094">
    <descr>
      <p>Returns a <code>NodeList</code> of all the <code>Elements</code> with
        a given tag name in <termref def="dt-document-order">document
          order</termref>.</p>
    </descr>
    <parameters>
      <param name="tagname" type="DOMString" attr="in">
	<descr>
          <p>The name of the tag to match on. The special value "*" matches all
            tags. For XML, this is case-sensitive, otherwise it depends on the
            case-sentivity of the markup language in use.</p>
        </descr>
      </param>
    </parameters>
    <returns type="NodeList">
      <descr>
        <p>A new <code>NodeList</code> object containing all the matched
          <code>Elements</code>.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <!-- ****** DOM Level 2 additions ****** -->
  <method name="importNode" id="Core-Document-importNode" since="DOM Level 2">
    <descr>
      <p>Imports a node from another document to this document. The returned
	node has no parent; (<code>parentNode</code> is <code>null</code>). The
	source node is not altered or removed from the original document; this
	method creates a new copy of the source node.</p>

      <p>For all nodes, importing a node creates a node object owned by the
	importing document, with attribute values identical to the source
	node's <code>nodeName</code> and <code>nodeType</code>, plus the
	attributes related to namespaces (<code>prefix</code>,
	<code>localName</code>, and <code>namespaceURI</code>). As in the
	<code>cloneNode</code> operation, the source node is not altered. User
        data associated to the imported node is not carried over. However,
        if any <code>UserDataHandlers</code> has been specified along with the
        associated data these handlers will be called with the appropriate
        parameters before this method returns.</p>

      <p>Additional information is copied as appropriate to the
        <code>nodeType</code>, attempting to mirror the behavior expected if a
        fragment of XML or HTML source was copied from one document to another,
        recognizing that the two documents may have different DTDs in the XML
        case. The following list describes the specifics for each type of node.

	<glist>
	  <gitem>
	    <label>ATTRIBUTE_NODE</label>

	    <def>
              <p>The <code>ownerElement</code> attribute is set to
                <code>null</code> and the <code>specified</code> flag is set to
		<code>true</code> on the generated <code>Attr</code>. The
		<termref def="dt-descendant">descendants</termref> of the
                source <code>Attr</code> are recursively imported and the
                resulting nodes reassembled to form the corresponding
                subtree.</p>
	      <p>Note that the <code>deep</code> parameter has no effect on 
		<code>Attr</code> nodes; they always carry their children with
		them when imported.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>DOCUMENT_FRAGMENT_NODE</label>
	    <def>
              <p>If the <code>deep</code> option was set to
                <code>true</code>, the
                <termref def="dt-descendant">descendants</termref> of the
                source <code>DocumentFragment</code> are recursively imported
                and the resulting nodes reassembled under the imported
                <code>DocumentFragment</code> to form the corresponding
                subtree. Otherwise, this simply generates an empty
                <code>DocumentFragment</code>.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>DOCUMENT_NODE</label>
	    <def>
              <p><code>Document</code> nodes cannot be imported.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>DOCUMENT_TYPE_NODE</label>
	    <def>
              <p><code>DocumentType</code> nodes cannot be imported.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>ELEMENT_NODE</label>
	    <def>
              <p><emph>Specified</emph> attribute nodes of the source element
                are imported, and the generated <code>Attr</code> nodes are
                attached to the generated <code>Element</code>. Default
                attributes are <emph>not</emph> copied, though if the document
                being imported into defines default attributes for this element
                name, those are assigned. If the <code>importNode</code>
                <code>deep</code> parameter was set to <code>true</code>, the
                <termref def="dt-descendant">descendants</termref> of the
                source element are recursively imported and the resulting nodes
                reassembled to form the corresponding subtree.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>ENTITY_NODE</label>
	    <def>
              <p><code>Entity</code> nodes can be imported, however in the
		current release of the DOM the <code>DocumentType</code> is
		readonly. Ability to add these imported nodes to a
		<code>DocumentType</code> will be considered for addition to a
		future release of the DOM.</p>
	      <p>On import, the <code>publicId</code>, <code>systemId</code>,
		and <code>notationName</code> attributes are copied. If a
		<code>deep</code> import is requested, the
                <termref def="dt-descendant">descendants</termref> of the
		the source <code>Entity</code> are recursively imported and the
		resulting nodes reassembled to form the corresponding
		subtree.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>ENTITY_REFERENCE_NODE</label>
	    <def>
              <p>Only the <code>EntityReference</code> itself is copied, even
                if a <code>deep</code> import is requested, since the source
                and destination documents might have defined the entity
                differently. If the document being imported into provides a
                definition for this entity name, its value is assigned.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>NOTATION_NODE</label>
	    <def>
              <p><code>Notation</code> nodes can be imported, however in the
		current release of the DOM the <code>DocumentType</code> is
		readonly. Ability to add these imported nodes to a
		<code>DocumentType</code> will be considered for addition to a
		future release of the DOM.</p>
	      <p>On import, the <code>publicId</code> and
		<code>systemId</code> attributes are copied.</p>
	      <p>Note that the <code>deep</code> parameter has no effect on 
		this type of nodes since they cannot have any children.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>PROCESSING_INSTRUCTION_NODE</label>
	    <def>
              <p>The imported node copies its <code>target</code> and
                <code>data</code> values from those of the source node.</p>
	      <p>Note that the <code>deep</code> parameter has no effect on 
		this type of nodes since they cannot have any children.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE</label>
	    <def>
              <p>These three types of nodes inheriting from
                <code>CharacterData</code> copy their <code>data</code> and
		<code>length</code> attributes from those of the source
		node.</p>
	      <p>Note that the <code>deep</code> parameter has no effect on 
		these types of nodes since they cannot have any children.</p>
	    </def>
	  </gitem>
	</glist>
      </p>
    </descr>
    <parameters>
      <param name="importedNode" type="Node" attr="in">
	<descr>
          <p>The node to import.</p>
        </descr>
      </param>
      <param name="deep" type="boolean" attr="in">
	<descr>
          <p>If <code>true</code>, recursively import the subtree under the
            specified node; if <code>false</code>, import only the node itself,
            as explained above. This has no effect on nodes that cannot have
            any children, and on <code>Attr</code>, and
            <code>EntityReference</code> nodes.</p>
	</descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>The imported node that belongs to this <code>Document</code>.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException" version="DOM Level 3">
	<descr>
          <p>NOT_SUPPORTED_ERR: Raised if the type of node being imported
	    is not supported.</p>
          <p>INVALID_CHARACTER_ERR: Raised if one the imported names contain an
            illegal character. This may happen when importing an XML 1.1
            <bibref role="informative" ref="XML11"/> element into an XML 1.0 document, for
              instance.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="createElementNS" id="ID-DocCrElNS" since="DOM Level 2">
    <descr>
      <p>Creates an element of the given qualified name and namespace URI.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            element to create.</p>
	</descr>
      </param>
      <param name="qualifiedName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-qualifiedname">qualified name</termref> of
            the element type to instantiate.</p>
	</descr>
      </param>
    </parameters>
    <returns type="Element">
      <descr>
        <p>A new <code>Element</code> object with the following attributes:</p>
	<table summary="Layout table: the first cell the name property,                the second cell contains his initial value">
	  <tbody>
	    <tr><th rowspan="1" colspan="1">Attribute</th><th rowspan="1" colspan="1">Value</th></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.nodeName</code></td>
	      <td rowspan="1" colspan="1"><code>qualifiedName</code></td>
	    </tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.namespaceURI</code></td>
	      <td rowspan="1" colspan="1"><code>namespaceURI</code></td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.prefix</code></td><td rowspan="1" colspan="1">prefix, extracted from
		<code>qualifiedName</code>, or <code>null</code> if there is no
		prefix</td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.localName</code></td>
              <td rowspan="1" colspan="1"><termref def="dt-localname">local name</termref>, extracted
                from <code>qualifiedName</code></td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Element.tagName</code></td>
	      <td rowspan="1" colspan="1"><code>qualifiedName</code></td>
	    </tr>
	  </tbody>
	</table>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified qualified name
	    contains an illegal character.</p>
	  <p>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
            malformed per the Namespaces in XML specification, if the
            <code>qualifiedName</code> has a prefix and the
            <code>namespaceURI</code> is <code>null</code>, or if the
            <code>qualifiedName</code> has a prefix that is "xml" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/XML/1998/namespace" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/XML/1998/namespace</loc>"
            <bibref ref="Namespaces"/>.</p>
          <p>NOT_SUPPORTED_ERR: Always thrown if the current document does not
            support the <code>"XML"</code> feature, since namespaces were
            defined by XML.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="createAttributeNS" id="ID-DocCrAttrNS" since="DOM Level 2">
    <descr>
      <p>Creates an attribute of the given qualified name and namespace
        URI.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute to create.</p>
	</descr>
      </param>
      <param name="qualifiedName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-qualifiedname">qualified name</termref> of
            the attribute to instantiate.</p>
	</descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>A new <code>Attr</code> object with the following attributes:</p>
	<table summary="Layout table: the first cell the name property,                the second cell contains his initial value">
	  <tbody>
	    <tr><th rowspan="1" colspan="1">Attribute</th><th rowspan="1" colspan="1">Value</th></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.nodeName</code></td><td rowspan="1" colspan="1">qualifiedName</td>
	    </tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.namespaceURI</code></td>
	      <td rowspan="1" colspan="1"><code>namespaceURI</code></td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.prefix</code></td><td rowspan="1" colspan="1">prefix, extracted from
		<code>qualifiedName</code>, or <code>null</code> if there is no
		prefix</td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.localName</code></td>
              <td rowspan="1" colspan="1"><termref def="dt-localname">local name</termref>, extracted
                from <code>qualifiedName</code></td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Attr.name</code></td>
	      <td rowspan="1" colspan="1"><code>qualifiedName</code></td></tr>
	    <tr><td rowspan="1" colspan="1"><code>Node.nodeValue</code></td>
	      <td rowspan="1" colspan="1">the empty string</td></tr>
	  </tbody>
	</table>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified qualified name
	    contains an illegal character.</p>
	  <p>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
            malformed per the Namespaces in XML specification, if the
            <code>qualifiedName</code> has a prefix and the
            <code>namespaceURI</code> is <code>null</code>, if the
            <code>qualifiedName</code> has a prefix that is "xml" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/XML/1998/namespace" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/XML/1998/namespace</loc>", if the
            <code>qualifiedName</code> or its prefix is "xmlns" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>", or if the
            <code>namespaceURI</code> is
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>" and neither the
            <code>qualifiedName</code> nor its prefix is "xmlns".</p>
          <p>NOT_SUPPORTED_ERR: Always thrown if the current document does not
            support the <code>"XML"</code> feature, since namespaces were
            defined by XML.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="getElementsByTagNameNS" id="ID-getElBTNNS" since="DOM Level 2">
    <descr>
      <p>Returns a <code>NodeList</code> of all the <code>Elements</code> with
        a given <termref def="dt-localname">local name</termref> and namespace
        URI in <termref def="dt-document-order">document order</termref>.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            elements to match on. The special value "*" matches all
            namespaces.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
	    elements to match on. The special value "*" matches all local
	    names.</p>
	</descr>
      </param>
    </parameters>
    <returns type="NodeList">
      <descr>
        <p>A new <code>NodeList</code> object containing all the matched
	  <code>Elements</code>.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <method name="getElementById" id="ID-getElBId" since="DOM Level 2">
    <descr>
      <p>Returns the <code>Element</code> that has an ID attribute with the
        given value. If no such element exists, this returns <code>null</code>.
        If more than one element has an ID attribute with that value, what
        is returned is undefined.
      </p>
      <p>To define an attribute of type ID see the <code>setIdAttribute</code>
        method and its siblings on <code>Element</code>. To query whether an
        attribute is of type ID see <code>isId</code> on <code>Attr</code>.
        <note>
          <p>Attributes with the name "ID" or "id" are not of type ID unless
            so defined.</p>
        </note>
      </p>
    </descr>
    <parameters>
      <param name="elementId" type="DOMString" attr="in">
	<descr>
          <p>The unique <code>id</code> value for an element.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Element">
      <descr>
        <p>The matching element or <code>null</code> if there is none.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <!-- ****** DOM Level 3 additions ****** -->
  <attribute readonly="no" type="DOMString" name="actualEncoding" id="Document3-actualEncoding" since="DOM Level 3">
    <descr>
      <p>An attribute specifying the actual encoding of this document. This is
        <code>null</code> otherwise.</p>
      <p role="Infoset">
	<termdef id="infoset-character-encoding-scheme" term="[character  encoding scheme]">This attribute represents the property [character
	encoding scheme] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="no" type="DOMString" name="encoding" id="Document3-encoding" since="DOM Level 3">
    <descr>
      <p>An attribute specifying, as part of the XML declaration, the encoding
        of this document. This is <code>null</code> when unspecified.</p>
    </descr>
  </attribute>

  <attribute readonly="no" type="boolean" name="standalone" id="Document3-standalone" since="DOM Level 3">
    <descr>
      <p>An attribute specifying, as part of the XML declaration, whether this
        document is standalone.</p>
      <p role="Infoset">
	<termdef id="infoset-standalone" term="[standalone]">This attribute
	represents the property [standalone] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="no" type="DOMString" name="version" id="Document3-version" since="DOM Level 3">
    <descr>
      <p>An attribute specifying, as part of the XML declaration, the
        version number of this document. This is <code>null</code> when
        unspecified.</p>
      <p role="Infoset">
	<termdef id="infoset-version" term="[version]">This attribute
	represents the property [version] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
    <setraises> 
      <exception name="DOMException">	
        <descr>
          <p>NOT_SUPPORTED_ERR: Raised if the version is set to a value that
            is not supported by this <code>Document</code>.</p>
        </descr> 
      </exception> 
    </setraises> 
  </attribute>

  <attribute readonly="no" type="boolean" name="strictErrorChecking" id="Document3-strictErrorChecking" since="DOM Level 3">
    <descr>
      <p>An attribute specifying whether errors checking is enforced or
        not. When set to <code>false</code>, the implementation is free to not
        test every possible error case normally defined on DOM operations, and
        not raise any <code>DOMException</code>. In case of error, the behavior
        is undefined. This attribute is <code>true</code> by defaults.</p>
    </descr>
  </attribute>

  <attribute type="DOMErrorHandler" readonly="no" name="errorHandler" id="Document3-errorHandler" since="DOM Level 3">
    <descr><p>This attribute allows applications to specify a
        <code>DOMErrorHandler</code> to be called in the event that an error is
        encountered while performing an operation on a document. Note that
        not all methods use this mechanism, see the description of each method
        for details.</p>
    </descr>
  </attribute>

  <attribute name="documentURI" id="Document3-documentURI" type="DOMString" readonly="no" since="DOM Level 3">
    <descr>
      <p>The location of the document or <code>null</code> if undefined.</p>
      <p>Beware that when the <code>Document</code> supports the feature "HTML"
        <bibref role="informative" ref="DOM2HTML"/>, the href attribute of the HTML BASE element
          takes precedence over this attribute.</p>
    </descr>
  </attribute>

  <method name="adoptNode" id="Document3-adoptNode" since="DOM Level 3">
    <descr><p>Changes the <code>ownerDocument</code> of a node, its children,
        as well as the attached attribute nodes if there are any. If the node
        has a parent it is first removed from its parent child list. This
        effectively allows moving a subtree from one document to another. The
        following list describes the specifics for each type of node.
	<glist>
	  <gitem>
	    <label>ATTRIBUTE_NODE</label>
	    <def>
              <p>The <code>ownerElement</code> attribute is set to
                <code>null</code> and the <code>specified</code> flag is set to
		<code>true</code> on the adopted <code>Attr</code>. The
		descendants of the source <code>Attr</code> are recursively
		adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>DOCUMENT_FRAGMENT_NODE</label>
	    <def>
              <p>The descendants of the source node are recursively
                adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>DOCUMENT_NODE</label>
	    <def>
              <p><code>Document</code> nodes cannot be adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>DOCUMENT_TYPE_NODE</label>
	    <def>
              <p><code>DocumentType</code> nodes cannot be adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>ELEMENT_NODE</label>
	    <def>
              <p><emph>Specified</emph> attribute nodes of the source element
                are adopted, and the generated <code>Attr</code> nodes. Default
                attributes are discarded, though if the document being adopted
                into defines default attributes for this element name, those
                are assigned. The descendants of the source element are
                recursively adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>ENTITY_NODE</label>
	    <def>
              <p><code>Entity</code> nodes cannot be adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>ENTITY_REFERENCE_NODE</label>
	    <def>
              <p>Only the <code>EntityReference</code> node itself is adopted,
                the descendants are discarded, since the source and destination
                documents might have defined the entity differently. If the
                document being imported into provides a definition for this
                entity name, its value is assigned.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>NOTATION_NODE</label>
	    <def>
              <p><code>Notation</code> nodes cannot be adopted.</p>
	    </def>
	  </gitem>
	  <gitem>
	    <label>PROCESSING_INSTRUCTION_NODE, TEXT_NODE, CDATA_SECTION_NODE,
              COMMENT_NODE</label>
	    <def>
              <p>These nodes can all be adopted. No specifics.</p>
	    </def>
	  </gitem>
	</glist>
      </p>
      <issue id="adoptNode-1" status="closed">
        <p>Should this method simply return null when it fails? How
          "exceptional" is failure for this method?</p>
        <resolution>
          <p>Stick with raising exceptions only in exceptional circumstances,
            return null on failure (F2F 19 Jun 2000).</p>
        </resolution>
      </issue>
      <issue id="adoptNode-2" status="closed">
        <p>Can an entity node really be adopted?</p>
        <resolution>
          <p>No, neither can Notation nodes (Telcon 13 Dec 2000).</p>
        </resolution>
      </issue>
      <issue id="adoptNode-3" status="closed">
        <p>Does this affect keys and hashCode's of the adopted subtree
          nodes?</p>
        <p>If so, what about readonly-ness of key and hashCode?</p>
        <p>if not, would appendChild affect keys/hashCodes or would it generate
          exceptions if key's are duplicate?</p>
        <resolution>
          <p>Both keys and hashcodes have been dropped.</p>
        </resolution>
      </issue>
    </descr>
    <parameters>
      <param attr="in" type="Node" name="source">
        <descr>
          <p>The node to move into this document.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>The adopted node, or <code>null</code> if this operation fails, such
          as when the source node comes from a different implementation.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_SUPPORTED_ERR: Raised if the source node is of type
            <code>DOCUMENT</code>, <code>DOCUMENT_TYPE</code>.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised when the source node is
            readonly.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="normalizeDocument" id="Document3-normalizeDocument" since="DOM Level 3">
    <descr>
      <p>This method acts as if the document was going through a save and load
        cycle, putting the document in a "normal" form. The actual result
        depends on the features being set and governing what operations
        actually take place. See <code>setNormalizationFeature</code> for
        details.</p>
      <p>Noticeably this method normalizes <code>Text</code> nodes, makes the
        document "namespace wellformed", according to the algorithm described
        below in pseudo code, by adding missing namespace declaration
        attributes and adding or changing namespace prefixes, updates the
        replacement tree of <code>EntityReference</code> nodes, normalizes
        attribute values, etc.</p>
      <p>Mutation events, when supported, are generated to reflect the changes
        occuring on the document.</p>
      <p>See <specref ref="normalizeDocumentAlgo"/> for details on how
          namespace declaration attributes and prefixes are normalized.</p>
      <issue id="normalizeNS-1" status="closed">
        <p>Any other name? Joe proposes normalizeNamespaces.</p>
        <resolution>
          <p>normalizeDocument. (F2F 26 Sep 2001)</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-2" status="closed">
        <p>How specific should this be? Should we not even specify that this
          should be done by walking down the tree?</p>
        <resolution>
          <p>Very. See above.</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-3" status="closed">
        <p>What does this do on attribute nodes?</p>
        <resolution>
          <p>Doesn't do anything (F2F 1 Aug 2000).</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-4" status="closed">
        <p>How does it work with entity reference subtree which may be
          broken?</p>
        <resolution>
          <p>This doesn't affect entity references which are not visited in
            this operation (F2F 1 Aug 2000).</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-5" status="closed">
        <p>Should this really be on Node?</p>
        <resolution>
          <p>Yes, but this only works on Document, Element, and
            DocumentFragment. On other types it is a no-op. (F2F 1 Aug
            2000).</p>
          <p>No. Now that it does much more than simply fixing namespaces it
            only makes sense on Document (F2F 26 Sep 2001).</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-6" status="closed">
        <p>What happens with read-only nodes?</p>
      </issue>
      <issue id="normalizeNS-7" status="closed">
        <p>What/how errors should be reported? Are there any?</p>
        <resolution>
          <p>Through the error reporter.</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-8" status="closed">
        <p>Should this be optional?</p>
        <resolution>
          <p>No.</p>
        </resolution>
      </issue>
      <issue id="normalizeNS-9" status="closed">
        <p>What happens with regard to mutation events?</p>
        <resolution>
          <p>Mutation events are fired as expected. (F2F 28 Feb 2002).</p>
        </resolution>
      </issue>
    </descr>
    <parameters>
      <!-- no params -->
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <!-- no exception -->
    </raises>
  </method>

  <method name="canSetNormalizationFeature" id="Document3-canSetNormalizationFeature" since="DOM Level 3">
    <descr>
      <p>Query whether setting a feature to a specific value is supported.</p>
      <p>The feature name has the same form as a DOM <code>hasFeature</code>
        string.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
        <descr>
          <p>The name of the feature to check.</p>
        </descr>
      </param>
      <param name="state" type="boolean" attr="in">
        <descr>
          <p>The requested state of the feature (<code>true</code> or
            <code>false</code>).</p>
        </descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
        <p><code>true</code> if the feature could be successfully set to the
          specified value, or <code>false</code> if the feature is not
          recognized or the requested value is not supported. This does not
          change the current value of the feature itself.</p>
      </descr>
    </returns>

    <raises>
    </raises>
  </method>

  <method name="setNormalizationFeature" id="Document3-setNormalizationFeature" since="DOM Level 3">
    <descr>
      <p>Set the state of a feature.</p>
      <issue id="normalizationFeature-1" status="closed">
        <p>Need to specify the list of features.</p>
      </issue>

      <p>Feature names are valid XML names. Implementation specific features
        (extensions) should choose an implementation specific prefix to avoid
        name collisions. The following lists feature names that are recognized
        by all implementations. However, it is sometimes possible for a
        <code>Document</code> to recognize a feature but not to support setting
        its value. The following list of recognized features indicates the
        definitions of each feature state, if setting the state to
        <code>true</code> or <code>false</code> must be supported or is
        optional and, which state is the default one:</p>

      <glist>
        <gitem>
          <label><code>"canonical-form"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Canonicalize the document according to the rules specified
                    in <bibref role="informative" ref="c14n"/>. Note that this
                    is limited to what can be represented in the DOM. In
                    particular, there is no way to specify the order of the
                    attributes in the DOM.</p>

		  <issue id="normalizationFeature-14" status="open">
		    <p>
		      What happen to other features? are they ignored? if yes,
		      how do you know if a feature is ignored?
		    </p>
		  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Do not canonicalize the document.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"cdata-sections"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Keep <code>CDATASection</code> nodes in the document.</p>
                  <issue id="normalizationFeature-11" status="closed">
                    <p>Name does not work really well in this case. ALH
                      suggests renaming this to "cdata-sections". It works
                      for both load and save.</p>
                    <resolution>
                      <p>Renamed as suggested. (Telcon 27 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Transform <code>CDATASection</code> nodes in the document
                    into <code>Text</code> nodes. The new <code>Text</code>
                    node is then combined with any adjacent <code>Text</code>
                    node.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"comments"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Keep <code>Comment</code> nodes in the document.</p>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Discard <code>Comment</code> nodes in the Document.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"datatype-normalization"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Let the validation process do its datatype
                    normalization that is defined in the used schema language.
                    Note that this does not affect the DTD normalization
                    operation which always takes place, in accordance to
                    <bibref ref="XML"/>.</p>
                  <issue id="normalizationFeature-8" status="closed">
                    <p>We should define "datatype normalization".</p>
                    <resolution>
                      <p>DTD normalization always apply because it's part of
                        XML 1.0. Clarify the spec. (Telcon 27 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Disable datatype normalization. The XML 1.0 attribute
                    value normalization always occurs though.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"discard-default-content"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Use whatever information available to the implementation
                    (i.e. XML schema, DTD, the <code>specified</code> flag on
                    <code>Attr</code> nodes, and so on) to decide what
                    attributes and content should be discarded or not. Note
                    that the <code>specified</code> flag on <code>Attr</code>
                    nodes in itself is not always reliable, it is only reliable
                    when it is set to <code>false</code> since the only case
                    where it can be set to <code>false</code> is if the
                    attribute was created by the implementation. The default
                    content won't be removed if an implementation does not have
                    any information available.</p>
                  <issue id="normalizationFeature-2" status="closed">
                    <p>How does exactly work? What's the comment about level 1
                      implementations?</p>
                    <resolution>
                      <p>Remove "Level 1" (Telcon 16 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Keep all attributes and all content.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"entities"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Keep <code>EntityReference</code> and <code>Entity</code>
                    nodes in the document.</p>
                  <issue id="normalizationFeature-9" status="closed">
                    <p>How does that interact with
                        expand-entity-references? ALH suggests consolidating
                        the two to a single feature called
                        "entity-references" that is used both for load and
                        save.</p>
                    <resolution>
                      <p>Consolidate both features into a single feature called
                        'entities'. (Telcon 27 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Remove all <code>EntityReference</code> and
                    <code>Entity</code> nodes from the document, putting the
                    entity expansions directly in their place.
                    <code>Text</code> nodes are into "normal" form. Only
                    <code>EntityReference</code> nodes to non-defined entities
                    are kept in the document.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"infoset"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Only keep in the document the information defined in the
                    XML Information Set <bibref ref="InfoSet"/>.</p>
                  <p>This forces the following features to
                    <code>false</code>:
                    <code>namespace-declarations</code>,
                    <code>validate-if-schema</code>,
                    <code>entities</code>,
                    <code>datatype-normalization</code>,
                    <code>cdata-sections</code>.</p>
                  <p>This forces the following features to
                    <code>true</code>:
                    <code>whitespace-in-element-content</code>,
                    <code>comments</code>.</p>
                  <p>Other features are not changed unless explicity specified
                    in the description of the features.</p>
                  <p> Note that querying this feature with
                    <code>getFeature</code> returns <code>true</code> only if
                    the individual features specified above are appropriately
                    set.</p>
                  <issue id="normalizationFeature-12" status="closed">
                    <p>Name doesn't work well here. ALH suggests renaming this
                      to limit-to-infoset or match-infoset, something like
                      that.</p>
                    <resolution>
                      <p>Renamed 'infoset' (Telcon 27 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>Setting <code>infoset</code> to <code>false</code>
                    has no effect.</p>
                  <issue id="normalizationFeature-13" status="open">
                    <p>Shouldn't we change this to setting the relevant options
                      back to their default value?</p>
                    <resolution>
                      <p>No, this is more like a convenience function, it's
                        better to keep it simple. (F2F 28 Feb 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
      <gitem>
	<label><code>"namespaces"</code></label>
	<def>
	  <glist>
	    <gitem>
	      <label><code>true</code></label>
	      <def>
		<p>[<emph>required</emph>] (<emph>default</emph>)</p>
		<p>
		  Perform the namespace processing as defined in
		  <bibref ref="Namespaces"/>.
		</p>
	      </def>
	    </gitem>
	    <gitem>
	      <label><code>false</code></label>
	      <def>
		<p>[<emph>optional</emph>]</p>
		<p>
		  Do not perform the namespace processing.
		</p>
	      </def>
	    </gitem>
	  </glist>
	</def>
      </gitem>
        <gitem>
          <label><code>"namespace-declarations"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Include namespace declaration attributes, specified or
                    defaulted from the schema or the DTD, in the document. See
                    also the section
                    <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-decl" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Declaring
                      Namespaces</xspecref> in <bibref ref="Namespaces"/>.</p>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Discard all namespace declaration attributes. The
                    Namespace prefixes are retained even if this feature is set
                    to <code>false</code>.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"normalize-characters"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Perform the W3C Text Normalization of the characters
                    <bibref ref="Charmod"/> in the document.
                  </p>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Do not perform character normalization.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"split-cdata-sections"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Split CDATA sections containing the CDATA section
                    termination marker ']]&gt;'. When a CDATA section is split
                    a warning is issued.</p>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Signal an error if a <code>CDATASection</code> contains
                    an unrepresentable character.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
<!-- Consolidated as 'entities' (Telcon 27 Jan 2002)
        <gitem>
          <label><code>"expand-entity-references"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Expand <code>EntityReference</code> nodes when
                    normalizing.</p>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Keep all <code>EntityReference</code> nodes in
                    document.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
-->
        <gitem>
          <label><code>"validate"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>

		  <p>
		    Require the validation against a schema (i.e. XML
		    schema, DTD, any other type or representation of
		    schema) of the document as it is being normalized as
		    defined by <bibref ref="XML"/>. If validation errors
		    are found, or no schema was found, the error handler
		    is notified. Note also that no datatype
		    normalization (i.e. non-XML 1.0 normalization) is
		    done according to the schema used unless the feature
		    <code>datatype-normalization</code> is
		    <code>true</code>.
		  </p>
		  <note>
		    <p>
		      <code>validate-if-schema</code> and <code>validate</code>
		      are mutually exclusive, setting one of them to
		      <code>true</code> will set the other one to
		      <code>false</code>.
		    </p>		    
		  </note>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>
		    Only XML 1.0 non-validating processing must be
		    done. Note that validation might still happen if
		    <code>validate-if-schema</code> is
		    <code>true</code>.
		  </p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"validate-if-schema"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Enable validation only if a declaration for the document
                    element can be found (independently of where it is found,
                    i.e. XML schema, DTD, or any other type or representation of
                    schema). If validation errors are found, the error handler
                    is notified. Note also that no datatype normalization
                    (i.e. non-XML 1.0 normalization) is done according to the
                    schema used unless the feature
                    <code>datatype-normalization</code> is
                    <code>true</code>.</p>
		  <note>
		    <p>
		      <code>validate-if-schema</code> and
		      <code>validate</code> are mutually exclusive,
		      setting one of them to <code>true</code> will
		      set the other one to <code>false</code>.
		    </p>
		  </note>
                  <issue id="normalizationFeature-6" status="closed">
                    <p>How does that interact with the notion of active AS?</p>
                    <resolution>
                      <p>If document has AS model, than it "has a schema", thus
                        validation will be performed against the active AS
                        model. (Telcon 16 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>

                  <p>No validation should be performed if the document has a
		    schema. Note that validation must still happen if
		    <code>validate</code> is <code>true</code>.
		  </p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
<!-- removed (F2F 1 March 2002)
        <gitem>
          <label><code>"validate-against-dtd"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>This feature modifies <code>validate</code> and
		    <code>validate-if-schema</code>. When this feature and
		    <code>validate</code> are <code>true</code>, the validation
		    is required to use a DTD. When this feature and
		    <code>validate-if-schema</code> are <code>true</code>, the
		    validation will use a DTD if there is one, otherwise no
		    validation will be performed. Setting this feature when both
		    <code>validate</code> and <code>validate-if-schema</code> are
		    <code>false</code> has no effect.</p>		  
                  <issue id="normalizationFeature-7">
                    <p>How does that interact with the notion of active AS?</p>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Let the implementation decide what to validate against if
                    multiple types of schemas are in use.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
-->
        <gitem>
          <label><code>"whitespace-in-element-content"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Keep all white spaces in the document.</p>
		  <issue id="normalizationFeature-15" status="open">
		    <p>
		      How does this feature interact with
		      <code>"validate"</code> and
		      <code>Text.isWhitespaceInElementContent</code>.
		    </p>
		  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Discard white space in element content while normalizing.
                    The implementation is expected to use the
                    <code>isWhitespaceInElementContent</code> flag on
                    <code>Text</code> nodes to determine if a text node
                    should be written out or not.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
<!-- removed (Telcon 27 Jan 2002)
        <gitem>
          <label><code>"format-pretty-print"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Format the document by adding whitespace to produce a
                    pretty-printed, indented, human-readable form. The exact
                    form of the transformations is not specified by this
                    specification. Setting this feature to true sets the
                    feature "format-canonical" to false.</p>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Do not pretty-print the document.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
-->
<!--
        <gitem>
          <label><code>"external-parameter-entities"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>]</p>
                  <p>Load external parameter entities.</p>
                  <issue id="normalizationFeature-3" status='closed'>
                    <p>Doesn't really apply, does it? What does including them
                      mean? Also, false can't be the default and be optional at
                      the same time.</p>
                    <resolution>
                      <p>Removed (Telcon 16 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>optional</emph>] (<emph>default</emph>)</p>
                  <p>Do not load external parameter entities.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"external-general-entities"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Include all external general (text) entities.</p>
                  <issue id="normalizationFeature-4" status='closed'>
                    <p>Doesn't really apply, does it? What does including them
                      mean?</p>
                    <resolution>
                      <p>Removed (Telcon 16 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Do not include external general entities.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
        <gitem>
          <label><code>"external-dtd-subset"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Load the external DTD subset and also all external
                    parameter entities.</p>
                  <issue id="normalizationFeature-5" status='closed'>
                    <p>Doesn't really apply, does it? What does loading mean
                      here?</p>
                    <resolution>
                      <p>Removed (Telcon 16 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Do not load the external DTD subset nor external parameter
                    entities.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
-->
<!--
        <gitem>
          <label><code>"create-entity-nodes"</code></label>
          <def>
            <glist>
              <gitem>
                <label><code>true</code></label>
                <def>
                  <p>[<emph>required</emph>] (<emph>default</emph>)</p>
                  <p>Create <code>Entity</code> nodes in the document.</p>
                  <issue id="normalizationFeature-10" status='closed'>
                    <p>How does that interact with
                        expand-entity-references? ALH suggests renaming this
                      one "entity-nodes", or simply "entities" for
                      consistency.</p>
                    <resolution>
                      <p>Removed. Merged with single feature called 'entities'.
                        (Telcon 27 Jan 2002).</p>
                    </resolution>
                  </issue>
                </def>
              </gitem>
              <gitem>
                <label><code>false</code></label>
                <def>
                  <p>[<emph>optional</emph>]</p>
                  <p>Omit all <code>entity</code> nodes from the document. It
                    also sets <code>create-entity-ref-nodes</code> to
                    <code>false</code>.</p>
                </def>
              </gitem>
            </glist>
          </def>
        </gitem>
-->
      </glist>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
        <descr>
          <p>The name of the feature to set.</p>
        </descr>
      </param>
      <param name="state" type="boolean" attr="in">
        <descr>
          <p>The requested state of the feature (<code>true</code>
            or <code>false</code>).</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_SUPPORTED_ERR: Raised when the feature name is recognized but
            the requested value cannot be set.</p>
          <p>NOT_FOUND_ERR: Raised when the feature name is not recognized.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="getNormalizationFeature" id="Document3-getNormalizationFeature" since="DOM Level 3">
    <descr>
      <p>Look up the value of a feature.</p>
      <p>The feature name has the same form as a DOM <code>hasFeature</code>
        string. The recognized features are the same as the ones defined for
        <code>setNormalizationFeature</code>.</p>
    </descr>

    <parameters>
      <param name="name" type="DOMString" attr="in">
        <descr>
          <p>The name of the feature to look up.</p>
        </descr>
      </param>
    </parameters>

    <returns type="boolean">
      <descr>
        <p>The current state of the feature (<code>true</code> or
          <code>false</code>).</p>
      </descr>
    </returns>

    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_FOUND_ERR: Raised when the feature name is not recognized.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="renameNode" id="Document3-renameNode" since="DOM Level 3">
    <descr>
      <p>Rename an existing node. When possible this simply changes the name of
        the given node, otherwise this creates a new node with the specified
        name and replaces the existing node with the new node as described
        below. This only applies to nodes of type <code>ELEMENT_NODE</code> and
        <code>ATTRIBUTE_NODE</code>.</p>
      <p>When a new node is created, the following operations are performed:
        the new node is created, any registered event listener is registered on
        the new node, any user data attached to the old node is removed from
        that node, the old node is removed from its parent if it has one, the
        children are moved to the new node, if the renamed node is an
        <code>Element</code> its attributes are moved to the new node,
        the new node is inserted at the position the old node used to have in
        its parent's child nodes list if it has one, the user data that was
        attached to the old node is attach to the new node, the user data
        event <code>NODE_RENAMED</code> is fired.</p>
      <p>When the node being renamed is an <code>Element</code> only the
        specified attributes are moved, default attributes originated from the
        DTD are updated according to the new element name. In addition, the
        implementation may update default attributes from other
        schemas. Applications should use normalizeDocument() to guarantee these
        attributes are up-to-date.</p>
      <p>When the node being renamed is an <code>Attr</code> that is attached
        to an <code>Element</code>, the node is first removed from the
        <code>Element</code> attributes map. Then, once renamed, either by
        modifying the existing node or creating a new one as described above,
        it is put back.</p>
      <p>In addition, when the implementation supports the feature
        "MutationEvents", each mutation operation involved in this method fires
        the appropriate event, and in the end the event
        <code>DOMElementNameChanged</code> or <code>DOMAttributeNameChanged</code> is
        fired.</p>
      <issue id="renameNode-1" status="closed">
        <p>Should this throw a HIERARCHY_REQUEST_ERR?</p>
        <resolution>
          <p>No. (F2F 28 Feb 2002).</p>
        </resolution>
      </issue>
    </descr>

    <parameters>
      <param name="n" type="Node" attr="in">
        <descr>
          <p>The node to rename.</p>
        </descr>
      </param>
      <param name="namespaceURI" type="DOMString" attr="in">
        <descr>
          <p>The new namespaceURI.</p>
        </descr>
      </param>
      <param name="name" type="DOMString" attr="in">
        <descr>
          <p>The new qualified name.</p>
        </descr>
      </param>
    </parameters>

    <returns type="Node">
      <descr>
        <p>The renamed node. This is either the specified node or the new node
          that was created to replace the specified node.</p>
      </descr>
    </returns>

    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_SUPPORTED_ERR: Raised when the type of the specified node is
            neither  <code>ELEMENT_NODE</code> nor
            <code>ATTRIBUTE_NODE</code>.</p>
          <p>WRONG_DOCUMENT_ERR: Raised when the specified node was created
            from a different document than this document.</p>
	  <p>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
            malformed per the Namespaces in XML specification, if the
            <code>qualifiedName</code> has a prefix and the
            <code>namespaceURI</code> is <code>null</code>, or if the
            <code>qualifiedName</code> has a prefix that is "xml" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/XML/1998/namespace" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/XML/1998/namespace</loc>"
            <bibref ref="Namespaces"/>. Also raised, when the node being
            renamed is an attribute, if the <code>qualifiedName</code>, or
            its prefix, is "xmlns" and the <code>namespaceURI</code> is
            different from "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>".</p>
        </descr>
      </exception>
    </raises>
  </method>
</interface>
 
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<!--[ Node object description ]-->
<interface name="Node" id="ID-1950641247"> 
  <descr>
    <p>The <code>Node</code> interface is the primary datatype for the entire
      Document Object Model. It represents a single node in the document
      tree. While all objects implementing the <code>Node</code> interface
      expose methods for dealing with children, not all objects implementing
      the <code>Node</code> interface may have children. For example,
      <code>Text</code> nodes may not have children, and adding children to
      such nodes results in a <code>DOMException</code> being raised.</p>
    <p>The attributes <code>nodeName</code>, <code>nodeValue</code> and
      <code>attributes</code> are included as a mechanism to get at node
      information without casting down to the specific derived interface. In
      cases where there is no obvious mapping of these attributes for a
      specific <code>nodeType</code> (e.g., <code>nodeValue</code> for an
      <code>Element</code> or <code>attributes</code> for a
      <code>Comment</code>), this returns <code>null</code>. Note that the
      specialized interfaces may contain additional and more convenient
      mechanisms to get and set the relevant information.</p>
  </descr> 
  <group id="ID-1841493061" name="NodeType"> 
    <descr>
      <p>An integer indicating which type of node this is.</p> 
      <note>
       <p>Numeric codes up to 200 are reserved to W3C for possible future
          use.</p>
      </note> 
    </descr> 
    <constant id="Node-ELEMENT_NODE" name="ELEMENT_NODE" type="unsigned short" value="1"> 
      <descr>
        <p>The node is an <code>Element</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-ATTRIBUTE_NODE" name="ATTRIBUTE_NODE" type="unsigned short" value="2"> 
      <descr>
        <p>The node is an <code>Attr</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-TEXT_NODE" name="TEXT_NODE" type="unsigned short" value="3"> 
      <descr>
        <p>The node is a <code>Text</code> node.</p>
      </descr> 
    </constant> 
    <constant id="Node-CDATA_SECTION_NODE" name="CDATA_SECTION_NODE" type="unsigned short" value="4"> 
      <descr>
        <p>The node is a <code>CDATASection</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-ENTITY_REFERENCE_NODE" name="ENTITY_REFERENCE_NODE" type="unsigned short" value="5"> 
      <descr>
        <p>The node is an <code>EntityReference</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-ENTITY_NODE" name="ENTITY_NODE" type="unsigned short" value="6"> 
      <descr>
        <p>The node is an <code>Entity</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-PROCESSING_INSTRUCTION_NODE" name="PROCESSING_INSTRUCTION_NODE" type="unsigned short" value="7"> 
      <descr>
        <p>The node is a <code>ProcessingInstruction</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-COMMENT_NODE" name="COMMENT_NODE" type="unsigned short" value="8"> 
      <descr>
        <p>The node is a <code>Comment</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-DOCUMENT_NODE" name="DOCUMENT_NODE" type="unsigned short" value="9"> 
      <descr>
        <p>The node is a <code>Document</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-DOCUMENT_TYPE_NODE" name="DOCUMENT_TYPE_NODE" type="unsigned short" value="10"> 
      <descr>
        <p>The node is a <code>DocumentType</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-DOCUMENT_FRAGMENT_NODE" name="DOCUMENT_FRAGMENT_NODE" type="unsigned short" value="11"> 
      <descr>
        <p>The node is a <code>DocumentFragment</code>.</p>
      </descr> 
    </constant> 
    <constant id="Node-NOTATION_NODE" name="NOTATION_NODE" type="unsigned short" value="12"> 
      <descr>
        <p>The node is a <code>Notation</code>.</p>
      </descr> 
    </constant> 
  </group> 
  <p>The values of <code>nodeName</code>, <code>nodeValue</code>, and
    <code>attributes</code> vary according to the node type as follows:
    <table summary="Layout table: the first cell contains the name of the            interface, the second contains the value of the nodeName attribute            for this interface, the third contains the value of the nodeValue            attribute for this interface and the fourth contains the value of            the attributes attribute for this interface" border="1">
      <tbody>	
        <tr> 
          <th rowspan="1" colspan="1">Interface</th> 
          <th rowspan="1" colspan="1">nodeName</th> 
          <th rowspan="1" colspan="1">nodeValue</th> 
          <th rowspan="1" colspan="1">attributes</th>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Attr</td> 
          <td rowspan="1" colspan="1">name of attribute</td> 
          <td rowspan="1" colspan="1">value of attribute</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">CDATASection</td> 
          <td rowspan="1" colspan="1"><code>"#cdata-section"</code></td> 
          <td rowspan="1" colspan="1">content of the CDATA Section</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Comment</td> 
          <td rowspan="1" colspan="1"><code>"#comment"</code></td> 
          <td rowspan="1" colspan="1">content of the comment</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Document</td> 
          <td rowspan="1" colspan="1"><code>"#document"</code></td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">DocumentFragment</td> 
          <td rowspan="1" colspan="1"><code>"#document-fragment"</code></td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">DocumentType</td> 
          <td rowspan="1" colspan="1">document type name</td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Element</td> 
          <td rowspan="1" colspan="1">tag name</td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">NamedNodeMap</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Entity</td> 
          <td rowspan="1" colspan="1">entity name</td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">EntityReference</td> 
          <td rowspan="1" colspan="1">name of entity referenced</td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">null</td> 
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Notation</td> 
          <td rowspan="1" colspan="1">notation name</td> 
          <td rowspan="1" colspan="1">null</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">ProcessingInstruction</td> 
          <td rowspan="1" colspan="1">target</td> 
          <td rowspan="1" colspan="1">entire content excluding the target</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr>	
        <tr> 
          <td rowspan="1" colspan="1">Text</td> 
          <td rowspan="1" colspan="1"><code>"#text"</code></td> 
          <td rowspan="1" colspan="1">content of the text node</td> 
          <td rowspan="1" colspan="1">null</td>	
        </tr> 
      </tbody> 
    </table>
  </p>

  <attribute type="DOMString" readonly="yes" name="nodeName" id="ID-F68D095"> 
    <descr> 
      <p>The name of this node, depending on its type; see the table above.</p>
    </descr> 
  </attribute> 

  <attribute type="DOMString" name="nodeValue" id="ID-F68D080" readonly="no"> 
    <descr> 
      <p>The value of this node, depending on its type; see the table
        above.  When it is defined to be <code>null</code>, setting it has no effect,
	  including if the node is read-only.</p>
    </descr> 
    <setraises> 
      <exception name="DOMException">	
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.</p>
        </descr> 
      </exception> 
    </setraises> 
    <getraises> 
      <exception name="DOMException">	
        <descr>
          <p>DOMSTRING_SIZE_ERR: Raised when it would return more characters
            than fit in a <code>DOMString</code> variable on the implementation
            platform.</p>
        </descr> 
      </exception> 
    </getraises> 
  </attribute> 

  <attribute type="unsigned short" name="nodeType" readonly="yes" id="ID-111237558"> 
    <descr>
      <p>A code representing the type of the underlying object, as defined
        above.</p>
    </descr> 
  </attribute> 

  <attribute type="Node" readonly="yes" name="parentNode" id="ID-1060184317"> 
    <descr>
      <p>The <termref def="dt-parent">parent</termref> of this node. All nodes,
        except <code>Attr</code>, <code>Document</code>,
        <code>DocumentFragment</code>, <code>Entity</code>, and
        <code>Notation</code> may have a parent. However, if a node has just
        been created and not yet added to the tree, or if it has been removed
        from the tree, this is <code>null</code>.
      </p>
      <p role="Infoset">
	<termdef id="infoset-parent" term="[parent]">When the node is an
	<code>Element</code>, a <code>ProcessingInstruction</code>, an
	<code>EntityReference</code>, a <code>CharacterData</code>, a
	<code>Comment</code>, or a <code>DocumentType</code>, this attribute
	represents the properties [parent] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr> 
  </attribute> 

  <attribute type="NodeList" readonly="yes" name="childNodes" id="ID-1451460987"> 
    <descr>
      <p>A <code>NodeList</code> that contains all children of this node. If
        there are no children, this is a <code>NodeList</code> containing no
        nodes.</p>

      <p role="Infoset">
	<termdef id="infoset-children" term="[children]">When the node is a
	<code>Document</code>, or an <code>Element</code>, and if the
	<code>NodeList</code> does not contain <code>EntityReference</code> or
	<code>CDATASection</code> nodes, this attribute represents the
	properties [children] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr> 
  </attribute> 

  <attribute readonly="yes" type="Node" name="firstChild" id="ID-169727388"> 
    <descr>
      <p>The first child of this node. If there is no such node, this returns
        <code>null</code>.</p>
    </descr> 
  </attribute> 

  <attribute readonly="yes" type="Node" name="lastChild" id="ID-61AD09FB"> 
    <descr>
      <p>The last child of this node. If there is no such node, this returns
        <code>null</code>.</p>
    </descr> 
  </attribute> 

  <attribute readonly="yes" type="Node" name="previousSibling" id="ID-640FB3C8"> 
    <descr>
      <p>The node immediately preceding this node. If there is no such node,
        this returns <code>null</code>.</p>
    </descr> 
  </attribute> 

  <attribute readonly="yes" type="Node" name="nextSibling" id="ID-6AC54C2F"> 
    <descr>
      <p>The node immediately following this node. If there is no such node,
        this returns <code>null</code>.</p>
    </descr> 
  </attribute> 

  <attribute readonly="yes" type="NamedNodeMap" name="attributes" id="ID-84CF096"> 
    <descr>
      <p>A <code>NamedNodeMap</code> containing the attributes of this node (if
        it is an <code>Element</code>) or <code>null</code> otherwise.</p>

      <p role="Infoset">
	<termdef id="infoset-attributes" term="[attributes]">If no
	namespace declaration appear in the attributes, this attribute
	represents the property [attributes] defined in <bibref ref="InfoSet"/>.</termdef> <termdef id="infoset-namespace-attributes" term="[namespace attributes]">If namespace declarations appear in the
	attributes, this attribute combines the properties [attributes]
	and [namespace attributes] defined in <bibref ref="InfoSet"/>.</termdef>
      </p>
    </descr> 
  </attribute> 

  <attribute readonly="yes" type="Document" name="ownerDocument" id="node-ownerDoc" version="DOM Level 2"> 
    <descr>
      <p>The <code>Document</code> object associated with this node. This is
        also the <code>Document</code> object used to create new nodes. When
        this node is a <code>Document</code> or a <code>DocumentType</code>
        which is not used with any <code>Document</code> yet, this is
        <code>null</code>.</p>
    </descr> 
  </attribute> 

  <method name="insertBefore" id="ID-952280727" version="DOM Level 3"> 
    <descr>
      <p>Inserts the node <code>newChild</code> before the existing child node
        <code>refChild</code>. If <code>refChild</code> is <code>null</code>,
        insert <code>newChild</code> at the end of the list of children.</p>
      <p>If <code>newChild</code> is a <code>DocumentFragment</code> object,
        all of its children are inserted, in the same order, before
        <code>refChild</code>. If the <code>newChild</code> is already in the
        tree, it is first removed.</p>
    </descr> 
    <parameters> 
      <param name="newChild" type="Node" attr="in">	
        <descr>
          <p>The node to insert.</p>
        </descr> 
      </param> 
      <param name="refChild" type="Node" attr="in">	
        <descr>
          <p>The reference node, i.e., the node before which the new node must
            be inserted.</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="Node"> 
      <descr>
        <p>The node being inserted.</p>
      </descr> 
    </returns> 
    <raises>
      <exception name="DOMException">	
        <descr>

          <p>HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does
	    not allow children of the type of the <code>newChild</code> node, or
	    if the node to insert is one of this node's <termref def="dt-ancestor">ancestors</termref> or this node itself, or if this
	    node if of type <code>Document</code> and the DOM application
	    attempts to insert a second <code>DocumentType</code> or
	    <code>Element</code> node.</p>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
            from a different document than the one that created this node.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if
            the parent of the node being inserted is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if <code>refChild</code> is not a child of
            this node.</p>
          <p>NOT_SUPPORTED_ERR: if this node if of type <code>Document</code>,
          this exception might be raised if the DOM implementation doesn't
          support the insertion of a <code>DocumentType</code> or
          <code>Element</code> node.</p>
        </descr> 
      </exception> 
    </raises> 
  </method> 

  <method name="replaceChild" id="ID-785887307" version="DOM Level 3"> 
    <descr>
      <p>Replaces the child node <code>oldChild</code> with
        <code>newChild</code> in the list of children, and returns the
        <code>oldChild</code> node.</p>
      <p>If <code>newChild</code> is a <code>DocumentFragment</code> object,
        <code>oldChild</code> is replaced by all of the
        <code>DocumentFragment</code> children, which are inserted in the same
        order. If the <code>newChild</code> is already in the tree, it is first
        removed.</p>
    </descr> 
    <parameters> 
      <param name="newChild" type="Node" attr="in">	
        <descr>
          <p>The new node to put in the child list.</p>
        </descr> 
      </param> 
      <param name="oldChild" type="Node" attr="in">	
        <descr>
          <p>The node being replaced in the list.</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="Node"> 
      <descr>
        <p>The node replaced.</p>
      </descr> 
    </returns> 
    <raises> 
      <exception name="DOMException">	
        <descr>
          <p>HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does
            not allow children of the type of the <code>newChild</code> node,
            or if the node to put in is one of this node's
            <termref def="dt-ancestor">ancestors</termref> or this node
            itself.</p>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
            from a different document than the one that created this node.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of
            the new node is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
            this node.</p>
          <p>NOT_SUPPORTED_ERR: if this node if of type <code>Document</code>,
          this exception might be raised if the DOM implementation doesn't
          support the replacement of the <code>DocumentType</code> child or
          <code>Element</code> child.</p>
        </descr> 
      </exception> 
    </raises> 
  </method> 

  <method name="removeChild" id="ID-1734834066" version="DOM Level 3"> 
    <descr>
      <p>Removes the child node indicated by <code>oldChild</code> from the
        list of children, and returns it.</p>
    </descr> 
    <parameters> 
      <param name="oldChild" type="Node" attr="in">	
        <descr>
          <p>The node being removed.</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="Node"> 
      <descr>
        <p>The node removed.</p>
      </descr> 
    </returns> 
    <raises> 
      <exception name="DOMException"> 
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
            this node.</p>
          <p>NOT_SUPPORTED_ERR: if this node if of type <code>Document</code>,
          this exception might be raised if the DOM implementation doesn't
          support the removal of the <code>DocumentType</code> child or the
          <code>Element</code> child.</p>
        </descr> 
      </exception> 
    </raises> 
  </method> 

  <method name="appendChild" id="ID-184E7107"> 
    <descr>
      <p>Adds the node <code>newChild</code> to the end of the list of children
        of this node. If the <code>newChild</code> is already in the tree, it
        is first removed.</p>
    </descr> 
    <parameters> 
      <param name="newChild" type="Node" attr="in">	
        <descr>
          <p>The node to add.</p> 
          <p>If it is a <code>DocumentFragment</code> object, the entire
            contents of the document fragment are moved into the child list of
            this node</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="Node"> 
      <descr>
        <p>The node added.</p>
      </descr> 
    </returns> 
    <raises> 
      <exception name="DOMException">	
        <descr>
          <p>HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does
            not allow children of the type of the <code>newChild</code> node,
            or if the node to append is one of this node's
            <termref def="dt-ancestor">ancestors</termref> or this node
            itself.</p>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created
            from a different document than the one that created this node.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if
            the previous parent of the node being inserted is readonly.</p>
        </descr> 
      </exception> 
    </raises> 
  </method> 

  <method name="hasChildNodes" id="ID-810594187"> 
    <descr>
      <p>Returns whether this node has any children.</p> 
    </descr> 
    <parameters>      <!-- No parameters -->
    </parameters> 
    <returns type="boolean"> 
      <descr>
        <p><code>true</code> if this node has any children, <code>false</code>
          otherwise.</p>
      </descr> 
    </returns> 
    <raises>      <!-- No exceptions -->
    </raises> 
  </method>

  <method name="cloneNode" id="ID-3A0ED0A4"> 
    <descr>
      <p>Returns a duplicate of this node, i.e., serves as a generic copy
        constructor for nodes. The duplicate node has no parent;
        (<code>parentNode</code> is <code>null</code>.) and no user data. User
        data associated to the imported node is not carried over. However,
        if any <code>UserDataHandlers</code> has been specified along with the
        associated data these handlers will be called with the appropriate
        parameters before this method returns.</p>
      <p>Cloning an <code>Element</code> copies all attributes and their
        values, including those generated by the XML processor to represent
        defaulted attributes, but this method does not copy any children it
        contains unless it is a deep clone. This includes text contained in an
        the <code>Element</code> since the text is contained in a child
        <code>Text</code> node. Cloning an <code>Attribute</code> directly, as
        opposed to be cloned as part of an <code>Element</code> cloning
        operation, returns a specified attribute (<code>specified</code> is
        <code>true</code>). Cloning an <code>Attribute</code> always clones its
        children, since they represent its value, no matter whether this is a
        deep clone or not. Cloning an <code>EntityReference</code>
        automatically constructs its subtree if a corresponding
        <code>Entity</code> is available, no matter whether this is a deep
        clone or not. Cloning any other type of node simply returns a copy of
        this node.</p>
      <p>Note that cloning an immutable subtree results in a mutable copy, but
        the children of an <code>EntityReference</code> clone are
        <termref def="dt-readonly-node">readonly</termref>. In addition, clones
        of unspecified <code>Attr</code> nodes are specified. And, cloning
        <code>Document</code>, <code>DocumentType</code>, <code>Entity</code>,
        and <code>Notation</code> nodes is implementation dependent.</p>
    </descr> 
    <parameters> 
      <param name="deep" type="boolean" attr="in">	
        <descr>
          <p>If <code>true</code>, recursively clone the subtree under the
            specified node; if <code>false</code>, clone only the node itself
            (and its attributes, if it is an <code>Element</code>).</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="Node"> 
      <descr>
        <p>The duplicate node.</p>
      </descr> 
    </returns> 
    <raises>      <!-- No exceptions -->
    </raises> 
  </method>

  <!-- ****** DOM Level 2 additions ****** -->
  <method id="ID-normalize" name="normalize" version="DOM Level 2"> 
    <descr>
      <p>Puts all <code>Text</code> nodes in the full depth of the sub-tree
        underneath this <code>Node</code>, including attribute nodes, into a
        "normal" form where only structure (e.g., elements, comments,
        processing instructions, CDATA sections, and entity references)
        separates <code>Text</code> nodes, i.e., there are neither adjacent
        <code>Text</code> nodes nor empty <code>Text</code> nodes. This can be
        used to ensure that the DOM view of a document is the same as if it
        were saved and re-loaded, and is useful when operations (such as
        XPointer <bibref role="informative" ref="XPointer"/> lookups) that
	depend on a particular document tree structure are to be used.</p>
      <note>
        <p>In cases where the document contains <code>CDATASections</code>, the
          normalize operation alone may not be sufficient, since XPointers do
          not differentiate between <code>Text</code> nodes and
          <code>CDATASection</code> nodes.</p>
      </note> 
    </descr> 
    <parameters>      <!-- No parameters -->
    </parameters> 
    <returns type="void"> 
      <descr>
        <p/>
      </descr> 
    </returns> 
    <raises>      <!-- No exceptions -->
    </raises> 
  </method> 

  <method name="isSupported" id="Level-2-Core-Node-supports" since="DOM Level 2"> 
    <descr>
      <p>Tests whether the DOM implementation implements a specific feature and
        that feature is supported by this node.</p> 
    </descr> 
    <parameters> 
      <param name="feature" type="DOMString" attr="in">	
        <descr>
          <p>The name of the feature to test. This is the same name which can
            be passed to the method <code>hasFeature</code> on
            <code>DOMImplementation</code>.</p>
        </descr> 
      </param> 
      <param name="version" type="DOMString" attr="in">	
        <descr>
          <p>This is the version number of the feature to test. In Level 2,
            version 1, this is the string "2.0". If the version is not
            specified, supporting any version of the feature will cause the
            method to return <code>true</code>.</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="boolean"> 
      <descr>
        <p>Returns <code>true</code> if the specified feature is supported on
          this node, <code>false</code> otherwise.</p>
      </descr> 
    </returns> 
    <raises>      <!-- No exceptions -->
    </raises> 
  </method> 

  <attribute readonly="yes" type="DOMString" name="namespaceURI" id="ID-NodeNSname" since="DOM Level 2"> 
    <descr>
      <p>The <termref def="dt-namespaceURI">namespace URI</termref> of this
        node, or <code>null</code> if it is unspecified.</p> 

      <p role="Infoset">
	<termdef id="infoset-namespace-name" term="[namespace name]">When the
	node is <code>Element</code>, or <code>Attr</code>, this attribute
	represents the properties [namespace name] defined in <bibref ref="InfoSet"/></termdef>.
      </p>

      <p>This is not a computed value that is the result of a namespace lookup
        based on an examination of the namespace declarations in scope. It is
        merely the namespace URI given at creation time.</p> 

      <p>For nodes of any type other than <code>ELEMENT_NODE</code> and
        <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
        method, such as <code>createElement</code> from the
        <code>Document</code> interface, this is always <code>null</code>.</p>
      <note>
        <p>Per the <emph>Namespaces in XML</emph> Specification
          <bibref ref="Namespaces"/> an attribute does not inherit its
            namespace from the element it is attached to. If an attribute is
            not explicitly given a namespace, it simply has no namespace.</p> 
      </note> 
    </descr> 
  </attribute> 

  <attribute type="DOMString" name="prefix" id="ID-NodeNSPrefix" since="DOM Level 2" readonly="no"> 
    <descr>
      <p>The <termref def="dt-namespaceprefix">namespace prefix</termref> of
        this node, or <code>null</code> if it is unspecified.</p>
      
      <p role="Infoset">
	<termdef id="infoset-prefix" term="[prefix]">When the node is
	<code>Element</code>, or <code>Attr</code>, this attribute represents
	the properties [prefix] defined in <bibref ref="InfoSet"/></termdef>.
      </p>

      <p>Note that setting this attribute, when permitted, changes the
        <code>nodeName</code> attribute, which holds the
        <termref def="dt-qualifiedname">qualified name</termref>, as well as
        the <code>tagName</code> and <code>name</code> attributes of the
        <code>Element</code> and <code>Attr</code> interfaces, when
        applicable.</p>
      <p>Note also that changing the prefix of an attribute that is known to
        have a default value, does not make a new attribute with the default
        value and the original prefix appear, since the
        <code>namespaceURI</code> and <code>localName</code> do not change.</p>
      <p>For nodes of any type other than <code>ELEMENT_NODE</code> and
        <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
        method, such as <code>createElement</code> from the
        <code>Document</code> interface, this is always <code>null</code>.</p>
    </descr> 
    <setraises> 
      <exception name="DOMException">	
        <descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified
            prefix contains an illegal character.</p> 
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is
            readonly.</p>
          <p>NAMESPACE_ERR: Raised if the specified
            <code>prefix</code> is malformed per the Namespaces in XML
            specification, if the <code>namespaceURI</code> of this node is
            <code>null</code>, if the specified prefix is "xml" and the
            <code>namespaceURI</code> of this node is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/XML/1998/namespace" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/XML/1998/namespace</loc>", if this node is an attribute
            and the specified prefix is "xmlns" and the
            <code>namespaceURI</code> of this node is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>", or if this node is an
            attribute and the <code>qualifiedName</code> of this node is
            "xmlns" <bibref ref="Namespaces"/>.</p>
        </descr> 
      </exception> 
    </setraises> 
  </attribute> 

  <attribute readonly="yes" type="DOMString" name="localName" id="ID-NodeNSLocalN" since="DOM Level 2"> 
    <descr>
      <p>Returns the local part of the
        <termref def="dt-qualifiedname">qualified name</termref> of this
        node.</p>

      <p role="Infoset">
	<termdef id="infoset-local-name" term="[local name]">When the node is
	<code>Element</code>, or <code>Attr</code>, this attribute represents
	the properties [local name] defined in <bibref ref="InfoSet"/></termdef>.
      </p>

      <p>For nodes of any type other than <code>ELEMENT_NODE</code> and
        <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
        method, such as <code>createElement</code> from the
        <code>Document</code> interface, this is always <code>null</code>.</p>
    </descr> 
  </attribute> 

  <method name="hasAttributes" id="ID-NodeHasAttrs" since="DOM Level 2"> 
    <descr>
      <p>Returns whether this node (if it is an element) has any
        attributes.</p> 
    </descr> 
    <parameters>      <!-- No parameters -->
    </parameters> 
    <returns type="boolean"> 
      <descr>
        <p><code>true</code> if this node has any attributes,
          <code>false</code> otherwise.</p>
      </descr> 
    </returns> 
    <raises>      <!-- No exceptions -->
    </raises> 
  </method>

  <!-- ****** DOM Level 3 additions ****** -->
  <attribute readonly="yes" type="DOMString" name="baseURI" id="Node3-baseURI" since="DOM Level 3">
    <descr>
      <p>The absolute base URI of this node or <code>null</code> if
        undefined. This value is computed according to <bibref ref="XMLBase"/>.
        However, when the <code>Document</code> supports the feature "HTML"
        <bibref role="informative" ref="DOM2HTML"/>, the base URI is computed using first the
        value of the href attribute of the HTML BASE element if any, and the
        value of the <code>documentURI</code> attribute from the
        <code>Document</code> interface otherwise.</p>

      <p role="Infoset">
	<termdef id="infoset-base-URI" term="[base URI]">When the node is an
	<code>Element</code>, a <code>Document</code> or a a
	<code>ProcessingInstruction</code>, this attribute represents the
	properties [base URI] defined in <bibref ref="InfoSet"/></termdef>. <termdef id="infoset-declaration-base-URI" term="[declaration base URI]">When the node is a <code>Notation</code>,
	an <code>Entity</code>, or an <code>EntityReference</code>, this
	attribute represents the properties [declaration base URI] in
	the <bibref ref="InfoSet"/></termdef>.
      </p>

      <issue id="baseURI-1" status="closed">
        <p>How will this be affected by resolution of relative namespace
          URIs issue?</p>
        <resolution>
          <p>It's not.</p>
        </resolution>
      </issue>
      <issue id="baseURI-2" status="closed">
        <p>Should this only be on Document, Element, ProcessingInstruction,
          Entity, and Notation nodes, according to the infoset? If not, what is
          it equal to on other nodes? Null? An empty string? I think it should
          be the parent's.</p>
        <resolution>
          <p>No.</p>
        </resolution>
      </issue>
      <issue id="baseURI-3" status="closed">
        <p>Should this be read-only and computed or and actual read-write
          attribute?</p>
        <resolution>
          <p>Read-only and computed (F2F 19 Jun 2000 and teleconference 30 May
          2001).</p>
        </resolution>
      </issue>
      <issue id="baseURI-4" status="open">
        <p>If the base HTML element is not yet attached to a document, does the
          insert change the Document.baseURI?</p>
        <resolution>
          <p>Yes. (F2F 26 Sep 2001)</p>
        </resolution>
      </issue>
    </descr>
  </attribute>

<!-- killed in favor of extended TreeOrder - f2f 31 Jul 2001 
  <typedef id="DocumentOrder" name="DocumentOrder" since="DOM Level 3">
    <descr><p>A type to hold the document order of a node relative to another
        node.</p>
    </descr>
    <enum id="_DocumentOrder" name="_DocumentOrder">
      <descr><p>An enumeration of the different orders the node can be
          in.</p></descr>
      <enumerator name="DOCUMENT_ORDER_PRECEDING">
        <descr><p>The node precedes the reference node in document
            order.</p></descr>
      </enumerator>
      <enumerator name="DOCUMENT_ORDER_FOLLOWING">
        <descr><p>The node follows the reference node in document
            order.</p></descr>
      </enumerator>
      <enumerator name="DOCUMENT_ORDER_SAME">
        <descr><p>The two nodes have the same document order.</p></descr>
      </enumerator>
      <enumerator name="DOCUMENT_ORDER_UNORDERED">
        <descr><p>The two nodes are unordered, they do not have any common
            ancestor.</p></descr>
      </enumerator>
    </enum>
  </typedef> 

  <method name="compareDocumentOrder" id="Node3-compareDocumentOrder"
          since="DOM Level 3">
    <descr>
      <p>Compares a node with this node with regard to document order.</p>
      <issue id="compareOrder-1" status='closed'>
        <p>Should an exception be raised when comparing attributes? Entities
          and notations? An element against an attribute? If yes, which one?
          HIERARCHY_REQUEST_ERR? Should the enum value "unordered" be killed
          then?</p>
        <resolution>
          <p>No, return unordered for attributes (F2F 19 Jun 2000).</p>
        </resolution>
      </issue>
      <issue id="compareOrder-2" status='closed'>
        <p>Should this method be moved to Node and take only one node in
          argument?</p>
        <resolution>
          <p>Yes (F2F 19 Jun 2000).</p>
        </resolution>
      </issue>
      <issue id="compareOrder-3" status='closed'>
        <p>Should this method be optional?</p>
        <resolution>
          <p>No.</p>
        </resolution>
      </issue>
    </descr>
    <parameters>
      <param attr="in" type="Node" name="other">
        <descr>
          <p>The node to compare against this node.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DocumentOrder">
      <descr>
        <p>Returns how the given node compares with this node in document
          order.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>WRONG_DOCUMENT_ERR: Raised if the given node does not belong to
            the same document as this node.</p>
        </descr>
      </exception>
    </raises>
  </method>
-->

  <group id="DocumentPosition" name="DocumentPosition" since="DOM Level 3">
    <descr>
      <p>A bitmask indicating the relative document position of a node with
        respect to another node.</p>
      <issue id="TreePosition-1" status="open">
        <p>Should we use fewer bits?</p>
        <resolution>
          <p>No. Simpler that way.</p>
        </resolution>
      </issue>
      <issue id="TreePosition-2" status="open">
        <p>How does a node compare to itself?</p>
        <resolution>
          <p>SAME_NODE and EQUIVALENT. (F2F 26 Sep 2001)</p>
        </resolution>
      </issue>
      <issue id="TreePosition-3" status="open">
        <p>Used for Attr nodes that are not part of the tree.</p>
        <resolution>
          <p>Change "Tree" to "Document". (F2F 30 Apr 2002)</p>
        </resolution>
      </issue>
    </descr>
    <constant id="Node-DOCUMENT_POSITION_PRECEDING" name="DOCUMENT_POSITION_PRECEDING" type="unsigned short" value="0x01">
      <descr><p>The node precedes the reference node.</p></descr>
    </constant>
    <constant id="Node-DOCUMENT_POSITION_FOLLOWING" name="DOCUMENT_POSITION_FOLLOWING" type="unsigned short" value="0x02">
      <descr><p>The node follows the reference node.</p></descr>
    </constant>
    <constant id="Node-DOCUMENT_POSITION_ANCESTOR" name="DOCUMENT_POSITION_ANCESTOR" type="unsigned short" value="0x04">
      <descr><p>The node is an ancestor of the reference node.</p></descr>
    </constant>
    <constant id="Node-DOCUMENT_POSITION_DESCENDANT" name="DOCUMENT_POSITION_DESCENDANT" type="unsigned short" value="0x08">
      <descr><p>The node is a descendant of the reference node.</p></descr>
    </constant>
    <constant id="Node-DOCUMENT_POSITION_EQUIVALENT" name="DOCUMENT_POSITION_EQUIVALENT" type="unsigned short" value="0x10">
      <descr><p>The two nodes have an equivalent position. This is the case of
          two attributes that have the same <code>ownerElement</code>, and two
          nodes that are the same.</p>
      </descr>
    </constant>
    <constant id="Node-DOCUMENT_POSITION_SAME_NODE" name="DOCUMENT_POSITION_SAME_NODE" type="unsigned short" value="0x20">
      <descr><p>The two nodes are the same. Two nodes that are the same have an
          equivalent position, though the reverse may not be true.</p>
      </descr>
    </constant>
    <constant id="Node-DOCUMENT_POSITION_DISCONNECTED" name="DOCUMENT_POSITION_DISCONNECTED" type="unsigned short" value="0x00">
      <descr><p>The two nodes are disconnected, they do not have any common
          ancestor. This is the case of two nodes that are not in the same
          document.</p>
      </descr>
    </constant>
  </group> 

  <method name="compareDocumentPosition" id="Node3-compareDocumentPosition" since="DOM Level 3">
    <descr>
      <p>Compares a node with this node with regard to their position in the
        document and according to the <termref def="dt-document-order">document
          order</termref>. Even though attribute nodes are not part of the
          document tree, in this method an attribute node is considered to be
          the descendant of its owner element. Also, when present, entity
          reference nodes are considered to precede and be the ancestors of
          their children.</p>
      <issue id="compareTreePosition-1" status="closed">
        <p>Should this method be optional?</p>
        <resolution>
          <p>No.</p>
        </resolution>
      </issue>
      <issue id="compareTreePosition-2" status="open">
        <p>Need reference for namespace nodes.</p>
        <resolution>
          <p>No, instead avoid referencing them directly.</p>
        </resolution>
      </issue>
      <issue id="compareTreePosition-3" status="open">
        <p>Used for Attr nodes that are not part of the tree.</p>
        <resolution>
          <p>Change "Tree" to "Document". (F2F 30 Apr 2002)</p>
        </resolution>
      </issue>
    </descr>
    <parameters>
      <param attr="in" type="Node" name="other">
        <descr>
          <p>The node to compare against this node.</p>
        </descr>
      </param>
    </parameters>
    <returns type="unsigned short">
      <descr>
        <p>Returns how the given node is positioned relatively to this
          node.</p>
      </descr>
    </returns>
    <raises>
       <!-- No exceptions -->
    </raises>
  </method>

  <attribute name="textContent" id="Node3-textContent" type="DOMString" readonly="no" since="DOM Level 3">
    <descr>

      <p>This attribute returns the text content of this node and its
      descendants. When it is defined to be null, setting it has no
      effect. When set, any possible children this node may have are removed
      and replaced by a single <code>Text</code> node containing the string
      this attribute is set to. On getting, no serialization is performed, the
      returned string does not contain any markup. No whitespace normalization
      is performed, the returned string does not contain the element content
      whitespaces <specref ref="Text3-isWhitespaceInElementContent"/>. Similarly, on setting, no
      parsing is performed either, the input string is taken as pure textual
      content.</p>
      <p>The string returned is made of the text content of this node depending
	on its type, as defined below:

        <table summary="The string returned is made of the text content of the                node. The first cell of this table contains the type of the                Node, the second cell indicates the string returned by the text                content." border="1">

          <tbody>
            <tr>
              <th rowspan="1" colspan="1">Node type</th><th rowspan="1" colspan="1">Content</th>
            </tr>
            <tr>
              <td rowspan="1" colspan="1">ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE,
                DOCUMENT_FRAGMENT_NODE</td>
              <td rowspan="1" colspan="1">concatenation of the <code>textContent</code> attribute value
                of every child node, excluding COMMENT_NODE and
                PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if
                the node has no children.</td>
            </tr>
            <tr>
              <td rowspan="1" colspan="1">ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE,
                COMMENT_NODE, PROCESSING_INSTRUCTION_NODE</td>
              <td rowspan="1" colspan="1"><code>nodeValue</code></td>
            </tr>
            <tr>
              <td rowspan="1" colspan="1">DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE</td>
              <td rowspan="1" colspan="1"><emph>null</emph></td>
            </tr>
          </tbody>
        </table>
      </p>

      <issue id="textContent-1" status="closed">
        <p>Should any whitespace normalization be performed? MS' text property
          doesn't but what about "ignorable whitespace"?</p>
	<resolution>
	  <p>Does not perform any whitespace normalization and ignores
	  "ignorable whitespace".</p>
	</resolution>
      </issue>
      <issue id="textContent-2" status="closed">
        <p>Should this be two methods instead?</p>
	<resolution>
	  <p>No. Keep it a read write attribute.</p>
	</resolution>
      </issue>
      <issue id="textContent-3" status="closed">
        <p>What about the name? MS uses text and innerText. text conflicts with
          HTML DOM.</p>
	<resolution>
	  <p>Keep the current name, MS has a different name and different
	  semantic.</p>
	</resolution>
      </issue>
      <issue id="textContent-4" status="closed">
        <p>Should this be optional?</p>
	<resolution>
	  <p>No.</p>
	</resolution>
      </issue>
      <issue id="textContent-5" status="closed">
        <p>Setting the text property on a Document, Document Type, or Notation
          node is an error for MS. How do we expose it? Exception? Which
          one?</p>
	<resolution>
	  <p>(teleconference 23 May 2001) consistency with nodeValue. Remove
	  Document from the list.</p>
	</resolution>
      </issue>
    </descr>
    <setraises> 
      <exception name="DOMException">	
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.</p>
        </descr> 
      </exception> 
    </setraises> 
    <getraises> 
      <exception name="DOMException">	
        <descr>
          <p>DOMSTRING_SIZE_ERR: Raised when it would return more characters
            than fit in a <code>DOMString</code> variable on the implementation
            platform.</p>
        </descr> 
      </exception> 
    </getraises> 
  </attribute>

  <method name="isSameNode" id="Node3-isSameNode" since="DOM Level 3">
    <descr>
      <p>Returns whether this node is the same node as the given one.</p>
      <p>This method provides a way to determine whether two <code>Node</code>
        references returned by the implementation reference the same
        object. When two <code>Node</code> references are references to the
        same object, even if through a proxy, the references may be used
        completely interchangeably, such that all attributes have the same
        values and calling the same DOM method on either reference always has
        exactly the same effect.</p>
      <issue id="isSameNode-1" status="closed">
        <p>Do we really want to make this different from equals?</p>
        <resolution>
          <p>Yes, change name from isIdentical to isSameNode. (Telcon 4 Jul
            2000).</p>
        </resolution>
      </issue>
      <issue id="isSameNode-2" status="closed">
        <p>Is this really needed if we provide a unique key?</p>
        <resolution>
          <p>Yes, because the key is only unique within a document. (F2F 2 Mar
            2001).</p>
        </resolution>
      </issue>
      <issue id="isSameNode-3" status="closed">
        <p>Definition of 'sameness' is needed.</p>
      </issue>
    </descr>
    <parameters>
      <param attr="in" type="Node" name="other">
        <descr>
          <p>The node to test against.</p>
        </descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
        <p>Returns <code>true</code> if the nodes are the same,
          <code>false</code> otherwise.</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>

  <method name="lookupPrefix" id="Node3-lookupNamespacePrefix" since="DOM Level 3">
    <descr>
      <p>Look up the prefix associated to the given namespace URI, starting
        from this node. The default namespace declarations are ignored by this method.</p>
      <p>See <specref ref="lookupNamespacePrefixAlgo"/> for details on the
          algorithm used by this method.</p>
      <issue id="lookupNamespacePrefix-1" status="closed">
        <p>Should this be optional?</p>
	<resolution>
	  <p>No.</p>
	</resolution>
      </issue>
      <issue id="lookupNamespacePrefix-2" status="open">
        <p>How does the lookup work? Is it based on the prefix of the nodes,
          the namespace declaration attributes, or a combination of both?</p>
	<resolution>
	  <p>See <specref ref="lookupNamespacePrefixAlgo"/>.</p>
	</resolution>
      </issue>
    </descr>
    <parameters>
      <param attr="in" type="DOMString" name="namespaceURI">
        <descr>
          <p>The namespace URI to look for.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMString">
      <descr>
        <p>Returns an associated namespace prefix if found or <code>null</code>
        if none is found. If more than one prefix are associated to the namespace 
        prefix, the returned namespace prefix is implementation dependent.</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>

  <method name="isDefaultNamespace" id="Node3-isDefaultNamespace" since="DOM Level 3">
    <descr>
      <p>
	This method checks if the specified <code>namespaceURI</code> is the
	default namespace or not.
      </p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The namespace URI to look for.</p>
	</descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
	<p>
	  <code>true</code> if the specified <code>namespaceURI</code> is the
	  default namespace, <code>false</code> otherwise.
	</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>

  <method name="lookupNamespaceURI" id="Node3-lookupNamespaceURI" since="DOM Level 3">
    <descr>
      <p>Look up the namespace URI associated to the given prefix, starting
        from this node.</p>
      <p>See <specref ref="lookupNamespaceURIAlgo"/> for details on the
          algorithm used by this method.</p>
      <issue id="lookupNamespaceURI-1" status="closed">
        <p>Name? May need to change depending on ending of the relative
          namespace URI reference nightmare.</p>
        <resolution>
          <p>No need.</p>
        </resolution>
      </issue>
      <issue id="lookupNamespaceURI-2" status="closed">
        <p>Should this be optional?</p>
	<resolution>
	  <p>No.</p>
	</resolution>
      </issue>
      <issue id="lookupNamespaceURI-3" status="open">
        <p>How does the lookup work? Is it based on the namespaceURI of the
          nodes, the namespace declaration attributes, or a combination of
          both?</p>
	<resolution>
	  <p>See <specref ref="lookupNamespaceURIAlgo"/>.</p>
	</resolution>
      </issue>
    </descr>
    <parameters>
      <param attr="in" type="DOMString" name="prefix">
        <descr>
          <p>The prefix to look for. If this parameter is <code>null</code>,
	    the method will return the default namespace URI if any.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMString">
      <descr>
        <p>Returns the associated namespace URI or <code>null</code> if none is
          found.</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>

<!-- killed in favor of set/getUserData
  <attribute name='key' id='Node3-key' readonly='yes' type='DOMKey'
              since="DOM Level 3">
    <descr><p>This attribute returns a key identifying this node. This key is
        unique within the document this node was created from and is valid for
        the lifetime of that document.</p>
      <issue id='key-1' status='closed'><p>What type should this really be?</p>
        <resolution>
          <p>DOMKey, mapped to Object in Java and Number in ECMAScript (Telcon
            13 Dec 2000).</p>
        </resolution>
      </issue>
      <issue id='key-2' status='closed'><p>In what space is this key unique
          (Document, DOMImplementation)?</p>
        <resolution>
          <p>Document (F2F 27 Sep 2000).</p>
        </resolution>
      </issue>
      <issue id='key-3' status='closed'><p>What is the lifetime of the
          uniqueness of this key (Node, Document, ...)?</p>
        <resolution>
          <p>Document (F2F 2 Mar 2001).</p>
        </resolution>
      </issue>
    </descr>
  </attribute>
 -->

  <method name="isEqualNode" id="Node3-isEqualNode" since="DOM Level 3">
    <descr>
      <p>Tests whether two nodes are equal.</p>
      <p>This method tests for equality of nodes, not sameness (i.e., whether
        the two nodes are references to the same object) which can be tested
        with <code>Node.isSameNode</code>. All nodes that are the same will
        also be equal, though the reverse may not be true.</p>
      <p>Two nodes are equal if and only if the following conditions are
        satisfied:
        <ulist>
          <item><p>The two nodes are of the same type.</p></item>
          <item><p>The following string attributes are equal:
              <code>nodeName</code>, <code>localName</code>,
              <code>namespaceURI</code>, <code>prefix</code>,
              <code>nodeValue</code>, <code>baseURI</code>. This is: they are
              both <code>null</code>, or they have the same length and are
              character for character identical.</p></item>
          <item><p>The <code>attributes</code> <code>NamedNodeMaps</code> are
              equal. This is: they are both <code>null</code>, or they have the
              same length and for each node that exists in one map there is a
              node that exists in the other map and is equal, although not
              necessarily at the same index.</p></item>
          <item><p>The <code>childNodes</code> <code>NodeLists</code> are
              equal. This is: they are both <code>null</code>, or they
              have the same length and contain equal nodes at the same index.
              Note that normalization can affect equality; to avoid this, nodes
              should be normalized before being compared.</p></item>
        </ulist>
      </p>
      <p>For two <code>DocumentType</code> nodes to be equal, the following
        conditions must also be satisfied:
        <ulist>
          <item><p>The following string attributes are equal:
              <code>publicId</code>, <code>systemId</code>,
              <code>internalSubset</code>.</p></item>
          <item><p>The <code>entities</code> <code>NamedNodeMaps</code> are
            equal.</p></item>
          <item><p>The <code>notations</code> <code>NamedNodeMaps</code> are
            equal.</p></item>
        </ulist>
      </p>
      <p>On the other hand, the following do not affect equality:
        the <code>ownerDocument</code> attribute, the <code>specified</code>
        attribute for <code>Attr</code> nodes, the
        <code>isWhitespaceInElementContent</code> attribute for
        <code>Text</code> nodes, as well as any user data or event listeners
        registered on the nodes.</p>
      <issue id="isEqualNode-1" status="closed">
        <p>Should this be optional?</p>
        <resolution>
          <p>No.</p>
        </resolution>
      </issue>
      <issue id="isEqualNode-2" status="closed">
        <p>Should the deep parameter be dropped?</p>
        <resolution>
          <p>Yes (Telcon Apr 3, 2002).</p>
        </resolution>
      </issue>
    </descr>
    <parameters>
      <param name="arg" type="Node" attr="in">
        <descr>
          <p>The node to compare equality with.</p>
        </descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
        <p>If the nodes, and possibly subtrees are equal, <code>true</code>
          otherwise <code>false</code>.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="getInterface" id="Node3-getInterface" since="DOM Level 3">
    <descr>
      <p>This method makes available a <code>Node</code>'s specialized
        interface (see <specref ref="Embedded-DOM"/>).</p>
      <issue id="EDOM-isSupported" status="closed">
        <p>What are the relations between Node.isSupported and
          Node3.getInterface?</p>
      </issue>
      <issue id="EDOM-getInterface-1" status="closed">
        <p>Should we rename this method (and also
          DOMImplementation.getInterface?)?</p>
      </issue>
      <issue id="EDOM-getInterface-2" status="closed">
	<p>getInterface can return a node that doesn't actually support the
          requested interface and will lead to a cast exception. Other
          solutions are returning null or throwing an exception.</p>
      </issue>
    </descr>
    <parameters>
      <param name="feature" type="DOMString" attr="in">
        <descr>
          <p>The name of the feature requested (case-insensitive).</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>Returns an alternate <code>Node</code> which implements the
          specialized APIs of the specified feature, if any, or
          <code>null</code> if there is no alternate <code>Node</code> which
          implements interfaces associated with that feature. Any alternate
          <code>Node</code> returned by this method must delegate to the
          primary core <code>Node</code> and not return results inconsistent
          with the primary core <code>Node</code> such as <code>key</code>,
          <code>attributes</code>, <code>childNodes</code>, etc.</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>

  <method name="setUserData" id="Node3-setUserData" since="DOM Level 3">
    <descr>
      <p>Associate an object to a key on this node. The object can later be
        retrieved from this node by calling <code>getUserData</code> with the
        same key.</p>
    </descr>
    <parameters>
      <param name="key" type="DOMString" attr="in">
        <descr>
          <p>The key to associate the object to.</p>
        </descr>
      </param>
      <param name="data" type="DOMUserData" attr="in">
        <descr>
          <p>The object to associate to the given key, or <code>null</code> to
            remove any existing association to that key.</p>
        </descr>
      </param>
      <param name="handler" type="UserDataHandler" attr="in">
        <descr>
          <p>The handler to associate to that key, or <code>null</code>.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMUserData">
      <descr>
        <p>Returns the <code>DOMUserData</code> previously associated to
	  the given key on this node, or <code>null</code> if there was none.</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>

  <method name="getUserData" id="Node3-getUserData" since="DOM Level 3">
    <descr>
      <p>Retrieves the object associated to a key on a this node. The object
        must first have been set to this node by calling
        <code>setUserData</code> with the same key.</p>
    </descr>
    <parameters>
      <param name="key" type="DOMString" attr="in">
        <descr>
          <p>The key the object is associated to.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMUserData">
      <descr>
        <p>Returns the <code>DOMUserData</code> associated to the given
	  key on this node, or <code>null</code> if there was none.</p>
      </descr>
    </returns>
    <raises>
    </raises>
  </method>
</interface>

      
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<!--[ NodeList object description ]-->
<interface name="NodeList" id="ID-536297177">
  <descr>
    <p>The <code>NodeList</code> interface provides the abstraction of an
      ordered collection of nodes, without defining or constraining how this
      collection is implemented. <code>NodeList</code> objects in the DOM are
      <termref def="td-live">live</termref>.</p>
    <p>The items in the <code>NodeList</code> are accessible via an
      integral index, starting from 0.</p>
  </descr>

  <method name="item" id="ID-844377136">
    <descr>
      <p>Returns the <code>index</code>th item in the collection. If
        <code>index</code> is greater than or equal to the number of nodes in
        the list, this returns <code>null</code>.</p>
    </descr>
    <parameters>
      <param name="index" type="unsigned long" attr="in">
	<descr>
          <p>Index into the collection.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>The node at the <code>index</code>th position in the
          <code>NodeList</code>, or <code>null</code> if that is not a valid
          index.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <attribute type="unsigned long" readonly="yes" name="length" id="ID-203510337">
    <descr>
      <p>The number of nodes in the list. The range of valid child node indices
        is 0 to <code>length-1</code> inclusive.</p>
    </descr>
  </attribute>
</interface>
      
 
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<!--[ NamedNodeMap object description ]-->
<interface name="NamedNodeMap" id="ID-1780488922">
  <descr>
    <p>Objects implementing the <code>NamedNodeMap</code> interface are used to
      represent collections of nodes that can be accessed by name. Note that
      <code>NamedNodeMap</code> does not inherit from <code>NodeList</code>;
      <code>NamedNodeMaps</code> are not maintained in any particular
      order. Objects contained in an object implementing
      <code>NamedNodeMap</code> may also be accessed by an ordinal index, but
      this is simply to allow convenient enumeration of the contents of a
      <code>NamedNodeMap</code>, and does not imply that the DOM specifies an
      order to these Nodes. </p>
    <p><code>NamedNodeMap</code> objects in the DOM are
      <termref def="td-live">live</termref>.</p>
  </descr>

  <method name="getNamedItem" id="ID-1074577549">
    <descr>
      <p>Retrieves a node specified by name.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The <code>nodeName</code> of a node to retrieve.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>A <code>Node</code> (of any type) with the specified
          <code>nodeName</code>, or <code>null</code> if it does not identify
          any node in this map.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="setNamedItem" id="ID-1025163788">
    <descr>
      <p>Adds a node using its <code>nodeName</code> attribute. If a node with
	that name is already present in this map, it is replaced by the new
	one. Replacing a node by itself has no effect.</p>
      <p>As the <code>nodeName</code> attribute is used to derive the name
        which the node must be stored under, multiple nodes of certain types
        (those that have a "special" string value) cannot be stored as the
        names would clash. This is seen as preferable to allowing nodes to be
        aliased.</p>
    </descr>
    <parameters>
      <param name="arg" type="Node" attr="in">
	<descr>
          <p>A node to store in this map. The node will later be accessible
            using the value of its <code>nodeName</code> attribute.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>If the new <code>Node</code> replaces an existing node the replaced
          <code>Node</code> is returned, otherwise <code>null</code> is
          returned.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
            different document than the one that created this map.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.</p>
          <p>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
            <code>Attr</code> that is already an attribute of another
            <code>Element</code> object. The DOM user must explicitly clone
            <code>Attr</code> nodes to re-use them in other elements.</p>
          <p>HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node
            doesn't belong in this NamedNodeMap. Examples would include trying
            to insert something other than an Attr node into an Element's map
            of attributes, or a non-Entity node into the DocumentType's map of
            Entities.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="removeNamedItem" id="ID-D58B193">
    <descr>
      <p>Removes a node specified by name. When this map contains the
        attributes attached to an element, if the removed attribute is known to
        have a default value, an attribute immediately appears containing the
        default value as well as the corresponding namespace URI, local name,
        and prefix when applicable.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The <code>nodeName</code> of the node to remove.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
       <descr>
        <p>The node removed from this map if a node with such a name
          exists.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_FOUND_ERR: Raised if there is no node named <code>name</code>
            in this map.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="item" id="ID-349467F9">
    <descr>
      <p>Returns the <code>index</code>th item in the map. If
        <code>index</code> is greater than or equal to the number of nodes in
        this map, this returns <code>null</code>.</p>
    </descr> 
    <parameters>
      <param name="index" type="unsigned long" attr="in">
	<descr><p>Index into this map.</p></descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>The node at the <code>index</code>th position in the map, or
          <code>null</code> if that is not a valid index.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <attribute type="unsigned long" readonly="yes" name="length" id="ID-6D0FB19E">
    <descr>
      <p>The number of nodes in this map. The range of valid child node indices
        is <code>0</code> to <code>length-1</code> inclusive.</p>
    </descr>
  </attribute>

  <method name="getNamedItemNS" id="ID-getNamedItemNS" since="DOM Level 2">
    <descr>
      <p>Retrieves a node specified by local name and namespace URI.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            node to retrieve.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the node
            to retrieve.</p></descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>A <code>Node</code> (of any type) with the specified local name and
          namespace URI, or <code>null</code> if they do not identify any node
          in this map.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="setNamedItemNS" id="ID-setNamedItemNS" since="DOM Level 2">
    <descr>
      <p>Adds a node using its <code>namespaceURI</code> and
        <code>localName</code>. If a node with that namespace URI and that
        local name is already present in this map, it is replaced by the new
        one. Replacing a node by itself has no effect.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="arg" type="Node" attr="in">
	<descr>
          <p>A node to store in this map. The node will later be accessible
            using the value of its <code>namespaceURI</code> and
            <code>localName</code> attributes.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
      <descr>
        <p>If the new <code>Node</code> replaces an existing node the replaced
          <code>Node</code> is returned, otherwise <code>null</code> is
          returned.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a
            different document than the one that created this map.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.</p>
          <p>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an
            <code>Attr</code> that is already an attribute of another
            <code>Element</code> object. The DOM user must explicitly clone
            <code>Attr</code> nodes to re-use them in other elements.</p>
          <p>HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node
            doesn't belong in this NamedNodeMap. Examples would include trying
            to insert something other than an Attr node into an Element's map
            of attributes, or a non-Entity node into the DocumentType's map of
            Entities.</p>
          <p>NOT_SUPPORTED_ERR: Always thrown if the current document does not
            support the <code>"XML"</code> feature, since namespaces were
            defined by XML.</p>
        </descr>
      </exception>
    </raises>
  </method>
  <method name="removeNamedItemNS" id="ID-removeNamedItemNS" since="DOM Level 2">
    <descr>
      <p>Removes a node specified by local name and namespace URI. A removed
        attribute may be known to have a default value when this map contains
        the attributes attached to an element, as returned by the attributes
        attribute of the <code>Node</code> interface. If so, an attribute
        immediately appears containing the default value as well as the
        corresponding namespace URI, local name, and prefix when
        applicable.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            node to remove.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the node
            to remove.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Node">
       <descr>
        <p>The node removed from this map if a node with such a local name and
          namespace URI exists.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NOT_FOUND_ERR: Raised if there is no node with the specified
	    <code>namespaceURI</code> and <code>localName</code> in this
            map.</p>
	  <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>
</interface>
      
 
<!--[ Data interface description ]-->
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="CharacterData" inherits="Node" id="ID-FF21A306">
  <descr>
    <p>The <code>CharacterData</code> interface extends Node with a set of
      attributes and methods for accessing character data in the DOM. For
      clarity this set is defined here rather than on each object that uses
      these attributes and methods. No DOM objects correspond directly to
      <code>CharacterData</code>, though <code>Text</code> and others do
      inherit the interface from it. All <code>offsets</code> in this
      interface start from <code>0</code>.</p>
    <p>As explained in the <code>DOMString</code> interface, text strings
      in the DOM are represented in UTF-16, i.e. as a sequence of 16-bit
      units. In the following, the term <termref def="dt-16-bit-unit">16-bit
        units</termref> is used whenever necessary to indicate that indexing on
      CharacterData is done in 16-bit units.</p>
  </descr> 

  <attribute type="DOMString" name="data" id="ID-72AB8359" readonly="no">
    <descr>
      <p>The character data of the node that implements this interface. The DOM
        implementation may not put arbitrary limits on the amount of data that
        may be stored in a <code>CharacterData</code> node. However,
        implementation limits may mean that the entirety of a node's data may
        not fit into a single <code>DOMString</code>. In such cases, the user
        may call <code>substringData</code> to retrieve the data in
        appropriately sized pieces.</p>
      <p role="Infoset">
	<termdef id="infoset-character-code" term="[character code]">When the
	<code>CharacterData</code> is a <code>Text</code>, or a
	<code>CDATASection</code>, this attribute contains the property
	[character code] defined in <bibref ref="InfoSet"/></termdef>.
	<termdef id="infoset-comment-content" term="[content]">When the
	<code>CharacterData</code> is a <code>Comment</code>, this attribute
	contains the property [content] defined by the Comment Information Item
	in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
    <setraises>
      <exception name="DOMException">
	<descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.</p>
        </descr>
      </exception>
    </setraises>
    <getraises>
      <exception name="DOMException">
	<descr>
          <p>DOMSTRING_SIZE_ERR: Raised when it would return more characters
            than fit in a <code>DOMString</code> variable on the implementation
            platform.</p>
        </descr>
      </exception>
    </getraises>
  </attribute>

  <attribute type="unsigned long" name="length" readonly="yes" id="ID-7D61178C">
    <descr>
      <p>The number of <termref def="dt-16-bit-unit">16-bit units</termref>
        that are available through <code>data</code> and the
        <code>substringData</code> method below.  This may have the value zero,
        i.e., <code>CharacterData</code> nodes may be empty.</p>
    </descr>
  </attribute>

  <method name="substringData" id="ID-6531BCCF">
    <descr>
      <p>Extracts a range of data from the node.</p>
    </descr> 
    <parameters>
      <param name="offset" type="unsigned long" attr="in">
	<descr>
          <p>Start offset of substring to extract.</p>
        </descr>
      </param>
      <param name="count" type="unsigned long" attr="in">
	<descr>
          <p>The number of 16-bit units to extract.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMString">
      <descr>
        <p>The specified substring. If the sum of <code>offset</code> and
	  <code>count</code> exceeds the <code>length</code>, then all 16-bit
	  units to the end of the data are returned.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
            negative or greater than the number of 16-bit units in
            <code>data</code>, or if the specified <code>count</code> is
            negative.</p>
          <p>DOMSTRING_SIZE_ERR: Raised if the specified range of text does not
            fit into a <code>DOMString</code>.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="appendData" id="ID-32791A2F">
    <descr>
      <p>Append the string to the end of the character data of the node. Upon
        success, <code>data</code> provides access to the concatenation of
        <code>data</code> and the <code>DOMString</code> specified.</p>
    </descr> 
    <parameters>
      <param name="arg" type="DOMString" attr="in">
	<descr>
          <p>The <code>DOMString</code> to append.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="insertData" id="ID-3EDB695F">
    <descr>
      <p>Insert a string at the specified <termref def="dt-16-bit-unit">16-bit
          unit</termref> offset.</p>
    </descr> 
    <parameters>
      <param name="offset" type="unsigned long" attr="in">
	<descr>
          <p>The character offset at which to insert.</p>
        </descr>
      </param>
      <param name="arg" type="DOMString" attr="in">
	<descr>
          <p>The <code>DOMString</code> to insert.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
            negative or greater than the number of 16-bit units in
            <code>data</code>.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="deleteData" id="ID-7C603781">
    <descr>
      <p>Remove a range of <termref def="dt-16-bit-unit">16-bit units</termref>
        from the node. Upon success, <code>data</code> and <code>length</code>
        reflect the change.</p>
    </descr> 
    <parameters>
      <param name="offset" type="unsigned long" attr="in">
	<descr>
          <p>The offset from which to start removing.</p>
	</descr>
      </param>
      <param name="count" type="unsigned long" attr="in">
	<descr>
          <p>The number of 16-bit units to delete. If the sum of
            <code>offset</code> and <code>count</code> exceeds
            <code>length</code> then all 16-bit units from <code>offset</code>
            to the end of the data are deleted.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
            negative or greater than the number of 16-bit units in
            <code>data</code>, or if the specified <code>count</code> is
            negative.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="replaceData" id="ID-E5CBA7FB">
    <descr>
      <p>Replace the characters starting at the specified
        <termref def="dt-16-bit-unit">16-bit unit</termref> offset with the
        specified string.</p>
    </descr> 
    <parameters>
      <param name="offset" type="unsigned long" attr="in">
	<descr>
          <p>The offset from which to start replacing.</p>
        </descr>
      </param>
      <param name="count" type="unsigned long" attr="in">
	<descr>
          <p>The number of 16-bit units to replace. If the sum of
            <code>offset</code> and <code>count</code> exceeds
            <code>length</code>, then all 16-bit units to the end of the data
            are replaced; (i.e., the effect is the same as a
            <code>remove</code> method call with the same range, followed by an
            <code>append</code> method invocation).</p>
        </descr>
      </param>
      <param name="arg" type="DOMString" attr="in">
	<descr>
          <p>The <code>DOMString</code> with which the range must be
            replaced.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
            negative or greater than the number of 16-bit units in
            <code>data</code>, or if the specified <code>count</code> is
            negative.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>
</interface>
 
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<!--[ Attr object description ]-->
<interface name="Attr" inherits="Node" id="ID-637646024">
  <descr>
    <p>The <code>Attr</code> interface represents an attribute in an
      <code>Element</code> object. Typically the allowable values for the
      attribute are defined in a document type definition.</p>

    <p><code>Attr</code> objects inherit the <code>Node</code> interface, but
      since they are not actually child nodes of the element they describe, the
      DOM does not consider them part of the document tree.  Thus, the
      <code>Node</code> attributes <code>parentNode</code>,
      <code>previousSibling</code>, and <code>nextSibling</code> have a
      <code>null</code> value for <code>Attr</code> objects. The DOM takes the
      view that attributes are properties of elements rather than having a
      separate identity from the elements they are associated with; this should
      make it more efficient to implement such features as default attributes
      associated with all elements of a given type.  Furthermore,
      <code>Attr</code> nodes may not be immediate children of a
      <code>DocumentFragment</code>. However, they can be associated with
      <code>Element</code> nodes contained within a
      <code>DocumentFragment</code>. In short, users and implementors of the
      DOM need to be aware that <code>Attr</code> nodes have some things in
      common with other objects inheriting the <code>Node</code> interface, but
      they also are quite distinct.</p>

    <p>The attribute's effective value is determined as follows: if this
      attribute has been explicitly assigned any value, that value is the
      attribute's effective value; otherwise, if there is a declaration for
      this attribute, and that declaration includes a default value, then that
      default value is the attribute's effective value; otherwise, the
      attribute does not exist on this element in the structure model until it
      has been explicitly added.  Note that the <code>nodeValue</code>
      attribute on the <code>Attr</code> instance can also be used to retrieve
      the string version of the attribute's value(s).</p>

 
    <p>In XML, where the value of an attribute can contain entity references,
      the child nodes of the <code>Attr</code> node may be either
      <code>Text</code> or <code>EntityReference</code> nodes (when these are
      in use; see the description of <code>EntityReference</code> for
      discussion). Because the DOM Core is not aware of attribute types, it
      treats all attribute values as simple strings, even if the DTD or schema
      declares them as having <termref def="dt-tokenized">tokenized</termref>
      types.</p>

    <p>The DOM implementation does not perform any <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#AVNormalize" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">attribute value
    normalization</xspecref>. While it is expected that the <code>value</code>
    and <code>nodeValue</code> attributes of an <code>Attr</code> node
    initially return the normalized value, this may not be the case after
    mutation. This is true, independently of whether the mutation is performed
    by setting the string value directly or by changing the <code>Attr</code>
    child nodes. In particular, this is true when character entity references
    are involved, given that they are not represented in the DOM and they
    impact attribute value normalization.</p>

    <note>
      <p role="Infoset">
	The properties [attribute type] and [references] defined in <bibref ref="InfoSet"/> are not accessible from DOM Level 3 Core.
      </p>
    </note>
  </descr>

  <attribute type="DOMString" readonly="yes" name="name" id="ID-1112119403">
    <descr>
      <p>Returns the name of this attribute.</p>
    </descr>
  </attribute>

  <attribute type="boolean" readonly="yes" name="specified" id="ID-862529273">
    <descr>
      <p><code>True</code> if this attribute was explicitly given a
        value in the instance document, <code>false</code> otherwise. If
        the user changes the value of this attribute node (even if it
        ends up having the same value as the default value) then this is
        set to <code>true</code>. Removing attributes for which a
        default value is defined in the DTD generates a new attribute
        with the default value and this set to <code>false</code>. The
        implementation may handle attributes with default values from
        other schemas similarly but applications should use
        <code>normalizeDocument()</code> to guarantee this information
        is up-to-date.</p>

      <p role="Infoset">
	<termdef id="infoset-specified" term="[specified]">This attribute
	is based on the property [specified] defined <bibref ref="InfoSet"/></termdef>.
      </p>
      
    </descr>
  </attribute>

  <attribute type="DOMString" name="value" id="ID-221662474" readonly="no">
    <descr>
      <p>On retrieval, the value of the attribute is returned as a
	string. Character and general entity references are replaced with their
	values. See also the method <code>getAttribute</code> on the 
        <code>Element</code> interface.</p>
      <p>On setting, this creates a <code>Text</code> node with the unparsed
	contents of the string. I.e. any characters that an XML processor would
        recognize as markup are instead treated as literal text.
	See also the method <code>setAttribute</code> on the 
        <code>Element</code> interface.</p>

      <p role="Infoset">
	<termdef id="infoset-normalized-value" term="[normalized value]">If
	the <code>value</code> does contain the normalized attribute value,
	this attribute represents the property [normalized value] defined in
	<bibref ref="InfoSet"/></termdef>.  </p>
    </descr>
    <setraises>
      <exception name="DOMException">
	<descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.</p>
        </descr>
      </exception>
    </setraises>
  </attribute>

  <!-- ****** DOM Level 2 additions ****** -->
  <attribute name="ownerElement" type="Element" readonly="yes" id="Attr-ownerElement" since="DOM Level 2">
    <descr>
      <p>The <code>Element</code> node this attribute is attached to or
	<code>null</code> if this attribute is not in use.</p>

      <p role="Infoset">
	<termdef id="infoset-owner-element" term="[owner element]">This
	attribute represents the property [owner element] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <!-- ****** DOM Level 3 additions ****** -->
  <attribute name="isId" type="boolean" readonly="yes" id="Attr-isId" since="DOM Level 3">
    <descr>
      <p>Returns whether this attribute is known to be of type ID or not. When
        it is and its value is unique, the <code>ownerElement</code> of this
        attribute can be retrieved using <code>getElementById</code> on
        <code>Document</code>.</p>
      <issue id="isId-1" status="open">
        <p>This translates to getIsId() in Java. Is that ok?</p>
      </issue>
    </descr>
  </attribute>
</interface>


      
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<!--[ Element object description ]-->
<interface name="Element" inherits="Node" id="ID-745549614">
  <descr>
    <p>The <code>Element</code> interface represents an
      <termref def="dt-element">element</termref> in an HTML or XML
      document. Elements may have attributes associated with them; since the
      <code>Element</code> interface inherits from <code>Node</code>, the
      generic <code>Node</code> interface attribute <code>attributes</code> may
      be used to retrieve the set of all attributes for an element. There are
      methods on the <code>Element</code> interface to retrieve either an
      <code>Attr</code> object by name or an attribute value by name. In XML,
      where an attribute value may contain entity references, an
      <code>Attr</code> object should be retrieved to examine the possibly
      fairly complex sub-tree representing the attribute value. On the other
      hand, in HTML, where all attributes have simple string values, methods to
      directly access an attribute value can safely be used as a
      <termref def="dt-convenience">convenience</termref>.</p>
    <note>
      <p>In DOM Level 2, the method <code>normalize</code> is inherited from
        the <code>Node</code> interface where it was moved.</p>
    </note>
    <note>
      <p role="Infoset">
	<termdef id="infoset-in-scope" term="[in-scope namespaces]">The
	property [in-scope namespaces] defined in <bibref ref="InfoSet"/> are not accessible from DOM Level 3
	Core. However, <bibref role="informative" ref="DOMXPath"/> does
	provide a way to access the property [in-scope namespaces].</termdef>
      </p>
    </note>
  </descr>

  <attribute type="DOMString" name="tagName" readonly="yes" id="ID-104682815">
    <descr>
      <p>The name of the element. For example, in:  
        <eg role="code" xml:space="preserve">
          &lt;elementExample id="demo"&gt; 
          ... 
          &lt;/elementExample&gt; ,
        </eg>
        <code>tagName</code> has the value <code>"elementExample"</code>. Note
        that this is case-preserving in XML, as are all of the operations of
        the DOM. The HTML DOM returns the <code>tagName</code> of an HTML
        element in the canonical uppercase form, regardless of the case in the
        source HTML document.</p>
    </descr>
  </attribute>

  <method name="getAttribute" id="ID-666EE0F9">
    <descr>
      <p>Retrieves an attribute value by name.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the attribute to retrieve.</p>
        </descr>
      </param>
    </parameters>
    <returns type="DOMString">
      <descr>
        <p>The <code>Attr</code> value as a string, or the empty string if that
          attribute does not have a specified or default value.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="setAttribute" id="ID-F68F082">
    <descr>
      <p>Adds a new attribute. If an attribute with that name is already
        present in the element, its value is changed to be that of the value
        parameter. This value is a simple string; it is not parsed as it is
        being set. So any markup (such as syntax to be recognized as an entity
        reference) is treated as literal text, and needs to be appropriately
        escaped by the implementation when it is written out. In order to
        assign an attribute value that contains entity references, the user
        must create an <code>Attr</code> node plus any <code>Text</code> and
        <code>EntityReference</code> nodes, build the appropriate subtree, and
        use <code>setAttributeNode</code> to assign it as the value of an
        attribute.</p>
      <p>To set an attribute with a qualified name and namespace URI, use the
        <code>setAttributeNS</code> method.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the attribute to create or alter.</p>
        </descr>
      </param>
      <param name="value" type="DOMString" attr="in">
	<descr>
          <p>Value to set in string form.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>      
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified name contains an
            illegal character.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="removeAttribute" id="ID-6D6AC0F9">
    <descr>
      <p>Removes an attribute by name. If a default value for the removed
        attribute is defined in the DTD, a new attribute immediately appears
        with the default value as well as the corresponding namespace URI,
        local name, and prefix when applicable. The implementation may handle
        default values from other schemas similarly but applications should use
        normalizeDocument() to guarantee this information is up-to-date.</p>
      <p>If no attribute with this name is found, this method has no
        effect.</p>
      <p>To remove an attribute by local name and namespace URI, use the
        <code>removeAttributeNS</code> method.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the attribute to remove.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="getAttributeNode" id="ID-217A91B8">
    <descr>
      <p>Retrieves an attribute node by name.</p>
      <p>To retrieve an attribute node by qualified name and namespace URI, use
	the <code>getAttributeNodeNS</code> method.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name (<code>nodeName</code>) of the attribute to retrieve.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>The <code>Attr</code> node with the specified name
          (<code>nodeName</code>) or <code>null</code> if there is no such
          attribute.</p>
      </descr> 
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>
  <method name="setAttributeNode" id="ID-887236154">
    <descr>
      <p>Adds a new attribute node. If an attribute with that name
        (<code>nodeName</code>) is already present in the element, it is
        replaced by the new one. Replacing an attribute node by itself has no
        effect.</p>
      <p>To add a new attribute node with a qualified name and namespace URI,
	use the <code>setAttributeNodeNS</code> method.</p>
    </descr>
    <parameters>
      <param name="newAttr" type="Attr" attr="in">
	<descr>
          <p>The <code>Attr</code> node to add to the attribute list.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>If the <code>newAttr</code> attribute replaces an existing
          attribute, the replaced <code>Attr</code> node is returned, otherwise
          <code>null</code> is returned.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created
            from a different document than the one that created the
            element.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
          <p>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an
            attribute of another <code>Element</code> object. The DOM user must
            explicitly clone <code>Attr</code> nodes to re-use them in other
            elements.</p>
        </descr>
      </exception>
    </raises>
  </method>

  <method name="removeAttributeNode" id="ID-D589198">
    <descr>
      <p>Removes the specified attribute node. If a default value for the
        removed <code>Attr</code> node is defined in the DTD, a new node
        immediately appears with the default value as well as the corresponding
        namespace URI, local name, and prefix when applicable. The
        implementation may handle default values from other schemas similarly
        but applications should use normalizeDocument() to guarantee this
        information is up-to-date.</p>
    </descr>
    <parameters>
      <param name="oldAttr" type="Attr" attr="in">
	<descr>
          <p>The <code>Attr</code> node to remove from the attribute list.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>The <code>Attr</code> node that was removed.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if <code>oldAttr</code> is not an attribute
            of the element.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="getElementsByTagName" id="ID-1938918D">
    <descr>
      <p>Returns a <code>NodeList</code> of all
        <termref def="dt-descendant">descendant</termref> <code>Elements</code>
        with a given tag name, in <termref def="dt-document-order">document
          order</termref>.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the tag to match on. The special value "*" matches all
            tags.</p>
        </descr>
      </param>
    </parameters>
    <returns type="NodeList">
      <descr>
        <p>A list of matching <code>Element</code> nodes.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <!-- ****** DOM Level 2 additions ****** -->
  <method name="getAttributeNS" id="ID-ElGetAttrNS" since="DOM Level 2">
    <descr>
      <p>Retrieves an attribute value by local name and namespace URI.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute to retrieve.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
            attribute to retrieve.</p>
	</descr>
      </param>
    </parameters>
    <returns type="DOMString">
      <descr>
        <p>The <code>Attr</code> value as a string, or the empty string if that
          attribute does not have a specified or default value.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="setAttributeNS" id="ID-ElSetAttrNS" since="DOM Level 2">
    <descr>
      <p>Adds a new attribute. If an attribute with the same local name
	and namespace URI is already present on the element, its prefix is
	changed to be the prefix part of the <code>qualifiedName</code>, and
	its value is changed to be the <code>value</code> parameter. This value
	is a simple string; it is not parsed as it is being set. So any markup
	(such as syntax to be recognized as an entity reference) is treated as
	literal text, and needs to be appropriately escaped by the
	implementation when it is written out. In order to assign an attribute
	value that contains entity references, the user must create an
	<code>Attr</code> node plus any <code>Text</code> and
	<code>EntityReference</code> nodes, build the appropriate subtree, and
	use <code>setAttributeNodeNS</code> or <code>setAttributeNode</code> to
	assign it as the value of an attribute.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute to create or alter.</p>
	</descr>
      </param>
      <param name="qualifiedName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-qualifiedname">qualified name</termref> of
            the attribute to create or alter.</p>
	</descr>
      </param>
      <param name="value" type="DOMString" attr="in">
	<descr>
          <p>The value to set in string form.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>      
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>INVALID_CHARACTER_ERR: Raised if the specified qualified name
	    contains an illegal character.</p>
	  <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	  <p>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
            malformed per the Namespaces in XML specification, if the
            <code>qualifiedName</code> has a prefix and the
            <code>namespaceURI</code> is <code>null</code>, if the
            <code>qualifiedName</code> has a prefix that is "xml" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/XML/1998/namespace" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/XML/1998/namespace</loc>", if the
            <code>qualifiedName</code> or its prefix is "xmlns" and the
            <code>namespaceURI</code> is different from
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>", or if the
            <code>namespaceURI</code> is
            "<loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2000/xmlns/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2000/xmlns/</loc>" and neither the
            <code>qualifiedName</code> nor its prefix is "xmlns".</p>
          <p>NOT_SUPPORTED_ERR: Always thrown if the current document does not
            support the <code>"XML"</code> feature, since namespaces were
            defined by XML.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="removeAttributeNS" id="ID-ElRemAtNS" since="DOM Level 2">
    <descr>
      <p>Removes an attribute by local name and namespace URI. If a default
        value for the removed attribute is defined in the DTD, a new attribute
        immediately appears with the default value as well as the corresponding
        namespace URI, local name, and prefix when applicable. The
        implementation may handle default values from other schemas similarly
        but applications should use normalizeDocument() to guarantee this
        information is up-to-date.</p>
      <p>If no attribute with this local name and namespace URI is found, this
        method has no effect.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute to remove.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
            attribute to remove.</p>
	</descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	</descr>
      </exception>
    </raises>
  </method>
  <method name="getAttributeNodeNS" id="ID-ElGetAtNodeNS" since="DOM Level 2">
    <descr><p>Retrieves an <code>Attr</code> node by local name and namespace
	URI.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute to retrieve.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
	    attribute to retrieve.</p>
	</descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>The <code>Attr</code> node with the specified attribute local name
          and namespace URI or <code>null</code> if there is no such
          attribute.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="setAttributeNodeNS" id="ID-ElSetAtNodeNS" since="DOM Level 2">
    <descr>
      <p>Adds a new attribute. If an attribute with that local name and that
        namespace URI is already present in the element, it is replaced by the
        new one. Replacing an attribute node by itself has no effect.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="newAttr" type="Attr" attr="in">
	<descr>
          <p>The <code>Attr</code> node to add to the attribute list.</p>
	</descr>
      </param>
    </parameters>
    <returns type="Attr">
      <descr>
        <p>If the <code>newAttr</code> attribute replaces an existing attribute
          with the same <termref def="dt-localname">local name</termref> and
          <termref def="dt-namespaceURI">namespace URI</termref>, the replaced
          <code>Attr</code> node is returned, otherwise <code>null</code> is
          returned.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
          <p>WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created
            from a different document than the one that created the
            element.</p>
	  <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
	  <p>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an
	    attribute of another <code>Element</code> object. The DOM user
	    must explicitly clone <code>Attr</code> nodes to re-use them in
	    other elements.</p>
          <p>NOT_SUPPORTED_ERR: Always thrown if the current document does not
            support the <code>"XML"</code> feature, since namespaces were
            defined by XML.</p>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="getElementsByTagNameNS" id="ID-A6C90942" since="DOM Level 2">
    <descr>
      <p>Returns a <code>NodeList</code> of all the
        <termref def="dt-descendant">descendant</termref> <code>Elements</code>
        with a given local name and namespace URI in
        <termref def="dt-document-order">document order</termref>.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            elements to match on. The special value "*" matches all
            namespaces.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
            elements to match on. The special value "*" matches all local
            names.</p>
        </descr>
      </param>
    </parameters>
    <returns type="NodeList">
      <descr>
        <p>A new <code>NodeList</code> object containing all the matched
          <code>Elements</code>.</p>
      </descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>

  <method name="hasAttribute" id="ID-ElHasAttr" since="DOM Level 2">
    <descr>
      <p>Returns <code>true</code> when an attribute with a given name is
        specified on this element or has a default value, <code>false</code>
        otherwise.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the attribute to look for.</p>
        </descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
        <p><code>true</code> if an attribute with the given name is specified
          on this element or has a default value, <code>false</code>
          otherwise.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <method name="hasAttributeNS" id="ID-ElHasAttrNS" since="DOM Level 2">
    <descr>
      <p>Returns <code>true</code> when an attribute with a given local name
        and namespace URI is specified on this element or has a default value,
        <code>false</code> otherwise.</p>
      <p>Documents which do not support the "XML" feature will permit only the
        DOM Level 1 calls for creating/setting elements and attributes. Hence,
        if you specify a non-null namespace URI, these DOMs will never find a
        matching node.</p>
      <p>Per <bibref ref="Namespaces"/>, applications must use the value null
      as the namespaceURI parameter for methods if they wish to have no
      namespace.</p>
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute to look for.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
            attribute to look for.</p>
	</descr>
      </param>
    </parameters>
    <returns type="boolean">
      <descr>
        <p><code>true</code> if an attribute with the given local name and
          namespace URI is specified or has a default value on this element,
          <code>false</code> otherwise.</p>
      </descr>
    </returns>
    <raises>
      <!-- No exceptions -->
    </raises>
  </method>

  <!-- ****** DOM Level 3 additions ****** -->
  <method name="setIdAttribute" id="ID-ElSetIdAttr" since="DOM Level 3">
    <descr>
      <p>Declares the attribute specified by name to be of type ID. If the
        value of the specified attribute is unique then this element
        node can later be retrieved using <code>getElementById</code> on
        <code>Document</code>. Note, however, that this simply affects this
        node and does not change any grammar that may be in use.</p>  
      <p>To specify an attribute by local name and namespace URI, use the
        <code>setIdAttributeNS</code> method.</p>
    </descr>
    <parameters>
      <param name="name" type="DOMString" attr="in">
	<descr>
          <p>The name of the attribute.</p>
	</descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>      
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
	  <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if the specified node is not an attribute
            of this element.</p>
          <issue id="setIdAttribute-1" status="closed">
             <p>removeAttribute is a no-op if the attribute does not exist.
               Does it matter?</p>
             <resolution>
               <p>removeAttribute is fine as a no-op because the application
                 gets the right result. This isn't true here. So keep the
                 exception. (Telcon 2002 June 12)</p>
             </resolution>
          </issue>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="setIdAttributeNS" id="ID-ElSetIdAttrNS" since="DOM Level 3">
    <descr>
      <p>Declares the attribute specified by local name and namespace URI to be
        of type ID. If the value of the specified attribute is unique then this
        element node can later be retrieved using <code>getElementById</code>
        on <code>Document</code>. Note, however, that this simply affects this
        node and does not change any grammar that may be in use.</p>  
    </descr>
    <parameters>
      <param name="namespaceURI" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-namespaceURI">namespace URI</termref> of the
            attribute.</p>
	</descr>
      </param>
      <param name="localName" type="DOMString" attr="in">
	<descr>
          <p>The <termref def="dt-localname">local name</termref> of the
            attribute.</p>
	</descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>      
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
	  <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if the specified node is not an attribute
            of this element.</p>
          <issue id="setIdAttributeNS-1" status="closed">
             <p>removeAttributeNS is a no-op if the attribute does not exist.
               Does it matter?</p>
             <resolution>
               <p>removeAttributeNS is fine as a no-op because the application
                 gets the right result. This isn't true here. So keep the
                 exception. (Telcon 2002 June 12)</p>
             </resolution>
          </issue>
	</descr>
      </exception>
    </raises>
  </method>

  <method name="setIdAttributeNode" id="ID-ElSetIdAttrNode" since="DOM Level 3">
    <descr>
      <p>Declares the attribute specified by node to be of type ID. If the
        value of the specified attribute is unique then this element node can
        later be retrieved using <code>getElementById</code> on
        <code>Document</code>. Note, however, that this simply affects this
        node and does not change any grammar that may be in use.</p>  
    </descr>
    <parameters>
      <param name="idAttr" type="Attr" attr="in">
	<descr>
          <p>The attribute node.</p>
	</descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>      
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>
	  <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
          <p>NOT_FOUND_ERR: Raised if the specified node is not an attribute
            of this element.</p>
	</descr>
      </exception>
    </raises>
  </method>

</interface>
 
<!--[ Text object description ]-->
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="Text" inherits="CharacterData" id="ID-1312295772"> 
  <descr>
    <p>The <code>Text</code> interface inherits from <code>CharacterData</code>
      and represents the textual content (termed
      <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#syntax" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">character data</xspecref> in XML) of
      an <code>Element</code> or <code>Attr</code>. If there is no markup
      inside an element's content, the text is contained in a single object
      implementing the <code>Text</code> interface that is the only child of
      the element. If there is markup, it is parsed into the
      <termref def="dt-infoitem">information items</termref> (elements,
      comments, etc.) and <code>Text</code> nodes that form the list of
      children of the element.</p>
    <p>When a document is first made available via the DOM, there is only one
      <code>Text</code> node for each block of text. Users may create adjacent
      <code>Text</code> nodes that represent the contents of a given element
      without any intervening markup, but should be aware that there is no way
      to represent the separations between these nodes in XML or HTML, so they
      will not (in general) persist between DOM editing sessions. The
      <code>normalize</code> method on <code>Node</code> merges any such
      adjacent <code>Text</code> objects into a single node for each block of
      text.</p>
  </descr> 

  <method name="splitText" id="ID-38853C1D"> 
    <descr>
      <p>Breaks this node into two nodes at the specified <code>offset</code>,
        keeping both in the tree as
        <termref def="dt-sibling">siblings</termref>. After being split, this
        node will contain all the content up to the <code>offset</code>
        point. A new node of the same type, which contains all the content at
        and after the <code>offset</code> point, is returned. If the original
        node had a parent node, the new node is inserted as the next
        <termref def="dt-sibling">sibling</termref> of the original node. When
        the <code>offset</code> is equal to the length of this node, the new
        node has no data.</p>
    </descr> 
    <parameters> 
      <param name="offset" type="unsigned long" attr="in">	
        <descr>
          <p>The <termref def="dt-16-bit-unit">16-bit unit</termref> offset at
            which to split, starting from <code>0</code>.</p>
        </descr> 
      </param> 
    </parameters> 
    <returns type="Text"> 
      <descr>
        <p>The new node, of the same type as this node.</p>
      </descr> 
    </returns> 
    <raises> 
      <exception name="DOMException"> 
        <descr>
          <p>INDEX_SIZE_ERR: Raised if the specified offset is negative or
            greater than the number of 16-bit units in <code>data</code>.</p>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</p>
        </descr> 
      </exception> 
    </raises> 
  </method>

  <!-- ****** DOM Level 3 additions ****** -->
  <attribute readonly="yes" type="boolean" name="isWhitespaceInElementContent" id="Text3-isWhitespaceInElementContent" since="DOM Level 3">
    <descr>
      <p>Returns whether this text node contains whitespace in element content,
        often abusively called "ignorable whitespace".</p>
      <p role="Infoset">
	<termdef id="infoset-element-content-whitespace" term="[element content  whitespace]">This attribute represents the property [element content
	whitespace] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="yes" type="DOMString" name="wholeText" id="Text3-wholeText" since="DOM Level 3">
    <descr>

      <p>Returns all text of <code>Text</code> nodes <termref def="dt-logically-adjacent-text-nodes">logically-adjacent text
      nodes</termref> to this node, concatenated in document order.</p>

    </descr>
  </attribute>

  <method name="replaceWholeText" id="Text3-replaceWholeText" since="DOM Level 3"> 
    <descr>
      <p>Substitutes the a specified text for the text of the current node and
      all <termref def="dt-logically-adjacent-text-nodes">logically-adjacent
      text nodes</termref>.</p>

      <p>This method returns the node in the hierarchy which received the
      replacement text, which is null if the text was empty or is the current
      node if the current node is not read-only or otherwise is a new node of
      the same type as the current node inserted at the site of the
      replacement. All <termref def="dt-logically-adjacent-text-nodes">logically-adjacent text
      nodes</termref> are removed including the current node unless it was the
      recipient of the replacement text.</p>

      <p>Where the nodes to be removed are read-only descendants of an
      <code>EntityReference</code>, the <code>EntityReference</code> must be
      removed instead of the read-only nodes. If any
      <code>EntityReference</code> to be removed has descendants that are not
      <code>EntityReference</code>, <code>Text</code>, or
      <code>CDATASection</code> nodes, the <code>replaceWholeText</code> method
      must fail before performing any modification of the document, raising a
      <code>DOMException</code> with the code
      <code>NO_MODIFICATION_ALLOWED_ERR</code>.</p>

    </descr>
    <parameters>
      <param name="content" type="DOMString" attr="in">
        <descr>
          <p>The content of the replacing <code>Text</code> node.</p>
        </descr>
      </param>
    </parameters>
    <returns type="Text">
      <descr>
        <p>The <code>Text</code> node created with the specified content.</p>
      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
        <descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised if one of the
            <code>Text</code> nodes being replaced is readonly.</p>
        </descr>
      </exception>
    </raises>
  </method>
</interface>
 
<!--[ Comment object description ]-->
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="Comment" inherits="CharacterData" id="ID-1728279322">
  <descr>
    <p>This interface inherits from <code>CharacterData</code> and represents
      the content of a comment, i.e., all the characters between the starting
      '<code>&lt;!--</code>' and ending '<code>--&gt;</code>'. Note that this
      is the definition of a comment in XML, and, in practice, HTML, although
      some HTML tools may implement the full SGML comment structure.</p>
  </descr>
</interface>

      
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<interface name="UserDataHandler" id="UserDataHandler">
  <descr>
    <p>When associating an object to a key on a node using
      <code>setUserData</code> the application can provide a handler that gets
      called when the node the object is associated to is being cloned,
      imported, or renamed. This can be used by the application to implement
      various behaviors regarding the data it associates to the DOM nodes.
      This interface defines that handler.
    </p>
  </descr>
  <group id="ID-UserDataOperation" name="OperationType"> 
    <descr>
      <p>An integer indicating the type of operation being performed
        on a node.</p>
    </descr>
    <constant id="UserDataHandler-CLONED" name="NODE_CLONED" type="unsigned short" value="1"> 
      <descr>
        <p>The node is cloned.</p>
      </descr>
    </constant>
    <constant id="UserDataHandler-IMPORTED" name="NODE_IMPORTED" type="unsigned short" value="2"> 
      <descr>
        <p>The node is imported.</p>
      </descr>
    </constant>
    <constant id="UserDataHandler-DELETED" name="NODE_DELETED" type="unsigned short" value="3"> 
      <descr>
        <p>The node is deleted.</p>
      </descr>
    </constant>
    <constant id="UserDataHandler-RENAMED" name="NODE_RENAMED" type="unsigned short" value="4"> 
      <descr>
        <p>The node is renamed.</p>
      </descr>
    </constant>
  </group>
  <method name="handle" id="ID-handleUserDataEvent">
    <descr>
      <p>This method is called whenever the node for which this handler is
        registered is imported or cloned.</p>
    </descr>
    <parameters>
      <param name="operation" type="unsigned short" attr="in">
        <descr>
          <p>Specifies the type of operation that is being performed on the
            node.</p>
        </descr>
      </param>
      <param name="key" type="DOMString" attr="in">
        <descr>
          <p>Specifies the key for which this handler is being called.
          </p>
        </descr>
      </param>
      <param name="data" type="DOMObject" attr="in">
        <descr>
          <p>Specifies the data for which this handler is being called.
          </p>
        </descr>
      </param>
      <param name="src" type="Node" attr="in">
        <descr>
          <p>Specifies the node being cloned, imported, or renamed. This is
            <code>null</code> when the node is being deleted.</p>
        </descr>
      </param>
      <param name="dst" type="Node" attr="in">
        <descr>
          <p>Specifies the node newly created if any, or <code>null</code>.</p>
        </descr>
      </param>
    </parameters>
    <returns type="void">
      <descr><p/></descr>
    </returns>
    <raises>
      <!-- Throws no exceptions -->
    </raises>
  </method>
</interface>
 
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--=====================================================================
=                                                                       =
=      DOMError                                                         =
=                                                                       =
======================================================================-->
<interface name="DOMError" id="ERROR-Interfaces-DOMError">
  <descr>
    <p><code>DOMError</code> is an interface that describes an error.</p>
  </descr>

  <group id="DOMError-errorSeverityCodes" name="ErrorSeverity">
    <descr>
      <p>
	An integer indicating the severity of the error.
      </p>
    </descr>
    <constant name="SEVERITY_WARNING" id="ERROR-DOMError-severity-warning" type="unsigned short" value="0">
      <descr>
	<p>The severity of the error described by the <code>DOMError</code> is
	  warning</p>
      </descr>
    </constant>
    
    <constant name="SEVERITY_ERROR" id="ERROR-DOMError-severity-error" type="unsigned short" value="1">
      <descr>
	<p>The severity of the error described by the <code>DOMError</code> is
	  error</p>
      </descr>
    </constant>
    
    <constant name="SEVERITY_FATAL_ERROR" id="ERROR-DOMError-severity-fatal-error" type="unsigned short" value="2">
      <descr>
	<p>The severity of the error described by the <code>DOMError</code> is
	  fatal error</p>
      </descr>
    </constant>
  </group>

  <attribute type="unsigned short" readonly="yes" name="severity" id="ERROR-DOMError-severity">
    <descr>
      <p>The severity of the error, either
        <code>SEVERITY_WARNING</code>, <code>SEVERITY_ERROR</code>,
        or <code>SEVERITY_FATAL_ERROR</code>.</p>
    </descr>
  </attribute>

  <attribute type="DOMString" readonly="yes" name="message" id="ERROR-DOMError-message">
    <descr>
      <p>An implementation specific string describing the error that
        occured.</p>
    </descr>
  </attribute>

  <attribute name="type" type="DOMString" readonly="yes" id="ERROR-DOMError-type">
    <descr>
      <p>
	A <code>DOMString</code> indicating which related data is
	expected in <code>relatedData</code>. Users should refer to the
	specification of the error in order to find its
	<code>DOMString</code> type and <code>relatedData</code>
	definitions if any.
      </p>
      <note>
	<p>
	  As an example, <bibref role="informative" ref="DOMLS"/> does
	  not keep the [baseURI] property defined on a Processing
	  Instruction information item. Therefore, the
	  <code>DOMBuilder</code> generates a
	  <code>SEVERITY_WARNING</code> with <code>type</code>
	  <code>"infoset-baseURI"</code> and the lost [baseURI] property
	  represented as a <code>DOMString</code> in the
	  <code>relatedData</code> attribute.
	</p>
      </note>
    </descr>
  </attribute>

  <attribute type="Object" readonly="yes" name="relatedException" id="ERROR-DOMError-relatedException">
    <descr>
      <p>The related platform dependent exception if any.</p>
      <issue id="Error-1" status="open">
        <p>exception is a reserved word, we need to rename it.</p>
        <resolution>
          <p>Change to "relatedException". (F2F 26 Sep 2001)</p>
        </resolution>
      </issue>
    </descr>
  </attribute>

  <attribute type="DOMObject" readonly="yes" name="relatedData" id="ERROR-DOMError-relatedData">
    <descr>
      <p>
	The related <code>Error.type</code> dependent data if any.
      </p>
    </descr>
  </attribute>

  <attribute type="DOMLocator" readonly="yes" name="location" id="ERROR-DOMError-location">
    <descr>
      <p>The location of the error.</p>
    </descr>
  </attribute>
</interface>
 
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--=====================================================================
=                                                                       =
=      DOMErrorHandler                                                  =
=                                                                       =
======================================================================-->
<interface name="DOMErrorHandler" id="ERROR-Interfaces-DOMErrorHandler">
  <descr>
    <p><code>DOMErrorHandler</code> is a callback interface that the DOM
      implementation can call when reporting errors that happens while
      processing XML data, or when doing some other processing (e.g. validating
      a document).</p>
    <p>The application that is using the DOM implementation is expected to
      implement this interface.</p>
    <issue id="ErrorHandler-1" status="closed">
      <p>How does one register an error handler in the core? Passed as an
        argument to super-duper-normalize or registered on the
        DOMImplementation?</p>
      <resolution>
        <p>Document interface has an attribute errorHandler.</p>
      </resolution>
    </issue>
  </descr>

  <method name="handleError" id="ID-ERRORS-DOMErrorHandler-handleError">
    <descr>
      <p>This method is called on the error handler when an error occures.</p>
    </descr>

    <parameters>
      <param name="error" type="DOMError" attr="in">
        <descr>
          <p>The error object that describes the error, this object may be
            reused by the DOM implementation across multiple calls to the
            handleEvent method.</p>
        </descr>
      </param>
    </parameters>

    <returns type="boolean">
      <descr>
        <p>If the handleError method returns <code>true</code> the DOM
          implementation should continue as if the error didn't happen when
          possible, if the method returns <code>false</code> then the DOM
          implementation should stop the current processing when possible.</p>
      </descr>
    </returns>

    <raises>
      <!-- no exceptions -->
    </raises>
  </method>
</interface>
 
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--=====================================================================
=                                                                       =
=      DOMLocator                                                       =
=                                                                       =
======================================================================-->
<interface name="DOMLocator" id="Interfaces-DOMLocator">
  <descr>
    <p><code>DOMLocator</code> is an interface that describes a location
      (e.g. where an error occured).</p>
  </descr>

  <attribute type="long" readonly="yes" name="lineNumber" id="DOMLocator-line-number">
    <descr>
      <p>The line number this locator is pointing to, or <code>-1</code> if
        there is no column number available.</p>
    </descr>
  </attribute>

  <attribute type="long" readonly="yes" name="columnNumber" id="DOMLocator-column-number">
    <descr>
      <p>The column number this locator is pointing to, or <code>-1</code> if
        there is no column number available.</p>
    </descr>
  </attribute>

  <attribute type="long" readonly="yes" name="offset" id="DOMLocator-offset">
    <descr>
      <p>The byte or character offset into the input source this locator is
        pointing to. If the input source is a file or a byte stream then this
        is the byte offset into that stream, but if the input source is a
        character media then the offset is the character offset. The value is
        <code>-1</code> if there is no offset available.</p>
    </descr>
  </attribute>

  <attribute type="Node" readonly="yes" name="relatedNode" id="DOMLocator-node">
    <descr>
      <p>The node this locator is pointing to, or <code>null</code> if no node
        is available.</p>
    </descr>
  </attribute>

  <attribute type="DOMString" readonly="yes" name="uri" id="DOMLocator-uri">
    <descr>
      <p>The URI this locator is pointing to, or <code>null</code> if no URI
        is available.</p>
    </descr>
  </attribute>
</interface>

    </definitions>
  </div2>
  <div2 id="ID-E067D597">
    <head>Extended Interfaces</head>
    <p>The interfaces defined here form part of the DOM Core specification, but
      objects that expose these interfaces will never be encountered in a DOM
      implementation that deals only with HTML.</p>
    <p>
      The interfaces found within this section are not mandatory. A DOM
      application may use the <code>hasFeature(feature, version)</code> method
      of the <code>DOMImplementation</code> interface with parameter values
      "XML" and "3.0" (respectively) to determine whether or not this module is
      supported by the implementation. In order to fully support this module,
      an implementation must also support the "Core" feature defined in
      <specref ref="ID-BBACDC08"/>. Please refer to additional information
      about <specref ref="ID-Conformance"/> in this specification.
      The DOM Level 3 XML module is backward compatible with the DOM Level 2
      XML <bibref ref="DOM2Core"/> and DOM Level 1 XML <bibref ref="DOM-Level-1"/> modules, i.e. a DOM Level 3 XML
      implementation who returns <code>true</code> for "XML"
      with the <code>version</code> number <code>"3.0"</code> must also return
      <code>true</code> for this <code>feature</code> when the
      <code>version</code> number is <code>"2.0"</code>, <code>"1.0"</code>,
      <code>""</code> or, <code>null</code>.
    </p>

    <definitions> 
<!--[ CDATA Section ]-->
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="CDATASection" inherits="Text" id="ID-667469212">
  <descr>
    <p>CDATA sections are used to escape blocks of text containing characters
      that would otherwise be regarded as markup. The only delimiter that is
      recognized in a CDATA section is the "]]&gt;" string that ends the CDATA
      section. CDATA sections cannot be nested. Their primary purpose is for
      including material such as XML fragments, without needing to escape all
      the delimiters.</p><p>The <code>DOMString</code> attribute of the
      <code>Text</code> node holds the text that is contained by the CDATA
      section. Note that this <emph>may</emph> contain characters that need to
      be escaped outside of CDATA sections and that, depending on the character
      encoding ("charset") chosen for serialization, it may be impossible to
      write out some characters as part of a CDATA section.</p>
    <p>The <code>CDATASection</code> interface inherits from the
      <code>CharacterData</code> interface through the <code>Text</code>
      interface. Adjacent <code>CDATASection</code> nodes are not merged by use
      of the <code>normalize</code> method of the <code>Node</code>
      interface.</p>
    <note>
      <p>Because no markup is recognized within a <code>CDATASection</code>,
	character numeric references cannot be used as an escape mechanism
	when serializing. Therefore, action needs to be taken when serializing
	a <code>CDATASection</code> with a character encoding where some of
	the contained characters cannot be represented. Failure to do so would
	not produce well-formed XML.</p>
      <p>One potential solution in the serialization process is to end the
	CDATA section before the character, output the character using a 
	character reference or entity reference, and open a new CDATA section 
	for any further characters in the text node. Note, however, that some 
	code conversion libraries at the time of writing do not return an
	error or exception when a character is missing from the encoding, 
	making the task of ensuring that data is not corrupted on serialization
	more difficult.</p> 
    </note>
  </descr>
</interface>
 
<!--[ DocumentType object description ]-->
<interface name="DocumentType" inherits="Node" id="ID-412266927">
  <descr>
    <p>Each <code>Document</code> has a <code>doctype</code> attribute whose
      value is either <code>null</code> or a <code>DocumentType</code>
      object. The <code>DocumentType</code> interface in the DOM Core provides
      an interface to the list of entities that are defined for the document,
      and little else because the effect of namespaces and the various XML
      schema efforts on DTD representation are not clearly understood as of
      this writing.</p>
    <p>The DOM Level 2 doesn't support editing <code>DocumentType</code>
      nodes. <code>DocumentType</code> nodes are read-only.</p>
    <note>
      <p role="Infoset">
	The property [children] defined by the Document Type Declaration
	Information Item in <bibref ref="InfoSet"/> is not accessible from DOM
	Level 3 Core.
      </p>
    </note>
  </descr> 

  <attribute readonly="yes" name="name" type="DOMString" id="ID-1844763134">
    <descr>
      <p>The name of DTD; i.e., the name immediately following the
        <code>DOCTYPE</code> keyword.</p>
    </descr>
  </attribute>

  <attribute readonly="yes" name="entities" type="NamedNodeMap" id="ID-1788794630">
    <descr>
      <p>A <code>NamedNodeMap</code> containing the general entities, both
	external and internal, declared in the DTD. Parameter entities are not 
        contained. Duplicates are discarded. For example in:
        <eg role="code" xml:space="preserve">&lt;!DOCTYPE ex SYSTEM "ex.dtd" [
  &lt;!ENTITY foo "foo"&gt;
  &lt;!ENTITY bar "bar"&gt;
  &lt;!ENTITY bar "bar2"&gt;
  &lt;!ENTITY % baz "baz"&gt;
]&gt;
&lt;ex/&gt;</eg>  
	the interface provides access to <code>foo</code> and the first
        declaration of <code>bar</code> but not the second declaration of
        <code>bar</code> or <code>baz</code>. Every node in this map also
        implements the <code>Entity</code> interface.</p>
      <p>The DOM Level 2 does not support editing entities, therefore
        <code>entities</code> cannot be altered in any way.</p>
    </descr>
  </attribute>

  <attribute readonly="yes" name="notations" type="NamedNodeMap" id="ID-D46829EF">
    <descr>
      <p>A <code>NamedNodeMap</code> containing the notations declared in the
        DTD. Duplicates are discarded. Every node in this map also implements
        the <code>Notation</code> interface.</p>
      <p>The DOM Level 2 does not support editing notations, therefore
        <code>notations</code> cannot be altered in any way.</p>
      <p role="Infoset">
	<termdef id="infoset-notations" term="[notations]">This attribute
	represents the property [notations] defined by the Document Information
	Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <!-- ****** DOM Level 2 additions ****** -->
  <attribute readonly="yes" name="publicId" type="DOMString" id="ID-Core-DocType-publicId" since="DOM Level 2">
    <descr>
      <p>The public identifier of the external subset.</p>
      <p role="Infoset">
	<termdef id="infoset-doctype-public-identifier" term="[public  identifier]">This attribute represents the property [public identifier]
	defined by the Document Type Declaration Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="yes" name="systemId" type="DOMString" id="ID-Core-DocType-systemId" since="DOM Level 2">
    <descr>
      <p>The system identifier of the external subset. This may be an absolute
        URI or not.</p>
      <p role="Infoset">
	<termdef id="infoset-doctype-system-identifier" term="[system  identifier]">This attribute represents the property [system identifier]
	defined by the Document Type Declaration Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="yes" name="internalSubset" type="DOMString" id="ID-Core-DocType-internalSubset" since="DOM Level 2">
    <descr>
      <p>The internal subset as a string, or <code>null</code> if there is
        none. This is does not contain the delimiting square brackets.</p>
       <note>
        <p>The actual content returned depends on how much information is
          available to the implementation. This may vary depending on various
          parameters, including the XML processor used to build the
          document.</p>
       </note>
    </descr>
  </attribute>

</interface>
 
<interface name="Notation" inherits="Node" id="ID-5431D1B9">
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
  <descr>
    <p>This interface represents a notation declared in the DTD. A notation
    either declares, by name, the format of an unparsed entity (see  <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#Notations" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">section 4.7</xspecref>
    of the XML 1.0 specification <bibref ref="XML"/>), or is used for formal
      declaration of
    processing instruction targets (see <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#sec-pi" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">section 2.6</xspecref> of the XML 1.0
    specification <bibref ref="XML"/>). The <code>nodeName</code> attribute
      inherited from
    <code>Node</code> is set to the declared name of the notation.</p>
    <p>The DOM Core does not support editing <code>Notation</code>
      nodes; they are therefore
      <termref def="dt-readonly-node">readonly</termref>.</p>
    <p>A <code>Notation</code> node does not have any parent.</p>

    <issue id="Notation-1" status="closed">
      <p>adds a namespaceURI for notations?</p>
      <resolution>
	<p>No. 1- notations are attached to a <code>DocumentType</code>. 2- what would
	be the key for notations in namednodemap? </p>
      </resolution>
    </issue>
  </descr>
  <attribute readonly="yes" name="publicId" type="DOMString" id="ID-54F2B4D0">
    <descr><p>The public identifier of this notation. If the 
	public identifier was not specified, this is <code>null</code>.</p>
      <p role="Infoset">
	<termdef id="infoset-notation-public-identifier" term="[public  identifier]">This attribute represents the property [public identifier]
	defined by the Notation Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr> 
  </attribute>
  <attribute readonly="yes" name="systemId" type="DOMString" id="ID-E8AAB1D0">
    <descr><p>The system identifier of this notation. If the system identifier
        was not specified, this is <code>null</code>. This may be an absolute
        URI or not.</p>
      <p role="Infoset">
	<termdef id="infoset-notation-system-identifier" term="[system  identifier]">This attribute represents the property [system identifier]
	defined by the Notation Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr> 
  </attribute>
</interface>

      
<interface name="Entity" inherits="Node" id="ID-527DCFF2">
  <descr>
    <p>This interface represents a known entity, either parsed or unparsed, in an
      XML document. Note that this models the entity itself <emph>not</emph>
      the entity declaration.</p>
    <p>The <code>nodeName</code> attribute that is inherited from
      <code>Node</code> contains the name of the entity.</p> 
    <p>An XML processor may choose to completely expand entities before the
      structure model is passed to the DOM; in this case there will be no
      <code>EntityReference</code> nodes in the document tree.</p>
    <p>XML does not mandate that a non-validating XML processor read and
      process entity declarations made in the external subset or declared in
      external parameter entities. This means that parsed entities declared in
      the external subset need not be expanded by some classes of applications,
      and that the replacement text of the entity may not be available. When the
      <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#intern-replacement" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">replacement text</xspecref> is
      available, the corresponding <code>Entity</code> node's child list
      represents the structure of that replacement value. Otherwise, the child
      list is empty.</p>
    <p>The DOM Level 2 does not support editing <code>Entity</code> nodes; if a
      user wants to make changes to the contents of an <code>Entity</code>,
      every related <code>EntityReference</code> node has to be replaced in the
      structure model by a clone of the <code>Entity</code>'s contents, and
      then the desired changes must be made to each of those clones
      instead. <code>Entity</code> nodes and all their
      <termref def="dt-descendant">descendants</termref> are
      <termref def="dt-readonly-node">readonly</termref>.</p>
    <p>An <code>Entity</code> node does not have any parent.</p>
    <note>
      <p>If the entity contains an unbound
        <termref def="dt-namespaceprefix">namespace prefix</termref>, the
        <code>namespaceURI</code> of the corresponding node in the
        <code>Entity</code> node subtree is <code>null</code>. The same is
        true for <code>EntityReference</code> nodes that refer to this entity,
        when they are created using the <code>createEntityReference</code>
        method of the <code>Document</code> interface. The DOM Level 2 does not
        support any mechanism to resolve namespace prefixes.</p>
    </note>
    <note>
      <p role="Infoset">
	The properties [notation name] and [notation] defined
	in <bibref ref="InfoSet"/> are not accessible from DOM Level 3
	Core.
      </p>
    </note>
  </descr>

  <attribute readonly="yes" name="publicId" type="DOMString" id="ID-D7303025">
    <descr>
      <p>The public identifier associated with the entity if specified, and
        <code>null</code> otherwise.</p>
      <p role="Infoset">
	<termdef id="infoset-pi-public-identifier" term="[public  identifier]">This attribute represents the property [public identifier]
	defined by the Unparsed Entity Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="yes" name="systemId" type="DOMString" id="ID-D7C29F3E">
    <descr>
      <p>The system identifier associated with the entity if specified, and
        <code>null</code> otherwise. This may be an absolute URI or not.</p>
      <p role="Infoset">
	<termdef id="infoset-pi-system-identifier" term="[system  identifier]">This attribute represents the property [system identifier]
	defined by the Unparsed Entity Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute readonly="yes" name="notationName" type="DOMString" id="ID-6ABAEB38">
    <descr>
      <p>For unparsed entities, the name of the notation for the entity. For
        parsed entities, this is <code>null</code>.</p>
    </descr> 
  </attribute>

  <attribute readonly="no" type="DOMString" name="actualEncoding" id="Entity3-actualEncoding" since="DOM Level 3">
    <descr>
      <p>An attribute specifying the actual encoding of this entity, when it is
        an external parsed entity. This is <code>null</code> otherwise.</p>
    </descr>
  </attribute>

  <attribute readonly="no" type="DOMString" name="encoding" id="Entity3-encoding" since="DOM Level 3">
    <descr>
      <p>An attribute specifying, as part of the text declaration, the encoding
        of this entity, when it is an external parsed entity. This is
        <code>null</code> otherwise.</p>
    </descr>
  </attribute>

  <attribute readonly="no" type="DOMString" name="version" id="Entity3-version" since="DOM Level 3">
    <descr>
      <p>An attribute specifying, as part of the text declaration, the version
        number of this entity, when it is an external parsed entity. This is
        <code>null</code> otherwise.</p>
    </descr>
  </attribute>
</interface>
 
<interface name="EntityReference" inherits="Node" id="ID-11C98490">
  <descr>
    <p><code>EntityReference</code> nodes may be used to represent an entity
      reference in the tree. Note that character references
      and references to predefined entities are considered to be expanded by
      the HTML or XML processor so that characters are represented by their
      Unicode equivalent rather than by an entity reference. Moreover, the XML
      processor may completely expand references to entities while building the
      <code>Document</code>, instead of providing <code>EntityReference</code>
      nodes. If it does provide such nodes, then for an
      <code>EntityReference</code> node that represents a reference to a known
      entity an <code>Entity</code> exists, and the subtree of the
      <code>EntityReference</code> node is a copy of the
      <code>Entity</code> node subtree. However, the latter may not be true
      when an entity contains an unbound <termref def="dt-namespaceprefix">namespace prefix</termref>. In such a case, because the namespace prefix
      resolution depends on where the entity reference is, the
      <termref def="dt-descendant">descendants</termref> of the
      <code>EntityReference</code> node may be bound to different
      <termref def="dt-namespaceURI">namespace URIs</termref>. When an
      <code>EntityReference</code> node represents a reference to an unknown
      entity, its content is empty.</p>
    <p>As for <code>Entity</code> nodes, <code>EntityReference</code> nodes and
      all their <termref def="dt-descendant">descendants</termref> are
      <termref def="dt-readonly-node">readonly</termref>.</p>
    <note>
      <p role="Infoset">
	The properties [system identifier] and [public identifier] defined by
	the Unexpanded Entity Reference Information Item in <bibref ref="InfoSet"/> are accessible through the <code>Entity</code>
	interface. The property [all declarations processed] is not accessible
	through the DOM API.
      </p>
    </note>    
    <note>
      <p><code>EntityReference</code> nodes may cause element content and
        attribute value normalization problems when, such as in XML 1.0 and
        XML Schema, the normalization is be performed after entity reference
        are expanded.</p>
    </note> 
  </descr>
</interface>
 
<!--[ ProcessingInstruction object description ]-->
<!-- $Date: 2002/10/22 16:57:26 $ $Revision: 1.8 $ -->
<interface name="ProcessingInstruction" inherits="Node" id="ID-1004215813">
  <descr>
    <p>The <code>ProcessingInstruction</code> interface represents a
      "processing instruction", used in XML as a way to keep
      processor-specific information in the text of the document.</p>
    <note>
      <p role="Infoset">
	The property [notation] defined in <bibref ref="InfoSet"/> is not
	accessible from DOM Level 3 Core.
      </p>
    </note>
  </descr>

  <attribute readonly="yes" type="DOMString" name="target" id="ID-1478689192">
    <descr>
      <p>The target of this processing instruction. XML defines this as being
        the first <termref def="dt-token">token</termref> following the markup
        that begins the processing instruction.</p>
      <p role="Infoset">
	<termdef id="infoset-target" term="[target]">This attribute represents
	the property [target] defined in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
  </attribute>

  <attribute type="DOMString" name="data" id="ID-837822393" readonly="no">
    <descr>
      <p>The content of this processing instruction. This is from the first non
        white space character after the target to the character immediately
        preceding the <code>?&gt;</code>.</p>
      <p role="Infoset">
	<termdef id="infoset-pi-content" term="[content]">This attribute
	represents the property [content] defined by the Processing Instruction
	Information Item in <bibref ref="InfoSet"/></termdef>.
      </p>
    </descr>
    <setraises>
      <exception name="DOMException">
	<descr>
          <p>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.</p>
        </descr>
      </exception>
    </setraises>
  </attribute>
</interface>
    
 
    </definitions>
  </div2>
</div1>
<!--
 *************************************************************************
 * END OF CORE                                                           *
 *************************************************************************
-->

</body>
  <!--
  *************************************************************************
  * BACK MATTER                                                           *
  *************************************************************************
  -->
<back> 
  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<div1 id="Changes">
  <head>Changes</head>

  <orglist role="editors">
    <member>
      <name>Arnaud Le Hors</name> 
      <affiliation>IBM</affiliation>
    </member>
    <member>
      <name>Philippe Le Hégaret</name>
      <affiliation>W3C</affiliation>
    </member>
  </orglist>

  <div2 id="DOMLevel2to3Changes">
    <head>Changes between DOM Level 2 Core and DOM Level 3 Core</head>

    <p><emph>To be completed...</emph></p>

  </div2>
  <div2 id="DOMLevel1to2Changes">
    <head>Changes between DOM Level 1 Core and DOM Level 2 Core</head>

    <glist>
      <gitem>
	<label>OMG IDL</label>
	<def>
          <p>The DOM Level 2 specifications are now using Corba 2.3.1 instead
            of Corba 2.2.</p>
	</def>
      </gitem>
      <gitem>
	<label>Type <code>DOMString</code></label>
	<def>
          <p>The definition of <code>DOMString</code> in IDL is now a
            <code>valuetype</code>.</p>
	</def>
      </gitem>
    </glist>

    <div3 id="DOMLevel1Changes">
      <head>Changes to DOM Level 1 Core interfaces and exceptions</head>

      <glist>
	<gitem>
	  <label>Interface <code>Attr</code></label>
	  <def>
            <p>The <code>Attr</code> interface has one new attribute:
              <code>ownerElement</code>.</p>
	  </def>
	</gitem>
	<gitem>
	  <label>Interface <code>Document</code></label>
	  <def>
            <p>The <code>Document</code> interface has five new methods:
              <code>importNode</code>, <code>createElementNS</code>,
              <code>createAttributeNS</code>,
              <code>getElementsByTagNameNS</code> and
              <code>getElementById</code>.</p>
	  </def>
	</gitem>
	<gitem>
	  <label>Interface <code>NamedNodeMap</code></label>
	  <def>
            <p>The <code>NamedNodeMap</code> interface has three new methods:
              <code>getNamedItemNS</code>, <code>setNamedItemNS</code>,
              <code>removeNamedItemNS</code>.</p>
	  </def>
	</gitem>
	<gitem>
	  <label>Interface <code>Node</code></label>
	  <def>
            <p>The <code>Node</code> interface has two new methods:
              <code>isSupported</code> and
              <code>hasAttributes</code>.</p><p><code>normalize</code>,
              previously in the <code>Element</code> interface, has been moved
              in the <code>Node</code> interface.</p>
	    <p>The <code>Node</code> interface has three new attributes:
	    <code>namespaceURI</code>, <code>prefix</code> and
	    <code>localName</code>.</p>
	    <p>The <code>ownerDocument</code> attribute was specified to be
	      <code>null</code> when the node is a <code>Document</code>. It
	      now is also <code>null</code> when the node is a
	      <code>DocumentType</code> which is not used with any
	      <code>Document</code> yet.</p>
	  </def>
	</gitem>
	<gitem>
	  <label>Interface <code>DocumentType</code></label>
	  <def>
            <p>The <code>DocumentType</code> interface has three attributes:
	      <code>publicId</code>, <code>systemId</code> and
	      <code>internalSubset</code>.</p>
	  </def>
	</gitem>
	<gitem>
	  <label>Interface <code>DOMImplementation</code></label>
	  <def>
            <p>The <code>DOMImplementation</code> interface has two new
	      methods: <code>createDocumentType</code> and
	      <code>createDocument</code>.</p>
	  </def>
	</gitem>
	<gitem>
	  <label>Interface <code>Element</code></label>
	  <def>
            <p>The <code>Element</code> interface has eight new methods:
              <code>getAttributeNS</code>, <code>setAttributeNS</code>,
              <code>removeAttributeNS</code>, <code>getAttributeNodeNS</code>,
              <code>setAttributeNodeNS</code>,
              <code>getElementsByTagNameNS</code>, <code>hasAttribute</code>
              and <code>hasAttributeNS</code>.</p>
            <p>The method <code>normalize</code> is now inherited from the
              <code>Node</code> interface where it was moved.</p>

	  </def>
	</gitem>
	<gitem>
	  <label>Exception <code>DOMException</code></label>
	  <def>
            <p>The <code>DOMException</code> has five new exception codes:
              <code>INVALID_STATE_ERR</code>, <code>SYNTAX_ERR</code>,
              <code>INVALID_MODIFICATION_ERR</code>, <code>NAMESPACE_ERR</code>
              and <code>INVALID_ACCESS_ERR</code>.</p>
	  </def>
	</gitem>
      </glist>
    </div3>
    <div3 id="DOMLevel2Addons">      
      <head>New features</head>
      <div4 id="DOMLevel2Addons-types">
	<head>New types</head>
	<glist>
	  <gitem>
	    <label><code>DOMTimeStamp</code></label>
	    <def>
	      <p>The <code>DOMTimeStamp</code> type was added to the Core
                module.</p>
	    </def>
	  </gitem>
	</glist>
      </div4>
    </div3>
  </div2>
</div1>

  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<div1 id="Algorithms">
  <head>Namespaces Algorithms</head>

  <orglist role="editors">
    <member>
      <name>Arnaud Le Hors</name> 
      <affiliation>IBM</affiliation>
    </member>
    <member>
      <name>Elena Litani</name> 
      <affiliation>IBM</affiliation>
    </member>
  </orglist>

  <div2 id="normalizeDocumentAlgo">
    <head>Namespace normalization</head>

    <p>Namespace declaration attributes and prefixes are normalized as part of
      the <code>normalizeDocument</code> method of the <code>Document</code>
      interface as if the following method described in pseudo code was called
      on the document element.
      <eg xml:space="preserve">
void Element.normalizeNamespaces()
{
  if ( Element's namespaceURI != null )
  {
    if ( Element's prefix/namespace pair (or default namespace,
         if no prefix) are within the scope of a binding )
    {
      ==&gt; do nothing, declaration in scope is inherited
          See example 1
    }
    else
    {
      ==&gt; Create a local namespace declaration attr for this namespace,
          with Element's current prefix (or a default namespace, if
          no prefix). If there's a conflicting local declaration
          already present, change its value to use this namespace.
          See example 2
          // NOTE that this may break other nodes within this Element's
          // subtree, if they're already using this prefix.
          // They will be repaired when we reach them.
    }
  }
  else
  {
    // Element has no namespace URI:
    if ( Element has a colon in its name )
    {
       // DOM Level 1 node
       ==&gt; if in process of validation against a namespace aware schema 
           (i.e XML Schema) report a fatal error: the processor can not recover 
           in this situation. 
           Otherwise, report an error: no namespace fixup will be performed on this node.
    }
    else
    {
      // Element has no namespace URI 
      // Element has no pseudo-prefix
      if ( default Namespace in scope is "no namespace" )
      {
        ==&gt; do nothing, we're fine as we stand
      }
      else
      {
        if ( there's a conflicting local default namespace declaration
             already present )
        {
          ==&gt; change its value to use this empty namespace.
          See example 3
        }
        else
        {
          ==&gt; Set the default namespace to "no namespace" by creating or
          changing a local declaration attribute: xmlns="". 
          See example 4
        }
        // NOTE that this may break other nodes within this Element's
        // subtree, if they're already using the default namespaces.
        // They will be repaired when we reach them.
      }
    }
  }

  //////// EXAMINE AND POLISH THE ATTRS ////////

  for ( all DOM Level 2 valid local namespace declaration attributes of Element ) 
  {    
      if (the namespace declaration is invalid) 
      {
          // Note: The prefix xmlns is used only to declare namespace bindings and
          // is by definition bound to the namespace name http://www.w3.org/2000/xmlns/.
          // It must not be declared. No other prefix may be bound to this namespace name.         
               
          ==&gt; Report an error.

      } 
      else 
      {
          ==&gt;  Record the namespace declaration
      }
  }

  for ( all non-namespace Attrs of Element )
  {
     if ( Attr[i] has a namespace URI )
     {
        if ( attribute has no prefix (default namespace decl does not apply to attributes) 
             OR
             attribute prefix is not declared
             OR
             conflict: attribute has a prefix that conficlicts with a binding
                       already active in scope)
        {              
           if (namespaceURI matches an in scope declaration of one or more prefixes) 
           {
               // pick the most local binding available; 
               // if there is more than one pick one arbitrarily

               ==&gt; change attribute's prefix.
           }
           else 
           {
               if (the current prefix is not null and it has no in scope declaration) 
               {
                   ==&gt; declare this prefix
               } 
               else 
               {
                   // find a prefix following the pattern "NS" +index (starting at 1)
                   // make sure this prefix is not declared in the current scope.
                   // create a local namespace declaration attribute

                   ==&gt; change attribute's prefix.
               }
           }           
        }    
        else
        {
            // Attr[i] has no namespace URI
            
            if ( Attr[i] has a colon in its name )
            {
               // DOM Level 1 node
              ==&gt; if in process of validation against a namespace aware schema 
                 (i.e XML Schema) report a fatal error: the processor can not recover 
                  in this situation. 
                  Otherwise, report an error: no namespace fixup will be performed on this node.
            }
            else
            { 
                // attr has no namespace URI and no prefix
                // no action is required, since attrs don't use default
                ==&gt; do nothing 
            }
        }
  } // end for-all-Attrs

  // do this recursively
  for ( all child elements of Element )
  {
    childElement.normalizeNamespaces()
  }
} // end Element.normalizeNamespaces
      </eg>
    </p>
  </div2>


  <div2 id="lookupNamespacePrefixAlgo">
    <head>Namespace Prefix Lookup</head>

    <p>The following describes in pseudo code the algorithm used in the
      <code>lookupPrefix</code> method of the <code>Node</code> interface. Before returning found prefix 
      the algorithm needs to make sure that the prefix is not redefined on an element from which the lookup 
      started. </p>
      <p>
      <b>Note:</b> this method ignores all 
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/REC-xml-names/#NT-DefaultAttName" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">default namespace declarations</loc>.
      To look up default namespace use <code>isDefaultNamespace</code> method.
      <eg xml:space="preserve">
DOMString lookupPrefix(in DOMString specifiedNamespaceURI)
{
  short type = this.getNodeType(); 
  switch (type) { 
        case Node.ELEMENT_NODE: 
        { 
             return lookupNamespacePrefix(namespaceURI, this); 
        } 
        case Node.DOCUMENT_NODE:
        { 
             return getDocumentElement().lookupNamespacePrefix(namespaceURI); 
        } 
        case Node.ENTITY_NODE : 
        case Node.NOTATION_NODE: 
        case Node.DOCUMENT_FRAGMENT_NODE: 
        case Node.DOCUMENT_TYPE_NODE: 
            return null;   // type is unknown 
        case Node.ATTRIBUTE_NODE:
        {
             if ( Attr has an owner Element ) 
             { 
                 return ownerElement.lookupNamespacePrefix(namespaceURI) 
             } 
             return null; 
        } 
        default:
        { 
           if (Node has an ancestor Element )
           // EntityReferences may have to be skipped to get to it 
           { 
                    return ancestor.lookupNamespacePrefix(namespaceURI); 
           } 
            return null; 
        } 
     } 
 } 


DOMString lookupNamespacePrefix(DOMString namespaceURI, Element originalElement){ 
        if ( Element has namespace and Element's namespace == namespaceURI and 
             Element has prefix and originalElement.lookupNamespaceURI(prefix) == namespaceURI) 
        { 
             return Element's prefix; 
        } 
        if (Element has attributes) 
        { 
                if (Attr's namespaceURI == "http://www.w3.org/2000/xmlns/" 
                   Attr's prefix == "xmlns" and 
                   Attr's value == namespaceURI and 
                   originalElement.lookupNamespaceURI(Attr's localname) == namespaceURI) 
                   { 
                      return Attr's localname;
                   } 
        } 

        if (Node has an ancestor Element ) 
           // EntityReferences may have to be skipped to get to it 
        { 
            return ancestor.lookupNamespacePrefix(namespaceURI, originalElement); 
        } 
        return null; 
    } 
</eg>
</p>
      <issue id="lookupNamespacePrefixAlgo-1" status="open">
        <p>Isn't the name the opposite of what it stands for?</p>
	<resolution>
	  <p>
	    No.
	  </p>
	</resolution>
      </issue>
      <issue id="lookupNamespacePrefixAlgo-2" status="open">
        <p>How does one differentiate the case where it's the default namespace
          (prefix == null) from the case where the namespaceURI was not
          found?</p>
	<resolution>
	  <p>
	    Not applicable. The method ignores default namespace declarations. To lookup default 
            namespace use isDefaultNamespace.
	  </p>
	</resolution>
      </issue>
      <issue id="lookupNamespacePrefixAlgo-3" status="closed">
        <p>How does one specify this is for an attribute and therefore the
          default namespace is not applicable?</p>
	<resolution>
	  <p>
	    Not applicable. The default namespace declarations are ignored.
	  </p>
	</resolution>
      </issue>

  </div2>


  <div2 id="isDefaultNamespaceAlgo">
    <head>Default Namespace Lookup</head>

    <p>The following describes in pseudo code the algorithm used in the
      <code>isDefaultNamespace</code> method of the <code>Node</code>
      interface.
      <eg xml:space="preserve">
boolean isDefaultNamespace(in DOMString specifiedNamespaceURI)
{
  switch (nodeType) {
  case ELEMENT_NODE:  
     if ( Element has no prefix )
     {
          return (Element's namespaceURI == specifiedNamespaceURI)
     }
     else if ( Element has an Attr and
               Attr's namespaceURI == "http://www.w3.org/2000/xmlns/" and
               Attr's localName == "xmlns" )
     {
	  return (Attr's value == specifiedNamespaceURI)
     }

     if ( Element has an ancestor Element )
         // EntityReferences may have to be skipped to get to it
     {
          return ancestorElement.isDefaultNamespace(specifiedNamespaceURI)
     }
     else {
          return unknown (false)
     }    
  case DOCUMENT_NODE:
     return documentElement.isDefaultNamespace(specifiedNamespaceURI)
  case ENTITY_NODE:
  case NOTATION_NODE:
  case DOCUMENT_TYPE_NODE:
  case DOCUMENT_FRAGMENT_NODE:
     return unknown (false);
  case ATTRIBUTE_NODE:
     if ( Attr has an owner Element )
     {          
          return ownerElement.isDefaultNamespace(specifiedNamespaceURI)
     }
     else {
          return unknown (false)
     }    
  default:
     if ( Node has an ancestor Element )
         // EntityReferences may have to be skipped to get to it
     {          
          return ancestorElement.isDefaultNamespace(specifiedNamespaceURI)
     }
     else {
          return unknown (false)
     }    
  }
}
      </eg>
      <issue id="isDefaultNamespace-1" status="open">
        <p>What should algorithm return if the parameter - namespaceURI - is null?</p>
	<resolution>
	  <p>
            If  *null* as passed as a parameter the function returns true if
            default namespace is not available. Otherwise, if default namespace is
            available,  return false.	    
	  </p>
	</resolution>
      </issue>

    </p>
  </div2>

  <div2 id="lookupNamespaceURIAlgo">
    <head>Namespace URI Lookup</head>

    <p>The following describes in pseudo code the algorithm used in the
      <code>lookupNamespaceURI</code> method of the <code>Node</code>
      interface.
      <eg xml:space="preserve">
DOMString lookupNamespaceURI(in DOMString specifiedPrefix) 
{ 
  switch (nodeType) { 
     case ELEMENT_NODE: 
     { 
         if ( Element's namespace URI != null and Element's prefix == specifiedPrefix ) 
         { 
               // Note: prefix could be "null" in this case we are looking for default namespace 
               return Element's namespace URI 
         } 
         else if ( Element has an Attr and 
                      Attr's namespaceURI == "http://www.w3.org/2000/xmlns/")
         { 
                 if (Attr's prefix == "xmlns" and Attr's localName == specifiedPrefix ) 
                       // non default namespace
                 { 
                           return (Attr's value) 
                 } 
                 else if (speficiedPrefix == null and Attr's name == "xmlns")
                       // default namespace
                 { 
                           return (Attr's value)
                 } 
         } 
         if ( Element has an ancestor Element ) 
            // EntityReferences may have to be skipped to get to it 
         { 
                   return ancestorElement.lookupNamespaceURI(specifiedPrefix) 
         } 
         return null; 
     } 
     case DOCUMENT_NODE: 
          return documentElement.lookupNamespaceURI(specifiedPrefix) 

     case ENTITY_NODE: 
     case NOTATION_NODE: 
     case DOCUMENT_TYPE_NODE: 
     case DOCUMENT_FRAGMENT_NODE: 
           return unknown (null) 

     case ATTRIBUTE_NODE: 
         if (Attr has an owner Element) 
         { 
             return ownerElement.lookupNamespaceURI(specifiedPrefix) 
         } 
         else 
         { 
             return unknown (null) 
         } 
     default: 
         if (Node has an ancestor Element) 
          // EntityReferences may have to be skipped to get to it 
         { 
             return ancestorElement.lookupNamespaceURI(specifiedPrefix) 
         } 
         else { 
             return unknown (null) 
         } 
  } 
} 
      </eg>
      <issue id="lookupNamespaceURIAlgo-1" status="open">
        <p>How does one look for the default namespace?</p>
	<resolution>
	  <p>
	    use <code>lookupNamespaceURI(null)</code>
	  </p>
	</resolution>
      </issue>
    </p>
  </div2>

</div1>

  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF DOM I18N                                                 * 
 *************************************************************************
-->
<div1 id="i18n"> 
  <head>Accessing code point boundaries</head> 
  <orglist> 
    <member> 
      <name>Mark Davis</name> 
      <affiliation>IBM</affiliation> 
    </member> 
    <member> 
      <name>Lauren Wood</name> 
      <affiliation>SoftQuad Software Inc.</affiliation> 
    </member> 
  </orglist><?GENERATE-MINI-TOC?>
  <div2 id="i18n-introduction"> 
    <head>Introduction</head>
    <p>
      This appendix is an informative, not a normative, part of the Level 2 DOM
      specification.
    </p>

    <p>
      Characters are represented in Unicode by numbers called <i>code
      points</i> (also called <i>scalar values</i>). These numbers can range
      from 0 up to 1,114,111 = 10FFFF<sub>16</sub> (although some of these values are
      illegal). Each code point can be directly encoded with a 32-bit code unit. 
      This encoding is termed UCS-4 (or UTF-32). 
      The DOM specification, however, uses UTF-16, in which the most frequent 
      characters (which have values less than FFFF<sub>16</sub>) are represented 
      by a single 16-bit code unit, while characters above FFFF<sub>16</sub>
      use a special pair of code units called a <i>surrogate pair</i>. For more information, 
      see <bibref ref="Unicode"/> or the Unicode Web site.
    </p>

    <p>
      While indexing by code points as opposed to code units is not
      common in programs, some specifications such as XPath (and therefore XSLT
      and XPointer) use code point
      indices.  For interfacing with such formats it is recommended
      that the programming language provide string processing methods for
      converting code point indices to code unit indices and back. Some
      languages do not provide these functions natively; for these it is
      recommended that the native <code>String</code> type that is bound to
      <code>DOMString</code> be extended to enable this conversion. An example
      of how such an API might look is supplied below.
    </p>
    <note>
      <p>
	Since these methods are supplied as an illustrative example of the type
	of functionality that is required, the names of the methods,
	exceptions, and interface may differ from those given here.
      </p>
    </note>

  </div2> 
  <div2 id="i18n-methods"> 
    <head>Methods</head> 
    <definitions> 
      <interface id="i18n-methods-StringExtend" name="StringExtend">
	<descr>
	  <p>Extensions to a language's native String class or interface</p>
	</descr>
	<method id="i18n-methods-StringExtend-findOffset16" name="findOffset16">
	  <descr>
	    <p>Returns the UTF-16 offset that corresponds to a UTF-32 offset.
	      Used for random access.</p>
		<note>
		  <p>
		    You can always round-trip from a UTF-32 offset to a UTF-16
		    offset and back. You can round-trip from a UTF-16 offset to
		    a UTF-32 offset and back if and only if the offset16 is not
		    in the middle of a surrogate pair. Unmatched surrogates
		    count as a single UTF-16 value.
		  </p>
		</note>
	  </descr>
	  <parameters>
	    <param name="offset32" type="int" attr="in">
	      <descr> 
		<p>
		  UTF-32 offset. 
		</p>
	      </descr>
	    </param>
	  </parameters>
	  <returns type="int">
	    <descr>
	      <p>UTF-16 offset</p>
	    </descr>
	  </returns>
	  <raises>
	    <exception name="StringIndexOutOfBoundsException">
	      <descr>
		<p>
		  if <code>offset32</code> is out of bounds.
		</p>
	      </descr>
	    </exception>
	  </raises>
	</method>
	<method id="i18n-methods-StringExtend-findOffset32" name="findOffset32">
	  <descr>
	    <p>
	      Returns the UTF-32 offset corresponding to a UTF-16 offset. Used
	      for random access. To find the UTF-32 length of a string, use:
	      <eg xml:space="preserve">len32 = findOffset32(source, source.length());</eg>
	    </p>
	    <note>
	      <p>
		If the UTF-16 offset is into the middle of a surrogate pair,
		then the UTF-32 offset of the <emph>end</emph> of the pair is
		returned; that is, the index of the char after the end of the
		pair. You can always round-trip from a UTF-32 offset to a UTF-16
		offset and back. You can round-trip from a UTF-16 offset to a
		UTF-32 offset and back if and only if the offset16 is not in
		the middle of a surrogate pair. Unmatched surrogates count as a
		single UTF-16 value.
	      </p>
	    </note>
	  </descr>
	  <parameters>
	    <param attr="in" type="int" name="offset16">
	      <descr>
		<p>UTF-16 offset</p>
	      </descr>
	    </param>
	  </parameters>
	  <returns type="int">
	    <descr>
	      <p>UTF-32 offset</p>
	    </descr>
	  </returns>
	  <raises>
	    <exception name="StringIndexOutOfBoundsException">
	      <descr>
		<p>if offset16 is out of bounds.</p>
	      </descr>
	    </exception>
	  </raises>
	</method>
      </interface>
    </definitions> 
  </div2>
</div1>


<div1 role="idl" id="idl">
  <head>IDL Definitions</head>

  <p>This appendix contains the complete OMG IDL <bibref ref="OMGIDL"/> for
  the Level 3 Document Object Model Core definitions.</p>

  <p>The IDL files are also available as: <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="idl.zip" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2002/08/WD-DOM-Level-3-Core-20020806/idl.zip</loc></p>

    <!--
    ******************************************************
    | CORE OMG IDL DEFINITIONS                           |
    ******************************************************
    -->
      <?GENERATE-IDL Core dom w3c.org?>
</div1>

<div1 role="java-binding" id="java-binding">
  <head>Java Language Binding</head>

  <p>This appendix contains the complete Java <bibref ref="Java"/> bindings
  for the Level 3 Document Object Model Core.</p>

  <p>The Java files are also available as <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="java-binding.zip" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2002/08/WD-DOM-Level-3-Core-20020806/java-binding.zip</loc></p>

  <!--
  ******************************************************
  | CORE JAVA BINDINGS                                 |
  ******************************************************
  -->
  
<!--[ Java Bootstrap extension ]-->    
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->

<div2 id="Level-3-Java-Binding-Extension">
  <head>Java Binding Extension</head>

  <p>This section defines the <code>DOMImplementationRegistry</code> object,
    discussed in <specref ref="Bootstrap"/>, for Java.</p>
  <p>The <code>DOMImplementationRegistry</code> is first initialized by the
    application or the implementation, depending on the context, through the
    Java system property "org.w3c.dom.DOMImplementationSourceList". The value
    of this property is a space separated list of names of available classes
    implementing the <code>DOMImplementationSource</code> interface.</p>

  <source-code type="text/java" name="DOMImplementationRegistry" package="org.w3c.dom" xml:space="preserve">
/**
 * This class holds the list of registered DOMImplementations. The contents 
 * of the registry are drawn from the System Property 
 * &lt;code&gt;org.w3c.dom.DOMImplementationSourceList&lt;/code&gt;, which must contain a 
 * white-space delimited sequence of the names of classes implementing 
 * &lt;code&gt;DOMImplementationSource&lt;/code&gt;.
 * Applications may also register DOMImplementationSource
 * implementations by using a method on this class. They may then
 * query instances of the registry for implementations supporting
 * specific features.&lt;/p&gt;
 *
 * &lt;p&gt;This provides an application with an implementation-independent 
 * starting point.
 *
 * @see DOMImplementation
 * @see DOMImplementationSource
 */

package org.w3c.dom;

import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import java.lang.ClassLoader;
import java.lang.String;
import java.util.StringTokenizer;
import java.util.Enumeration;
import java.util.Hashtable;

import org.w3c.dom.DOMImplementationSource;
import org.w3c.dom.DOMImplementation;

public class DOMImplementationRegistry { 

    // The system property to specify the DOMImplementationSource class names.
    public final static String PROPERTY =
        "org.w3c.dom.DOMImplementationSourceList";

    private Hashtable sources;

    // deny construction by other classes
    private DOMImplementationRegistry() {
    }

    // deny construction by other classes
    private DOMImplementationRegistry(Hashtable srcs) {
        sources = srcs;
    }


    /* 
     * This method queries the System property
     * &lt;code&gt;org.w3c.dom.DOMImplementationSourceList&lt;/code&gt;. If it is
     * able to read and parse the property, it attempts to instantiate
     * classes according to each space-delimited substring. Any
     * exceptions it encounters are thrown to the application. An application
     * must call this method before using the class.
     * @return  an initialized instance of DOMImplementationRegistry
     */ 
    public static DOMImplementationRegistry newInstance() 		
            throws ClassNotFoundException, InstantiationException, 
            IllegalAccessException
    {
        Hashtable sources = new Hashtable();    

        // fetch system property:
        String p = System.getProperty(PROPERTY);
        if (p != null) {
            StringTokenizer st = new StringTokenizer(p);
            while (st.hasMoreTokens()) {
                String sourceName = st.nextToken();
                // Use context class loader, falling back to Class.forName
                // if and only if this fails...
                Object source = getClass(sourceName).newInstance();
                sources.put(sourceName, source);
            }
        }
        return new DOMImplementationRegistry(sources);
    }


    /**
     * Return the first registered implementation that has the desired
     * features, or null if none is found.
     *
     * @param features A string that specifies which features are required.
     *                 This is a space separated list in which each feature is
     *                 specified by its name optionally followed by a space
     *                 and a version number.
     *                 This is something like: "XML 1.0 Traversal Events 2.0"
     * @return An implementation that has the desired features, or
     *   &lt;code&gt;null&lt;/code&gt; if this source has none.
     */
    public DOMImplementation getDOMImplementation(String features)
            throws ClassNotFoundException,
            InstantiationException, IllegalAccessException, ClassCastException
    {
        Enumeration names = sources.keys();
        String name = null;
        while(names.hasMoreElements()) {
            name = (String)names.nextElement();
            DOMImplementationSource source =
                (DOMImplementationSource) sources.get(name);

            DOMImplementation impl = source.getDOMImplementation(features);
            if (impl != null) {
                return impl;
            }
        }
        return null;
    }

    /**
     * Register an implementation.
     */
    public void addSource(DOMImplementationSource s)
            throws ClassNotFoundException,
            InstantiationException, IllegalAccessException
    {
        String sourceName = s.getClass().getName(); 
        sources.put(sourceName, s);
    }

    private static Class getClass (String className)
                throws ClassNotFoundException, IllegalAccessException,
                InstantiationException {
        Method m = null;
        ClassLoader cl = null;

        try {
            m = Thread.class.getMethod("getContextClassLoader", null);
        } catch (NoSuchMethodException e) {
            // Assume that we are running JDK 1.1, use the current ClassLoader
            cl = DOMImplementationRegistry.class.getClassLoader();
        }

        if (cl == null ) {
            try {
                cl = (ClassLoader) m.invoke(Thread.currentThread(), null);
            } catch (IllegalAccessException e) {
                // assert(false)
                throw new UnknownError(e.getMessage());
            } catch (InvocationTargetException e) {
                // assert(e.getTargetException() instanceof SecurityException)
                throw new UnknownError(e.getMessage());
            }
        }
        if (cl == null) { 
            // fall back to Class.forName
            return Class.forName(className);
        }
        try { 
            return cl.loadClass(className);
        } catch (ClassNotFoundException e) {
            return Class.forName(className);
        }
    }
}
  </source-code>

  <p>With this, the first line of an application typically becomes something
    like (modulo exception handling):</p>
  <eg xml:space="preserve">
    DOMImplementation impl = DOMImplementationRegistry.getDOMImplementation("XML 1.0");
  </eg>

  <issue id="Level-3-Java-Bootstrap-1" status="closed">
    <p>Should this provides for handling more than one implementation at a
      time?</p>
    <resolution>
      <p>Yes.</p>
    </resolution>
  </issue>
  <issue id="Level-3-Java-Bootstrap-2" status="closed">
    <p>Should this be even simpler and force the implementation to provide
      this class (and not necessarily rely on any system property)?</p>
    <resolution>
      <p>No.</p>
    </resolution>
  </issue>
  <issue id="Level-3-Java-Bootstrap-3" status="open">
    <p>This requires all DOMImplementationSources to be pre-instantiated.</p>
    <resolution>
      <p>Proposed: It's ok.</p>
    </resolution>
  </issue>
  <issue id="Level-3-Java-Bootstrap-4" status="closed">
    <p>Some people may like to be able to enumerate available
      implementations.  DOMImplementation objects may be too dynamic to
      enumerate. We should explore any significant use case that cannot be
      solved by this proposal.</p>
    <resolution>
      <p>No real need. Additional features can be used to further
        differentiate implementations.</p>
    </resolution>
  </issue>
  <issue id="Level-3-Java-Bootstrap-5" status="closed">
    <p>A space-separated feature string may not be the optimal way to pass
      a feature list. It was motivated by the lack of an array construct.</p>
    <resolution>
      <p>Proposed: It's ok.</p>
    </resolution>
  </issue>
  <issue id="Level-3-Java-Bootstrap-6" status="closed">
    <p>Should "*" given as the version number be interpreted as "any
      version". hasFeature() does not allow this, it requires a specific
      version to be given.</p>
    <resolution>
      <p>No. (telcon xxxx)</p>
    </resolution>
  </issue>
</div2>


  <div2 id="JavaCoreInterfaces">
    <head>Other Core interfaces</head>
    <?GENERATE-JAVA Core org.w3c dom?>
  </div2>
</div1>
<div1 role="ecma-binding" id="ecma-binding">
  <head>ECMAScript Language Binding</head>

  <p>This appendix contains the complete ECMAScript <bibref ref="ECMAScript"/> binding for the Level 3 Document Object Model Core
  definitions.</p>

    <!--
    ******************************************************
    | CORE ECMA SCRIPT BINDINGS                         |
    ******************************************************
    -->
  
<!--[ ECMAScript Bootstrap extension ]-->    
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->

<div2 id="Level-3-ECMAScript-Binding-Extension">
  <head>ECMAScript Binding Extension</head>

  <p>This section defines the <code>DOMImplementationRegistry</code> object,
    discussed in <specref ref="Bootstrap"/>, for ECMAScript.</p>

  <glist role="ecma-block">
    <gitem>
      <label>Objects that implements the DOMImplementationRegistry
      interface</label>
      <def>
        <glist>
          <gitem>
            <label>DOMImplementationRegistry is a global variable
              which has the following functions:</label>
            <def>
              <glist>
                <gitem>
                  <label>getDOMImplementation(features)</label>
                  <def>
                    <p>This method returns the first registered object that
                    implements the <b>DOMImplementation</b> interface and
                    has the desired features, or <b>null</b> if none is
                    found.</p> <p>The <b>features</b> parameter is a
                    <b>String</b>.</p>
                  </def>
                </gitem>
                <gitem>
                  <label>sources</label>
                  <def>
                    <p>This property is an <b>Array</b>. It contains all
                    registered objects that implement the
                    <b>DOMImplementationSource</b> interface.</p>
                  </def>
                </gitem>
              </glist>
            </def>
          </gitem>
        </glist>
      </def>
    </gitem>
  </glist>

</div2>


  <div2 id="ECMAScriptCoreInterfaces">
    <head>Other Core interfaces</head>
    <?GENERATE-ECMA Core?>
  </div2>
</div1>
  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<div1 role="acknowledgements" id="contributors"> 
  <head>Acknowledgements</head> 

  <p>Many people contributed to the DOM specifications (Level 1, 2 or 3),
  including members of the DOM Working Group and the DOM Interest Group. We
  especially thank the following:</p>

  <p>
    Andrew Watson (Object Management Group), Andy Heninger (IBM), Angel
    Diaz (IBM), Arnaud Le Hors (W3C and IBM), Ashok Malhotra (IBM and
    Microsoft), Ben Chang (Oracle), Bill Smith (Sun), Bill Shea (Merrill
    Lynch), Bob Sutor (IBM), Chris Lovett (Microsoft), Chris Wilson
    (Microsoft), David Brownell (Sun), David Ezell (Hewlett Packard
    Company), David Singer (IBM), Dimitris Dimitriadis (Improve AB), Don
    Park (invited), Elena Litani (IBM), Eric Vasilik (Microsoft), Gavin
    Nicol (INSO), Ian Jacobs (W3C), James Clark (invited), James
    Davidson (Sun), Jared Sorensen (Novell), Jeroen van Rotterdam
    (X-Hive Corporation), Joe Kesselman (IBM), Joe Lapp (webMethods),
    Joe Marini (Macromedia), Johnny Stenback (Netscape/AOL), Jon
    Ferraiolo (Adobe), Jonathan Marsh (Microsoft), Jonathan Robie
    (Texcel Research and Software AG), Kim Adamson-Sharpe (SoftQuad
    Software Inc.), Lauren Wood (SoftQuad Software Inc., <emph>former
    Chair</emph>), Laurence Cable (Sun), Mark Davis (IBM), Mark Scardina
    (Oracle), Martin Dürst (W3C), Mary Brady (NIST), Mick Goulish
    (Software AG), Mike Champion (Arbortext and Software AG), Miles
    Sabin (Cromwell Media), Patti Lutsky (Arbortext), Paul Grosso
    (Arbortext), Peter Sharpe (SoftQuad Software Inc.), Phil Karlton
    (Netscape), Philippe Le Hégaret (W3C, <emph>W3C team contact
    and former Chair</emph>), Ramesh Lekshmynarayanan (Merrill Lynch),
    Ray Whitmer (iMall, Excite@Home, and Netscape/AOL,
    <emph>Chair</emph>), Rezaur Rahman (Intel), Rich Rollman
    (Microsoft), Rick Gessner (Netscape), Rick Jelliffe (invited), Rob
    Relyea (Microsoft), Scott Isaacs (Microsoft), Sharon Adler (INSO),
    Steve Byrne (JavaSoft), Tim Bray (invited), Tim Yu (Oracle), Tom
    Pixley (Netscape/AOL), Vidur Apparao (Netscape), Vinod Anupam
    (Lucent).
  </p>

  <p>
    Thanks to all those who have helped to improve this specification by
    sending suggestions and corrections (Please, keep bugging us with your
    issues!).
  </p>

  <div2 id="Productions"><head>Production Systems</head> 
    <p>
      This specification was written in XML. The HTML, OMG IDL, Java and
      ECMAScript bindings were all produced automatically.
    </p>

    <p>
      Thanks to Joe English, author of <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.flightlab.com/cost" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">cost</loc>, which was used as the
      basis for producing DOM Level 1. Thanks also to Gavin Nicol, who wrote
      the scripts which run on top of cost. Arnaud Le Hors and Philippe Le
      Hégaret maintained the scripts.
    </p>

    <p>
      After DOM Level 1, we used <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://xml.apache.org/xerces-j" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Xerces</loc> as the basis DOM
      implementation and wish to thank the authors. Philippe Le Hégaret
      and Arnaud Le Hors wrote the <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://dev.w3.org/cvsweb/java/classes/org/w3c/tools/specgenerator/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Java
      programs</loc> which are the DOM application.
    </p>

    <p>
      Thanks also to Jan Kärrman, author of <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.tdb.uu.se/~jan/html2ps.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">html2ps</loc>, which we use
      in creating the PostScript version of the specification.
    </p>

  </div2>
</div1>

  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF DOM GLOSSARY                                             *
 *************************************************************************
-->
<div1 role="glossary" id="glossary">
  <head>Glossary</head>
  <orglist role="editors">
    <member>
      <name>Arnaud Le Hors</name>
      <affiliation>W3C</affiliation>
    </member>
    <member>
      <name>Robert S. Sutor</name>
      <affiliation>IBM Research (for DOM Level 1)</affiliation>
    </member>
  </orglist>
  <p>Several of the following term definitions have been borrowed or
    modified from similar definitions in other W3C or standards documents.
    See the links within the definitions for more information.</p>
  <glist>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-16-bit-unit">16-bit unit</label>
      <def><p>The base unit of a <code>DOMString</code>. This indicates that
          indexing on a <code>DOMString</code> occurs in units of 16 bits. 
          This must not be misunderstood to mean that a <code>DOMString</code>
          can store arbitrary 16-bit units. A <code>DOMString</code> is a 
          character string encoded in UTF-16; this means that the restrictions
          of UTF-16 as well as the other relevant restrictions on character strings
          must be maintained. A single character, for example in the form of a 
          numeric character reference, may correspond to one or two 16-bit units.</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-ancestor">ancestor</label>
      <def><p>An <term>ancestor</term> node of any node A is any node
	  above A in a tree model, where "above" means "toward the root."
	</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-API">API</label>
      <def><p>An <term>API</term> is an Application Programming
	  Interface, a set of functions or methods used to access some
	  functionality.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-bubbling-phase">bubbling phase</label>
      <def>
	<p>
	  The process by which an <termref def="dt-event">event</termref> can be handled by one of the
	  <termref def="dt-event-observer">event observers</termref>
	  after being handled by the <termref def="dt-target-node">target node</termref>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-capture-phase">capture phase</label>
      <def>
	<p>
	  The process by which an <termref def="dt-event">event</termref> can be handled by one of the
	  <termref def="dt-event-observer">event observers</termref>
	  before being handled by the <termref def="dt-target-node">target node</termref>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-child">child</label>
      <def><p>A <term>child</term> is an immediate descendant node of
	  a node.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-application">client application</label>
      <def><p>A [client] application is any software that uses the
	  Document Object Model programming interfaces provided by the
	  hosting implementation to accomplish useful work. Some
	  examples of client applications are scripts within an HTML
	  or XML document.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-COM">COM</label>
      <def><p><term>COM</term> is Microsoft's Component Object Model <bibref role="informative" ref="COM"/>, a technology for building applications from binary
	    software components.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-content-model">content model</label>
      <def><p>The <term>content model</term> is a simple grammar
	  governing the allowed types of the child elements and the
	  order in which they appear. See <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#sec-element-content" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Element Content</xspecref>
	  in XML <bibref role="informative" ref="XML"/>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-context">context</label>
      <def><p>A <term>context</term> specifies an access pattern (or
	  path): a set of interfaces which give you a way to interact
	  with a model. For example, imagine a model with different
	  colored arcs connecting data nodes. A context might be a
	  sheet of colored acetate that is placed over the model
	  allowing you a partial view of the total information in the
	  model.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-convenience">convenience</label>
      <def><p>A <term>convenience method</term> is an operation on an
          object that could be accomplished by a program consisting of
          more basic operations on the object. Convenience methods are
          usually provided to make the API easier and simpler to use or to
	  allow specific programs to create more optimized implementations
	  for common operations. A similar definition holds for a
	  <term>convenience property</term>.
        </p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-cooked">cooked model</label>
      <def><p>A model for a document that represents the document
	  after it has been manipulated in some way. For example, any
	  combination of any of the following transformations would
	  create a cooked model:
	  <olist>
	    <item><p>Expansion of internal text entities.</p></item>
	    <item><p>Expansion of external entities.</p></item>
	    <item><p>Model augmentation with style-specified generated
		text.</p></item>
	    <item><p>Execution of style-specified
		reordering.</p></item>
	    <item><p>Execution of scripts.</p></item>
	  </olist> A browser might only be able to provide access to a
	  cooked model, while an editor might provide access to a
	  cooked or the initial structure model (also known as the
	  <term>uncooked model</term>) for a document. </p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-CORBA">CORBA</label>
      <def><p><term>CORBA</term> is the <term>Common Object Request Broker
	    Architecture</term> from the <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.omg.org" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">OMG</loc> <bibref role="informative" ref="CORBA"/>. This architecture is a collection of objects and
	    libraries that allow the creation of applications containing
	    objects that make and receive requests and responses in a
	    distributed environment.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-cursor">cursor</label>
      <def><p>A <term>cursor</term>is an object representation of a
	  node. It may possess information about context and the path
	  traversed to reach the node.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-datamodel">data model</label>
      <def><p>A <term>data model</term> is a collection of descriptions of data
	  structures and their contained fields, together with the operations
	  or functions that manipulate them.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-deprecation">deprecation</label>
      <def><p>When new releases of specifications are released, some older
	  features may be marked as being <term>deprecated</term>. This
	  means that new work should not use the features and that
	  although they are supported in the current release, they may
	  not be supported or available in future releases.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-descendant">descendant</label>
      <def><p>A <term>descendant</term> node of any node A is any node
	  below A in a tree model, where "below" means "away from the
	  root."</p></def>
    </gitem>

    <!-- ................................................................ -->
    <gitem>
      <label id="dt-document-element">document element</label>
      <def>
	<p>
	  There is only one document element in a <code>Document</code>. This
	  element node is a child of the <code>Document</code> node. See
	  <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#dt-root" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Well-Formed XML
	  Documents</xspecref> in XML <bibref role="informative" ref="XML"/>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-document-order">document order</label>

      <def><p>There is an ordering, <term>document order</term>, defined on all
      the nodes in the document corresponding to the order in which the first
      character of the XML representation of each node occurs in the XML
      representation of the document after expansion of general entities. Thus,
      the <termref def="dt-document-element">document element</termref> node
      will be the first node. Element nodes occur before their children. Thus,
      document order orders element nodes in order of the occurrence of their
      start-tag in the XML (after expansion of entities). The attribute nodes
      of an element occur after the element and before its children. The
      relative order of attribute nodes is implementation-dependent.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-DOM-Level-0">DOM Level 0</label>
      <def><p>The term "DOM Level 0" refers to a mix (not formally specified)
	  of HTML document functionalities offered by Netscape Navigator
	  version 3.0 and Microsoft Internet Explorer version 3.0. In some
	  cases, attributes or methods have been included for reasons of
	  backward compatibility with "DOM Level 0".</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-ECMAScript">ECMAScript</label>
      <def><p>The programming language defined by the ECMA-262 standard
	  <bibref role="informative" ref="ECMAScript"/>. As stated in the standard, the
            originating technology for ECMAScript was JavaScript <bibref role="informative" ref="JavaScript"/>. Note that in the ECMAScript binding, the word
              "property" is used in the same sense as the IDL term
              "attribute."</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-element">element</label>
      <def><p>Each document contains one or more elements, the
	  boundaries of which are either delimited by start-tags and
	  end-tags, or, for empty elements by an empty-element tag.
	  Each element has a type, identified by name, and may have a
	  set of attributes. Each attribute has a name and a value.
	  See <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#sec-logical-struct" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Logical
	    Structures</xspecref> in XML <bibref role="informative" ref="XML"/>.
	</p></def>
    </gitem>
    <gitem>
      <label id="dt-event">event</label>
      <def>
	<p>
	  An event is the representation of some asynchronous occurrence
	  (such as a mouse click on the presentation of the element, or
	  the removal of child node from an element, or any of
	  unthinkably many other possibilities) that gets associated
	  with an <termref def="dt-event-target">event target</termref>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-event-observer">event observer</label>
      <def>
	<p>
	  An <termref def="dt-ancestor">ancestor</termref> of the
	  <termref def="dt-target-node">target node</termref>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-event-target">event target</label>
      <def>
	<p>
	  The object to which an <termref def="dt-event">event</termref>
	  is targeted.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-equivalence">equivalence</label>
      <def>
	<p>Two nodes are <term>equivalent</term> if they have the same node
	  type and same node name. Also, if the nodes contain data, that must
	  be the same. Finally, if the nodes have attributes then collection
	  of attribute names must be the same and the attributes corresponding
	  by name must be equivalent as nodes.</p>

        <p>Two nodes are <term>deeply equivalent</term> if they are
	  <term>equivalent</term>, the child node lists are equivalent are
	  equivalent as <code>NodeList</code> objects, and the pairs of
	  equivalent attributes must in fact be deeply equivalent.</p>


        <p>Two <code>NodeList</code> objects are <term>equivalent</term> if they
	  have the same length,	and the nodes corresponding by index
	  are deeply equivalent. </p>

        <p>Two <code>NamedNodeMap</code> objects are <term>equivalent</term> if
	  they have the same length, they have same collection of names,
	  and the nodes corresponding by name in the maps are deeply
	  equivalent. </p>

        <p>Two <code>DocumentType</code> nodes are <term>equivalent</term> if
	  they are equivalent as nodes, have the same names, and have
	  equivalent entities and attributes <code>NamedNodeMap</code>
	  objects.</p>

      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-infoitem">information item</label>
      <def><p>An information item is an abstract representation of some
          component of an XML document. See the <bibref role="informative" ref="InfoSet"/>
            for details.
        </p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-logically-adjacent-text-nodes">logically-adjacent text nodes</label>
      <def><p>
        <term>Logically-adjacent text nodes</term> are <code>Text</code> or
        <code>CDataSection</code> nodes that may be visited sequentially in
        <termref def="dt-document-order">document order</termref> without
        entering, exiting, or passing over <code>Element</code>,
        <code>Comment</code>, or <code>ProcessingInstruction</code> nodes.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-implementation">hosting implementation</label>
      <def><p>A [hosting] implementation is a software module that
	  provides an implementation of the DOM interfaces so that a
	  client application can use them. Some examples of hosting
	  implementations are browsers, editors and document
	  repositories.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-HTML">HTML</label>
      <def><p>The HyperText Markup Language (<term>HTML</term>) is a
	  simple markup language used to create hypertext documents
	  that are portable from one platform to another. HTML
	  documents are SGML documents with generic semantics that are
	  appropriate for representing information from a wide range
	  of applications. <bibref role="informative" ref="HTML40"/></p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-IDL">IDL</label>
      <def><p>An Interface Definition Language (<term>IDL</term>) is used to
	  define the interfaces for accessing and operating upon
	  objects. Examples of IDLs are the Object Management Group's IDL
	  <bibref role="informative" ref="CORBA"/>, Microsoft's IDL <bibref role="informative" ref="MSIDL"/>, and
	      Sun's Java IDL <bibref role="informative" ref="JavaIDL"/>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-implementor">implementor</label>
      <def><p>Companies, organizations, and individuals that claim to
	  support the Document Object Model as an API for their
	  products.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-inheritance">inheritance</label>
      <def><p>In object-oriented programming, the ability to create new
	  classes (or interfaces) that contain all the methods and properties
	  of another class (or interface), plus additional methods and
	  properties. If class (or interface) D inherits from class (or
	  interface) B, then D is said to be <term>derived</term> from B. B is
	  said to be a <term>base</term> class (or interface) for D. Some
	  programming languages allow for multiple inheritance, that is,
	  inheritance from more than one class or interface.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-raw-struct">initial structure model</label>
      <def><p>Also known as the <term>raw structure model</term> or
	  the <term>uncooked model</term>, this represents the
	  document before it has been modified by entity expansions,
	  generated text, style-specified reordering, or the execution
	  of scripts. In some implementations, this might correspond
	  to the "initial parse tree" for the document, if
	  it ever exists. Note that a given implementation might not
	  be able to provide access to the initial structure model for
	  a document, though an editor probably would.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-interface">interface</label>
      <def><p>An <term>interface</term> is a declaration of a set of
          methods with no information given about their implementation.
	  In object systems that support interfaces and inheritance,
	  interfaces can usually inherit from one another.
        </p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-lang-binding">language binding</label>
      <def><p>A programming <term>language binding</term> for an IDL
	  specification is an implementation of the interfaces in the
	  specification for the given language. For example, a Java
	  language binding for the Document Object Model IDL
	  specification would implement the concrete Java classes that
	  provide the functionality exposed by the
	  interfaces.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-live">live</label>
      <def>
          <p>An object is <term>live</term> if any change to the underlying
          document structure is reflected in the object.</p></def>      
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-localname">local name</label>
      <def><p>A <term>local name</term> is the local part of a <term>qualified
	    name</term>.
	  This is called the <xtermref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#dt-localname" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">local
	    part</xtermref> in Namespaces in XML <bibref role="informative" ref="Namespaces"/>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-method">method</label>
      <def><p>A <term>method</term> is an operation or function that is
	  associated with an object and is allowed to manipulate the
	  object's data.
        </p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-model">model</label>
      <def><p>A <term>model</term> is the actual data representation
	  for the information at hand. Examples are the structural
	  model and the style model representing the parse structure
	  and the style information associated with a document. The
	  model might be a tree, or a directed graph, or something
	  else.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-namespaceprefix">namespace prefix</label>
      <def><p>A <term>namespace prefix</term> is a string that associates
	  an element or attribute name with a <term>namespace URI</term> in
	  XML. See <xtermref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#dt-prefix" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">namespace
	    prefix</xtermref> in Namespaces in XML <bibref role="informative" ref="Namespaces"/>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-namespaceURI">namespace URI</label>
      <def><p>A <term>namespace URI</term> is a URI that identifies
	  an XML namespace. This is called the <xtermref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#dt-NSName" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">namespace name</xtermref> in
	  Namespaces in XML <bibref role="informative" ref="Namespaces"/>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-object-model">object model</label>
      <def><p>An <term>object model</term>
	  is a collection of
	  descriptions of classes or interfaces,
	  together with their member data, member functions,
	  and class-static operations.
	</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-parent">parent</label>
      <def><p>A <term>parent</term> is an immediate ancestor node of a
	  node.</p></def>
    </gitem>
    <gitem>
      <label id="dt-partially-valid">partially valid</label>
      <def>
	<p>A node in a DOM tree is <term>partially valid</term> if it is
	<termref def="dt-well-formed">well formed</termref> (this part is for
	comments and processing instructions) and its immediate children are
	those expected by the content model. The node may be missing trailing
	required children yet still be considered <term>partially
	valid</term>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-qualifiedname">qualified name</label>
      <def><p>A <term>qualified name</term> is the name of an element or
	  attribute defined as the concatenation of a <term>local name</term>
	  (as defined in this specification), optionally preceded by a
	  <term>namespace prefix</term> and colon character. See <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-qualnames" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Qualified Names</xspecref> in
	  Namespaces in XML <bibref role="informative" ref="Namespaces"/>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem> 
      <label id="dt-readonly-node">read only node</label>
      <def><p>A <term>read only node</term> is a node that is immutable. This
          means its list of children, its content, and its attributes, when it
          is an element, cannot be changed in any way. However, a read only node
          can possibly be moved, when it is not itself contained in a read only
          node.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-root-node">root node</label>
      <def>
	<p>The <term>root node</term> is a node that is not a child of any
	other node. All other nodes are children or other descendants of the
	root node.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-sibling">sibling</label>
      <def><p>Two nodes are <term>siblings</term> if they have the
	  same parent node.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-string-compare">string comparison</label>
      <def><p>When string matching is required, it is to occur as
	  though the comparison was between 2 sequences of code points
	  from <bibref role="informative" ref="Unicode"/>.</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-tag-valid">tag valid document</label>
      <def><p>A document is <term>tag valid</term> if all begin and
	  end tags are properly balanced and nested.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-target-node">target node</label>
      <def>
	<p>
	  The target node is the node representing the <termref def="dt-event-target">event target</termref> to which an <termref def="dt-event">event</termref> is targeted using the DOM event
	  flow defined in <bibref ref="DOMEvents"/>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-target-phase">target phase</label>
      <def>
	<p>
	  The process by which an <termref def="dt-event">event</termref> can be handled by the <termref def="dt-event-target">event target</termref>.
	</p>
      </def>
    </gitem>
    <!-- ................................................................ -->
    <gitem><label id="dt-token">token</label><def>
        <p>An information item such as an
          <xtermref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/REC-xml.html#NT-Name" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Name</xtermref> which has been
          <termref def="dt-tokenized">tokenized</termref>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem><label id="dt-tokenized">tokenized</label><def>
        <p>The description given to various information items (for example,
          attribute values of various types, but not including the StringType
          CDATA) after having been processed by the XML processor. The process
          includes stripping leading and trailing white space, and replacing
          multiple space characters by one. See the definition of
          <xtermref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/REC-xml.html#NT-TokenizedType" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">tokenized type</xtermref>.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-type-valid">type valid document</label>
      <def><p>A document is <term>type valid</term> if it conforms to
	  an explicit DTD.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-uncooked">uncooked model</label>
      <def><p>See initial structure model.</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-well-formed">well-formed document</label>
      <def><p>A document is <term>well-formed</term> if it is tag
	  valid and entities are limited to single elements (i.e.,
	  single sub-trees).</p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-XML">XML</label>
      <def><p>Extensible Markup Language (<term>XML</term>) is an
	  extremely simple dialect of SGML which is completely
	  described in this document. The goal is to enable generic
	  SGML to be served, received, and processed on the Web in the
	  way that is now possible with HTML. XML has been designed
	  for ease of implementation and for interoperability with
	  both SGML and HTML. <bibref role="informative" ref="XML"/></p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-XML-name">XML name</label>
      <def><p>See <xspecref xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name" xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML name</xspecref> in
	  the XML specification (<bibref role="informative" ref="XML"/>).
        </p></def>
    </gitem>
    <!-- ................................................................ -->
    <gitem>
      <label id="dt-XML-namespace">XML namespace</label>
      <def><p>An <term>XML namespace</term> is a collection of names,
	  identified by a URI reference <bibref role="informative" ref="URIRef"/>, which are used
	    in XML documents as element types and attribute names. <bibref role="informative" ref="Namespaces"/></p></def>
    </gitem>
    <!-- ................................................................ -->
  </glist>
</div1>
<!--
 *************************************************************************
 * END OF DOM GLOSSARY                                                   *
 *************************************************************************
-->
 
  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF REFERENCES                                               *
 *************************************************************************
-->
<div1 role="references" id="References">
  <head>References</head>
  <p>
    For the latest version of any W3C specification please consult the list of
    <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C Technical Reports</loc> available at
    http://www.w3.org/TR.
  </p>
  
    <blist>      
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="c14n" href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" key="Canonical XML" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Canonical XML Version 1.0</titleref>, J. Boyer,
	Editor. World Wide Web Consortium, 15 March 2001. This version
	of the Canonical XML Recommendation is
	http://www.w3.org/TR/2001/REC-xml-c14n-20010315. The <loc href="http://www.w3.org/TR/xml-c14n" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of Canonical
	XML</loc> is available at http://www.w3.org/TR/xml-c14n.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="Charmod" key="CharModel" href="http://www.w3.org/TR/2002/WD-charmod-20020220" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Character Model for the World Wide Web 1.0</titleref>,
	M. D¨rst, et al., Editors. World Wide Web
	Consortium, January 2001.  This version of the Character Model
	for the World Wide Web Specification is http://www.w3.org/TR/2002/WD-charmod-20020220. The <loc href="http://www.w3.org/TR/charmod" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of Character
	Model</loc> is available at http://www.w3.org/TR/charmod.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="COM" key="COM" href="http://www.microsoft.com/com" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">The Microsoft Component Object Model</titleref>,
        Microsoft Corporation. Available at http://www.microsoft.com/com.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="CORBA" key="CORBA" href="http://www.omg.org/technology/documents/formal/corba_2.htm" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">The Common Object Request Broker: Architecture and
	Specification, version 2</titleref>. Object Management
	Group. The latest version of CORBA version  2.0 is available at
        http://www.omg.org/technology/documents/formal/corba_2.htm.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="CSS2" key="CSS2" href="http://www.w3.org/TR/1998/REC-CSS2-19980512" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Cascading Style Sheets, level 2
	Specification</titleref>, B. Bos, H. Wium Lie, C.
	Lilley, and I. Jacobs, Editors. World Wide Web Consortium, 12
	May 1998. This version of the Cascading Style Sheets
	Recommendation is http://www.w3.org/TR/1998/REC-CSS2-19980512. The <loc href="http://www.w3.org/TR/REC-CSS2" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of Cascading
	Style Sheets</loc> is available at
	http://www.w3.org/TR/REC-CSS2.
    </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM-Level-1" key="DOM Level 1" href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">DOM Level 1 Specification</titleref>, V. Apparao,
	et al., Editors. World Wide Web Consortium, 1 October 1998. This
	version of the DOM Level 1 Recommendation is http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001. The
	<loc href="http://www.w3.org/TR/REC-DOM-Level-1" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version
	of DOM Level 1</loc> is available at
	http://www.w3.org/TR/REC-DOM-Level-1.
      </bibl>
<!--
      <bibl id='DOMASLS' key='DOM Level 3 Abstract Schemas and Load and	Save'
           href='&as-ls.latest.url;'>
        <titleref>Document Object Model Level 3 Abstract Schemas and
        Load and Save Specification</titleref>, B. Chang, J.
        Stenback, J. van Rotterdam, A. Heninger, J. Kesselman,
        R. Rahman, Editors. World Wide Web Consortium, January 2002.
        This version of the DOM Level 3 Abstract Schemas and Load and
        Save Specification is &as-ls.latest.url;. The <loc
        href='http://www.w3.org/TR/DOM-Level-3-ASLS'>latest version of
        DOM Level 3 Abstract Schemas and Load and Save</loc> is
        available at http://www.w3.org/TR/DOM-Level-3-ASLS.
      </bibl>
-->
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOMAS" key="DOM Level 3 Abstract Schemas" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-AS" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">

        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 3 Abstract Schemas
        Specification</titleref>, B. Chang, E. Litani, J. Kesselman,
        R. Rahman, Editors. World Wide Web Consortium, June 2002.  This
        version of the DOM Level 3 Abstract Schemas Specification is
        http://www.w3.org/DOM/Group/drafts/DOM-Level-3-AS. The <loc href="http://www.w3.org/TR/DOM-Level-3-AS" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
        DOM Level 3 Abstract Schemas</loc> is
        available at http://www.w3.org/TR/DOM-Level-3-AS.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM2Core" key="DOM Level 2 Core" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 2 Core
	Specification</titleref>, A. Le Hors, et al., Editors. World
	Wide Web Consortium, 13 November 2000. This version of the DOM
	Level 2 Core Recommendation is http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113. The <loc href="http://www.w3.org/TR/DOM-Level-2-Core" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	DOM Level 2 Core</loc> is available at
	http://www.w3.org/TR/DOM-Level-2-Core.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOMCore" key="DOM Level 3 Core" href="http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020114" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 3 Core
        Specification</titleref>, A. Le Hors, et al., Editors. World
        Wide Web Consortium, January 2002. This version of the Document
        Object Model Level 3 Core Specification is
        http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020114. The <loc href="http://www.w3.org/TR/DOM-Level-3-Core" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
        DOM Level 3 Core</loc> is available at
        http://www.w3.org/TR/DOM-Level-3-Core.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM2Events" key="DOM Level 2 Events" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
 	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 2 Events
 	Specification</titleref>, T. Pixley, Editor. World Wide Web
 	Consortium, 13 November 2000. This version of the Document
 	Object Model Level 2 Events Recommendation is http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113.  The
 	<loc href="http://www.w3.org/TR/DOM-Level-2-Events" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
 	version of Document Object Model Level 2 Events</loc> is
 	available at http://www.w3.org/TR/DOM-Level-2-Events.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOMEvents" key="DOM Level 3 Events" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 3 Events
	Specification</titleref>, T. Pixley, Editor.  World Wide Web Consortium, February
	2002. This version of the Document Object Model Level 3 Events
	Specification is http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Events.  The <loc href="http://www.w3.org/TR/DOM-Level-3-Events" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version
	of Document Object Model Level 3 Events</loc> is available at
	http://www.w3.org/TR/DOM-Level-3-Events.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOMLS" key="DOM Level 3 Load and Save" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-LS" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">

        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 3 Load and Save
        Specification</titleref>, J.  Stenback, A. Heninger,
        Editors. World Wide Web Consortium, July 2002.  This version of
        the DOM Level 3 Load and Save Specification is
        http://www.w3.org/DOM/Group/drafts/DOM-Level-3-LS. The <loc href="http://www.w3.org/TR/DOM-Level-3-LS" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of DOM
        Level 3 Load and Save</loc> is available at
        http://www.w3.org/TR/DOM-Level-3-LS.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM2HTML" key="DOM Level 2 HTML" href="http://www.w3.org/TR/2001/WD-DOM-Level-2-HTML-20011210" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">

        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 2 HTML
        Specification</titleref>, J. Stenback, et al., Editors. World
        Wide Web Consortium, December 2001. This version of the Document
        Object Model Level 2 HTML Specification is http://www.w3.org/TR/2001/WD-DOM-Level-2-HTML-20011210.  The <loc href="http://www.w3.org/TR/DOM-Level-2-HTML" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
        Document Object Model Level 2 HTML</loc> is available at
        http://www.w3.org/TR/DOM-Level-2-HTML.

      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM-Level-3-Requirements" key="DOM Level 3 Requirements" href="http://www.w3.org/TR/2001/WD-DOM-Requirements-20010419/#Level3" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">    
       <quote>DOM Requirements for DOM Level 3</quote> in <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">DOM
       Requirements for DOM Level 3</titleref>, B. Chang, et al.,
       Editors.  World Wide Web Consortium, April 2001. This version of
       the DOM Requirements for DOM Level 3 is
       http://www.w3.org/TR/2001/WD-DOM-Requirements-20010419/#Level3.
       The <loc href="http://www.w3.org/TR/DOM-Requirements" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
       version of DOM Requirements</loc> is available at
       http://www.w3.org/TR/DOM-Requirements.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM2Style" key="DOM Level 2 Style Sheets and CSS" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
       <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 2 Style Sheets and CSS
       Specification</titleref>, C. Wilson, P. Le Hégaret,
       V. Apparao, Editors.  World Wide Web Consortium, 13 November
       2000. This version of the Document Object Model Level 2 Style
       Sheets and CSS Recommendation is http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113.  The <loc href="http://www.w3.org/TR/DOM-Level-2-Style" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
       Document Object Model Level 2 Style Sheets and CSS</loc> is
       available at http://www.w3.org/TR/DOM-Level-2-Style.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM2Traversal-Range" key="DOM Level 2 Traversal and      Range" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 2 Traversal and Range
	Specification</titleref>, J. Kesselman, J. Robie, M.
	Champion, P. Sharpe, V. Apparao, L. Wood,
	Editors. World Wide Web Consortium, 13 November 2000. This
	version of the Document Object Model Level 2 Traversal and Range
	Recommendation is http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113.  The <loc href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
	version of Document Object Model Level 2 Traversal and
	Range</loc> is available at
	http://www.w3.org/TR/DOM-Level-2-Traversal-Range.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOMVal" key="DOM Level 3 Validation" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Val" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 3 Validation
        Specification</titleref>, B. Chang, J. Kesselman, R. Rahman,
        Editors. World Wide Web Consortium, July 2002.  This version of
        the DOM Level 3 Validation Specification is
        http://www.w3.org/DOM/Group/drafts/DOM-Level-3-Val. The <loc href="http://www.w3.org/TR/DOM-Level-3-Val" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
        DOM Level 3 Validation</loc> is available at
        http://www.w3.org/TR/DOM-Level-3-Val.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOM2Views" key="DOM Level 2 Views" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 2 Views
	Specification</titleref>, A. Le Hors, L. Cable, Editors.  World Wide Web
	Consortium, 13 November 2000. This version of the Document Object
	Model Level 2 Views Recommendation is http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113.  The <loc href="http://www.w3.org/TR/DOM-Level-2-Views" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of Document Object Model Level 2
	Views</loc> is available at http://www.w3.org/TR/DOM-Level-2-Views.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="DOMXPath" key="DOM Level 3 XPath" href="http://www.w3.org/DOM/Group/drafts/DOM-Level-3-XPath" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Document Object Model Level 3 XPath
	Specification</titleref>, R. Whitmer, Editor. World Wide Web
	Consortium, February 2002. This version of the Document Object
	Model Level 3 XPath Specification is http://www.w3.org/DOM/Group/drafts/DOM-Level-3-XPath.  The
	<loc href="http://www.w3.org/TR/DOM-Level-3-XPath" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest
	version of Document Object Model Level 3 XPath</loc> is
	available at http://www.w3.org/TR/DOM-Level-3-XPath.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="ECMAScript" key="ECMAScript" href="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">ECMAScript Language Specification</titleref>, Third
	Edition.  European Computer Manufacturers Association, December
	1999.  This version of the ECMAScript Language is available at
	http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="HTML40" key="HTML 4.01" href="http://www.w3.org/TR/1998/REC-html40-19980424" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">HTML 4.01 Specification</titleref>, D. Raggett, A. Le
        Hors, and I. Jacobs, Editors. World Wide Web Consortium, 17
        December 1997, revised 24 April 1998, revised 24 December
        1999. This version of the HTML 4.01 Recommendation is
        http://www.w3.org/TR/1998/REC-html40-19980424. The <loc href="http://www.w3.org/TR/html4" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of HTML 4</loc> is
        available at http://www.w3.org/TR/html4.
      </bibl>
      
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="ISO10646" key="ISO/IEC 10646" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">ISO/IEC 10646-1993 (E). Information technology -
        Universal Multiple-Octet Coded Character Set (UCS) - Part
        1: Architecture and Basic Multilingual Plane.</titleref>
        [Geneva]: International Organization for Standardization, 1993
        (plus amendments AM 1 through AM 7).
      </bibl>
     
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="Java" key="Java" href="http://java.sun.com/docs/books/jls" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">The Java Language Specification</titleref>, J.
	Gosling, B. Joy, and G. Steele, Authors. Addison-Wesley,
	September 1996. Available at http://java.sun.com/docs/books/jls
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="JavaIDL" key="Java IDL" href="http://java.sun.com/products/jdk/1.2/docs/guide/idl" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Java IDL</titleref>. Sun Microsystems. Available at http://java.sun.com/products/jdk/1.2/docs/guide/idl
      </bibl>      
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="JavaScript" key="JavaScript" href="http://developer.netscape.com/tech/javascript/resources.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">JavaScript Resources</titleref>. Netscape
	Communications Corporation. Available at http://developer.netscape.com/tech/javascript/resources.html
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="JAXP" key="JAXP" href="http://java.sun.com/xml/xml_jaxp.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Java API for XML Processing (JAXP)</titleref>. Sun
	Microsystems. Available at http://java.sun.com/xml/xml_jaxp.html
	</bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="JScript" key="JScript" href="http://msdn.microsoft.com/scripting/default.htm" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">JScript Resources</titleref>. Microsoft. Available at
	http://msdn.microsoft.com/scripting/default.htm
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="MathML2" key="MathML 2.0" href="http://www.w3.org/TR/2001/REC-MathML2-20010221" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Mathematical Markup Language (MathML) Version
	2.0</titleref>, D. Carlisle, P. Ion, R. Miner, N. Poppelier,
	Editors. World Wide Web Consortium, 21 February 2001. This version
	of the Math 2.0 Recommendation is http://www.w3.org/TR/2001/REC-MathML2-20010221. The <loc href="http://www.w3.org/TR/MathML2" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of MathML
	2.0</loc> is available at http://www.w3.org/TR/MathML2.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="MSIDL" key="MIDL" href="http://msdn.microsoft.com/library/psdk/midl/mi-laref_1r1h.htm" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">MIDL Language
        Reference</titleref>. Microsoft. Available at http://msdn.microsoft.com/library/psdk/midl/mi-laref_1r1h.htm.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="OMGIDL" key="OMG IDL" href="http://www.omg.org/technology/documents/formal/corba_2.htm" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <quote>OMG IDL Syntax and Semantics</quote> defined in
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">The Common Object Request Broker: Architecture and
        Specification, version 2</titleref>, Object Management
        Group. The latest version of CORBA version 2.0 is available at
        http://www.omg.org/technology/documents/formal/corba_2.htm.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="URIRef" key="IETF RFC 2396" href="http://www.ietf.org/rfc/rfc2396.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Uniform Resource Identifiers (URI): Generic Syntax</titleref>, T. Berners-Lee,
	R. Fielding, L. Masinter, Authors. Internet Engineering Task Force, August 1998. Available at
	http://www.ietf.org/rfc/rfc2396.txt.
      </bibl>      
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="RFC2616" key="IETF RFC 2616" href="http://www.ietf.org/rfc/rfc2616.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Hypertext Transfer Protocol -- HTTP/1.1</titleref>,
	R. Fielding, J. Gettys, J. Mogul, H. Frystyk, L. Masinter,
	P. Leach, T. Berners-Lee, Authors. Internet Engineering Task
	Force, June 1999. Available at
	http://www.ietf.org/rfc/rfc2616.txt.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="RFC3023" key="IETF RFC 3023" href="http://www.ietf.org/rfc/rfc3023.txt" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Media Types</titleref>, M. Murata, S. St.Laurent,
	D. Kohn, Editors. Internet Engineering Task Force, January
	2001. Available at http://www.ietf.org/rfc/rfc3023.txt.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="SAX" key="SAX" href="http://www.saxproject.org/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Simple API for XML</titleref>, D. Megginson and
        D. Brownell, Maintainers. Available at
        http://www.saxproject.org/
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="SVG1" key="SVG 1.0" href="http://www.w3.org/TR/2001/REC-SVG-20010904" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Scalable Vector Graphics (SVG) 1.0
	Specification</titleref>, J. Ferraiolo, Editor. World Wide Web
	Consortium, 4 September 2001. This version of the SVG 1.0
	Recommendation is http://www.w3.org/TR/2001/REC-SVG-20010904. The <loc href="http://www.w3.org/TR/SVG" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of SVG 1.0</loc>
	is available at http://www.w3.org/TR/SVG.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="Unicode" key="Unicode 2.0" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">The Unicode Standard, Version 2.0.</titleref>. The
	Unicode Consortium, 1996. Reading, Mass.: Addison-Wesley
	Developers Press. ISBN 0-201-48345-9.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="Unicode30" key="Unicode 3.0" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">The Unicode Standard, Version 3.0.</titleref>. The
	Unicode Consortium, 2000. Reading, Mass.: Addison-Wesley
	Developers Press. ISBN 0-201-61633-5.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XHTML10" key="XHTML 1.0" href="xhtml10;" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XHTML 1.0: The Extensible HyperText Markup
        Language</titleref>, S. Pemberton, et al., Authors. World Wide
        Web Consortium, 26 January 2000, revised 1 August 2002. This
        version of the XHTML 1.0 Recommendation is http://www.w3.org/TR/2002/REC-xhtml1-20020801. The <loc href="http://www.w3.org/TR/xhtml1" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XHTML
        1.0</loc> is available at http://www.w3.org/TR/xhtml10.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XHTML11" key="XHTML 1.1" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	W3C (World Wide Web Consortium) <loc href="http://www.w3.org/TR/2001/REC-xhtml11-20010531" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">XHTML 1.1 -
	  Module-base XHTML</loc>, May 2001. Available at http://www.w3.org/TR/2001/REC-xhtml11-20010531
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XPath20DataModel" key="XQuery 1.0 and XPath 2.0 Data Model" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	W3C (World Wide Web Consortium) <loc href="http://www.w3.org/TR/query-datamodel" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">XQuery 1.0 and
	XML Path 2.0 Data Model</loc>, June 2001. Available at
	http://www.w3.org/TR/query-datamodel
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XML" key="XML 1.0" href="http://www.w3.org/TR/2000/REC-xml-20001006" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Extensible Markup Language (XML) 1.0 (Second
	Edition)</titleref>, T. Bray, J. Paoli,
	C. M. Sperberg-McQueen, and E. Maler, Editors. World Wide Web
	Consortium, 10 February 1998, revised 6 October 2000. This
	version of the XML 1.0 Recommendation is http://www.w3.org/TR/2000/REC-xml-20001006. The <loc href="http://www.w3.org/TR/REC-xml" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
	1.0</loc> is available at http://www.w3.org/TR/REC-xml.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XML11" key="XML 1.1" href="http://www.w3.org/TR/2001/WD-xml11-20011213" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML 1.1</titleref>, J. Cowan, Editor. World Wide Web
	Consortium, 13 December 2001. This version of the XML 1.1
	Specification is http://www.w3.org/TR/2001/WD-xml11-20011213. The <loc href="http://www.w3.org/TR/xml11" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
	1.1</loc> is available at http://www.w3.org/TR/xml11.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XMLBase" key="XML Base" href="http://www.w3.org/TR/2001/REC-xmlbase-20010627" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Base</titleref>, J. Marsh, Editor. World
	Wide Web Consortium, June 2001.  This version of the XML Base
	Recommendation is http://www.w3.org/TR/2001/REC-xmlbase-20010627. The <loc href="http://www.w3.org/TR/xmlbase" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
	Base</loc> is available at http://www.w3.org/TR/xmlbase.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="InfoSet" key="XML Information set" href="http://www.w3.org/TR/2001/REC-xml-infoset-20011024" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
        <titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Information Set</titleref>, J. Cowan and R.
        Tobin, Editors. World Wide Web Consortium, 24 October 2001.
        This version of the XML Information Set Recommendation is
        http://www.w3.org/TR/2001/REC-xml-infoset-20011024. The <loc href="http://www.w3.org/TR/xml-infoset" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
        Information Set</loc> is available at
        http://www.w3.org/TR/xml-infoset.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XMLEvents" key="XML Events" href="http://www.w3.org/TR/2001/WD-xml-events-20011026" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Events</titleref>, S. McCarron, S. Pemberton,
	and T.V. Raman, Editors. World Wide Web Consortium, October
	2001. This version of the XML Events specification is
	http://www.w3.org/TR/2001/WD-xml-events-20011026. The <loc href="http://www.w3.org/TR/xml-events/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
	Events</loc> is available at http://www.w3.org/TR/xml-events.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="Namespaces" key="XML Namespaces" href="http://www.w3.org/TR/1999/REC-xml-names-19990114" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">Namespaces in XML</titleref>, T. Bray, D.
	Hollander, and A. Layman, Editors. World Wide Web
	Consortium, 14 January 1999. This version of the XML
	Information Set Recommendation is http://www.w3.org/TR/1999/REC-xml-names-19990114. The <loc href="http://www.w3.org/TR/REC-xml-names" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	Namespaces in XML</loc> is available at
	http://www.w3.org/TR/REC-xml-names.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XMLSchema0" key="XML Schema Part 0" href="http://www.w3.org/TR/2001/REC-xmlschema-0-20010502" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Schema Part 0: Primer</titleref>, D. Fallside,
	Editor. World Wide Web Consortium, 2 May 2001.  This version of
	the XML Part 0 Recommendation is http://www.w3.org/TR/2001/REC-xmlschema-0-20010502. The
	<loc href="http://www.w3.org/TR/xmlschema-0/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of
	XML Schema Part 0</loc> is available at
	http://www.w3.org/TR/xmlschema-0.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XMLSchema1" key="XML Schema Part 1" href="http://www.w3.org/TR/2001/REC-xmlschema-1-20010502" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Schema Part 1: Structures</titleref>, H. Thompson,
	D. Beech, M. Maloney, and N. Mendelsohn, Editors. World Wide Web
	Consortium, 2 May 2001. This version of the XML Part 1
	Recommendation is http://www.w3.org/TR/2001/REC-xmlschema-1-20010502. The <loc href="http://www.w3.org/TR/xmlschema-1/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
	Schema Part 1</loc> is available at
	http://www.w3.org/TR/xmlschema-1.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XMLSchema2" key="XML Schema Part 2" href="http://www.w3.org/TR/2001/REC-xmlschema-2-20010502" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Schema Part 2: Datatypes</titleref>, P. Byron and
	Ashok Malhotra, Editors. World Wide Web Consortium, 2 May 2001.
	This version of the XML Part 2 Recommendation is
	http://www.w3.org/TR/2001/REC-xmlschema-2-20010502. The <loc href="http://www.w3.org/TR/xmlschema-2/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XML
	Schema Part 2</loc> is available at
	http://www.w3.org/TR/xmlschema-2.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XML-StyleSheet" key="XML StyleSheet" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	W3C (World Wide Web Consortium) <loc href="http://www.w3.org/1999/06/REC-xml-stylesheet-19990629" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Associating
	  Style Sheets with XML documents Version 1.0</loc>, June 1999. Available at
	http://www.w3.org/1999/06/REC-xml-stylesheet-19990629
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XPath10" href="http://www.w3.org/TR/1999/REC-xpath-19991116" key="XPath 1.0" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Path Language (XPath) Version 1.0</titleref>,
	J. Clark and S. DeRose, Editors. World Wide Web
	Consortium, 16 November 1999. This version of the XPath 1.0
	Recommendation is http://www.w3.org/TR/1999/REC-xpath-19991116. The <loc href="http://www.w3.org/TR/xpath " xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XPath
	1.0</loc> is available at http://www.w3.org/TR/xpath.
      </bibl>
      <bibl xmlns:xlink="http://www.w3.org/1999/xlink" id="XPointer" key="XPointer" href="http://www.w3.org/TR/2001/WD-xptr-20010911" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">
	<titleref xlink:type="simple" xlink:show="new" xlink:actuate="onRequest">XML Pointer Language (XPointer) Version 1.0</titleref>,
	S. DeRose, E. Maler, and R. Daniel Jr., Editors. World Wide Web
	Consortium, September 2001.  This version of the XPath 1.0
	Specification is http://www.w3.org/TR/2001/WD-xptr-20010911. The <loc href="http://www.w3.org/TR/xptr" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">latest version of XPointer
	1.0</loc> is available at http://www.w3.org/TR/xptr.
      </bibl>
    </blist>

</div1>
<!--
 *************************************************************************
 * END OF REFERENCES                                                     *
 *************************************************************************
-->

  
<!-- $Id: xml-source.xml,v 1.8 2002/10/22 16:57:26 plehegar Exp $ -->
<!--
 *************************************************************************
 * BEGINNING OF DOM INDEX                                                * 
 *************************************************************************
-->
<div1 role="index" id="Index">
  <head>Index</head>
  <?GENERATE-DEFINITION-INDEX?>
</div1>
<!--
 *************************************************************************
 * END OF DOM INDEX                                                      *
 *************************************************************************
-->
 
</back> </spec>