_[_W_3_C_] ************ DDooccuummeenntt OObbjjeecctt MMooddeell ((DDOOMM)) LLeevveell 33 CCoorree SSppeecciiffiiccaattiioonn ************ ********** VVeerrssiioonn 11..00 ********** ********** WW33CC RReeccoommmmeennddaattiioonn 0077 AApprriill 22000044 ********** This version: _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_T_R_/_2_0_0_4_/_R_E_C_-_D_O_M_-_L_e_v_e_l_-_3_-_C_o_r_e_-_2_0_0_4_0_4_0_7 Latest version: _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_T_R_/_D_O_M_-_L_e_v_e_l_-_3_-_C_o_r_e Previous version: _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_T_R_/_2_0_0_4_/_P_R_-_D_O_M_-_L_e_v_e_l_-_3_-_C_o_r_e_-_2_0_0_4_0_2_0_5_/ Editors: Arnaud Le Hors, IBM Philippe Le Hégaret, W3C Lauren Wood, SoftQuad, Inc. (WG Chair emerita, for DOM Level 1 and 2) Gavin Nicol, Inso EPS (for DOM Level 1) Jonathan Robie, Texcel Research and Software AG (for DOM Level 1 and 2) Mike Champion, Arbortext and Software AG (for DOM Level 1 and 2) Steve Byrne, JavaSoft (for DOM Level 1 until November 19, 1997) Please refer to the _ee_rr_rr_aa_tt_aa for this document, which may include some normative corrections. This document is also available in these non-normative formats: _X_M_L_ _f_i_l_e, _p_l_a_i_n _t_e_x_t, _P_o_s_t_S_c_r_i_p_t_ _f_i_l_e, _P_D_F_ _f_i_l_e, _s_i_n_g_l_e_ _H_T_M_L_ _f_i_l_e, and _Z_I_P_ _f_i_l_e. See also _t_r_a_n_s_l_a_t_i_o_n_s of this document. _C_o_p_y_r_i_g_h_t ©2004 _W_3_C® (_M_I_T, _E_R_C_I_M, _K_e_i_o), All Rights Reserved. W3C _l_i_a_b_i_l_i_t_y, _t_r_a_d_e_m_a_r_k, _d_o_c_u_m_e_n_t_ _u_s_e and _s_o_f_t_w_a_r_e_ _l_i_c_e_n_s_i_n_g rules apply. =============================================================================== ********** AAbbssttrraacctt ********** 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 [_D_O_M _L_e_v_e_l_ _2_ _C_o_r_e]. This version enhances DOM Level 2 Core by completing the mapping between DOM and the XML Information Set [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t], including the support for XML Base [_X_M_L_ _B_a_s_e], adding the ability to attach user information to DOM Nodes or to bootstrap a DOM implementation, providing mechanisms to resolve namespace prefixes or to manipulate "ID" attributes, giving to type information, etc. ********** SSttaattuuss ooff tthhiiss ddooccuummeenntt ********** TThhiiss sseeccttiioonn ddeessccrriibbeess tthhee ssttaattuuss ooff tthhiiss ddooccuummeenntt aatt tthhee ttiimmee ooff iittss ppuubblliiccaattiioonn.. OOtthheerr ddooccuummeennttss mmaayy ssuuppeerrsseeddee tthhiiss ddooccuummeenntt.. AA lliisstt ooff ccuurrrreenntt WW33CC ppuubblliiccaattiioonnss aanndd tthhee llaatteesstt rreevviissiioonn ooff tthhiiss tteecchhnniiccaall rreeppoorrtt ccaann bbee ffoouunndd iinn tthhee _WW_33_CC_ _tt_ee_cc_hh_nn_ii_cc_aa_ll_ _rr_ee_pp_oo_rr_tt_ss_ _ii_nn_dd_ee_xx aatt hhttttpp::////wwwwww..ww33..oorrgg//TTRR//.. This document contains the Document Object Model Level 3 Core specification and is a _W_3_C_ _R_e_c_o_m_m_e_n_d_a_t_i_o_n. It has been produced as part of the _W_3_C_ _D_O_M_ _A_c_t_i_v_i_t_y. The authors of this document are the _D_O_M_ _W_o_r_k_i_n_g_ _G_r_o_u_p participants. For more information about DOM, readers can also refer to _D_O_M_ _F_A_Q and _D_O_M_ _C_o_n_f_o_r_m_a_n_c_e _T_e_s_t_ _S_u_i_t_e_s. It is based on the feedback received during the _P_r_o_p_o_s_e_d_ _R_e_c_o_m_m_e_n_d_a_t_i_o_n period. _C_h_a_n_g_e_s_ _s_i_n_c_e_ _t_h_e_ _P_r_o_p_o_s_e_d_ _R_e_c_o_m_m_e_n_d_a_t_i_o_n_ _v_e_r_s_i_o_n and an _i_m_p_l_e_m_e_n_t_a_t_i_o_n_ _r_e_p_o_r_t are available. Please refer to the _e_r_r_a_t_a for this document, which may include some normative corrections. Comments on this document should be sent to the public mailing list _w_w_w_- _d_o_m_@_w_3_._o_r_g (_p_u_b_l_i_c_ _a_r_c_h_i_v_e). This is a stable document and has been endorsed by the W3C Membership and the participants of the DOM working group. The English version of this specification is the only normative version. See also _t_r_a_n_s_l_a_t_i_o_n_s. Patent disclosures relevant to this specification may be found on the Working Group's _p_a_t_e_n_t_ _d_i_s_c_l_o_s_u_r_e_ _p_a_g_e. This document has been produced under the _2_4 _J_a_n_u_a_r_y_ _2_0_0_2_ _C_P_P as amended by the _W_3_C_ _P_a_t_e_n_t_ _P_o_l_i_c_y_ _T_r_a_n_s_i_t_i_o_n_ _P_r_o_c_e_d_u_r_e. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) with respect to this specification should disclose the information in accordance with _s_e_c_t_i_o_n_ _6_ _o_f_ _t_h_e_ _W_3_C_ _P_a_t_e_n_t_ _P_o_l_i_c_y. ********** TTaabbllee ooff ccoonntteennttss ********** * _E_x_p_a_n_d_e_d_ _T_a_b_l_e_ _o_f_ _C_o_n_t_e_n_t_s * _W_3_C_ _C_o_p_y_r_i_g_h_t_ _N_o_t_i_c_e_s_ _a_n_d_ _L_i_c_e_n_s_e_s * _W_h_a_t_ _i_s_ _t_h_e_ _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_? * _1_._ _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _C_o_r_e * _A_p_p_e_n_d_i_x_ _A_:_ _C_h_a_n_g_e_s * _A_p_p_e_n_d_i_x_ _B_:_ _N_a_m_e_s_p_a_c_e_s_ _A_l_g_o_r_i_t_h_m_s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_d_i_x_ _D_:_ _C_o_n_f_i_g_u_r_a_t_i_o_n_ _S_e_t_t_i_n_g_s o _D_._1_ _C_o_n_f_i_g_u_r_a_t_i_o_n_ _S_c_e_n_a_r_i_o_s * _A_p_p_e_n_d_i_x_ _E_:_ _A_c_c_e_s_s_i_n_g_ _c_o_d_e_ _p_o_i_n_t_ _b_o_u_n_d_a_r_i_e_s o _E_._1_ _I_n_t_r_o_d_u_c_t_i_o_n o _E_._2_ _M_e_t_h_o_d_s * _A_p_p_e_n_d_i_x_ _F_:_ _I_D_L_ _D_e_f_i_n_i_t_i_o_n_s * _A_p_p_e_n_d_i_x_ _G_:_ _J_a_v_a_ _L_a_n_g_u_a_g_e_ _B_i_n_d_i_n_g o _G_._1_ _J_a_v_a_ _B_i_n_d_i_n_g_ _E_x_t_e_n_s_i_o_n o _G_._2_ _O_t_h_e_r_ _C_o_r_e_ _i_n_t_e_r_f_a_c_e_s * _A_p_p_e_n_d_i_x_ _H_:_ _E_C_M_A_S_c_r_i_p_t_ _L_a_n_g_u_a_g_e_ _B_i_n_d_i_n_g o _H_._1_ _E_C_M_A_S_c_r_i_p_t_ _B_i_n_d_i_n_g_ _E_x_t_e_n_s_i_o_n o _H_._2_ _O_t_h_e_r_ _C_o_r_e_ _i_n_t_e_r_f_a_c_e_s * _A_p_p_e_n_d_i_x_ _I_:_ _A_c_k_n_o_w_l_e_d_g_e_m_e_n_t_s o _I_._1_ _P_r_o_d_u_c_t_i_o_n_ _S_y_s_t_e_m_s * _G_l_o_s_s_a_r_y * _R_e_f_e_r_e_n_c_e_s o _1_ _N_o_r_m_a_t_i_v_e_ _R_e_f_e_r_e_n_c_e_s o _2_ _I_n_f_o_r_m_a_t_i_v_e_ _R_e_f_e_r_e_n_c_e_s * _I_n_d_e_x 07 April 2004 ************ WW33CC CCooppyyrriigghhtt NNoottiicceess aanndd LLiicceennsseess ************ CCooppyyrriigghhtt ©© 22000044 _WW_oo_rr_ll_dd_ _WW_ii_dd_ee_ _WW_ee_bb_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm,, ((_MM_aa_ss_ss_aa_cc_hh_uu_ss_ee_tt_tt_ss_ _II_nn_ss_tt_ii_tt_uu_tt_ee_ _oo_ff _TT_ee_cc_hh_nn_oo_ll_oo_gg_yy,, _EE_uu_rr_oo_pp_ee_aa_nn_ _RR_ee_ss_ee_aa_rr_cc_hh_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm_ _ff_oo_rr_ _II_nn_ff_oo_rr_mm_aa_tt_ii_cc_ss_ _aa_nn_dd_ _MM_aa_tt_hh_ee_mm_aa_tt_ii_cc_ss,, _KK_ee_ii_oo _UU_nn_ii_vv_ee_rr_ss_ii_tt_yy)).. AAllll RRiigghhttss RReesseerrvveedd.. This document is published under the _W_3_C_®_ _D_o_c_u_m_e_n_t_ _C_o_p_y_r_i_g_h_t_ _N_o_t_i_c_e_ _a_n_d _L_i_c_e_n_s_e. The bindings within this document are published under the _W_3_C_® _S_o_f_t_w_a_r_e_ _C_o_p_y_r_i_g_h_t_ _N_o_t_i_c_e_ _a_n_d_ _L_i_c_e_n_s_e. 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. =============================================================================== ********** WW33CC®® DDooccuummeenntt CCooppyyrriigghhtt NNoottiiccee aanndd LLiicceennssee ********** NNoottee:: This section is a copy of the W3C® Document Notice and License and could be found at _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_C_o_n_s_o_r_t_i_u_m_/_L_e_g_a_l_/_2_0_0_2_/_c_o_p_y_r_i_g_h_t_-_d_o_c_u_m_e_n_t_s_- _2_0_0_2_1_2_3_1. CCooppyyrriigghhtt ©© 22000044 _WW_oo_rr_ll_dd_ _WW_ii_dd_ee_ _WW_ee_bb_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm,, ((_MM_aa_ss_ss_aa_cc_hh_uu_ss_ee_tt_tt_ss_ _II_nn_ss_tt_ii_tt_uu_tt_ee_ _oo_ff _TT_ee_cc_hh_nn_oo_ll_oo_gg_yy,, _EE_uu_rr_oo_pp_ee_aa_nn_ _RR_ee_ss_ee_aa_rr_cc_hh_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm_ _ff_oo_rr_ _II_nn_ff_oo_rr_mm_aa_tt_ii_cc_ss_ _aa_nn_dd_ _MM_aa_tt_hh_ee_mm_aa_tt_ii_cc_ss,, _KK_ee_ii_oo _UU_nn_ii_vv_ee_rr_ss_ii_tt_yy)).. AAllll RRiigghhttss RReesseerrvveedd.. hhttttpp::////wwwwww..ww33..oorrgg//CCoonnssoorrttiiuumm//LLeeggaall//22000022//ccooppyyrriigghhtt--ddooccuummeennttss--2200002211223311 Public documents on the W3C site are provided by the copyright holders under the following license. 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: Permission to 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 AALLLL copies of the document, or portions thereof, that you use: 1. A link or URL to the original W3C document. 2. The pre-existing copyright notice of the original author, or if it doesn't exist, a notice (hypertext is preferred, but a textual representation is permitted) of the form: "Copyright © [$date-of- document] _W_o_r_l_d_ _W_i_d_e_ _W_e_b_ _C_o_n_s_o_r_t_i_u_m, (_M_a_s_s_a_c_h_u_s_e_t_t_s_ _I_n_s_t_i_t_u_t_e_ _o_f _T_e_c_h_n_o_l_o_g_y, _E_u_r_o_p_e_a_n_ _R_e_s_e_a_r_c_h_ _C_o_n_s_o_r_t_i_u_m_ _f_o_r_ _I_n_f_o_r_m_a_t_i_c_s_ _a_n_d_ _M_a_t_h_e_m_a_t_i_c_s, _K_e_i_o_ _U_n_i_v_e_r_s_i_t_y). All Rights Reserved. _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_C_o_n_s_o_r_t_i_u_m_/ _L_e_g_a_l_/_2_0_0_2_/_c_o_p_y_r_i_g_h_t_-_d_o_c_u_m_e_n_t_s_-_2_0_0_2_1_2_3_1" 3. IIff iitt eexxiissttss, the STATUS of the W3C document. When space permits, inclusion of the full text of this NNOOTTIICCEE 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. No right to create modifications or derivatives of W3C documents is granted pursuant to this license. However, if additional requirements (documented in the _C_o_p_y_r_i_g_h_t_ _F_A_Q) are satisfied, the right to create modifications or derivatives is sometimes granted by the W3C to individuals complying with those requirements. 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. 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. 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. =============================================================================== ********** WW33CC®® SSooffttwwaarree CCooppyyrriigghhtt NNoottiiccee aanndd LLiicceennssee ********** NNoottee:: This section is a copy of the W3C® Software Copyright Notice and License and could be found at _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_C_o_n_s_o_r_t_i_u_m_/_L_e_g_a_l_/_2_0_0_2_/_c_o_p_y_r_i_g_h_t_- _s_o_f_t_w_a_r_e_-_2_0_0_2_1_2_3_1 CCooppyyrriigghhtt ©© 22000044 _WW_oo_rr_ll_dd_ _WW_ii_dd_ee_ _WW_ee_bb_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm,, ((_MM_aa_ss_ss_aa_cc_hh_uu_ss_ee_tt_tt_ss_ _II_nn_ss_tt_ii_tt_uu_tt_ee_ _oo_ff _TT_ee_cc_hh_nn_oo_ll_oo_gg_yy,, _EE_uu_rr_oo_pp_ee_aa_nn_ _RR_ee_ss_ee_aa_rr_cc_hh_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm_ _ff_oo_rr_ _II_nn_ff_oo_rr_mm_aa_tt_ii_cc_ss_ _aa_nn_dd_ _MM_aa_tt_hh_ee_mm_aa_tt_ii_cc_ss,, _KK_ee_ii_oo _UU_nn_ii_vv_ee_rr_ss_ii_tt_yy)).. AAllll RRiigghhttss RReesseerrvveedd.. hhttttpp::////wwwwww..ww33..oorrgg//CCoonnssoorrttiiuumm//LLeeggaall//22000022//ccooppyyrriigghhtt--ssooffttwwaarree--2200002211223311 This work (and included software, documentation such as READMEs, 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. Permission to copy, modify, and distribute 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: 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the _W_3_C_®_ _S_h_o_r_t_ _S_o_f_t_w_a_r_e_ _N_o_t_i_c_e should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. 3. Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) 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. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. 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. ********** WW33CC®® SShhoorrtt SSooffttwwaarree NNoottiiccee ********** NNoottee:: This section is a copy of the W3C® Short Software Notice and could be found at _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_C_o_n_s_o_r_t_i_u_m_/_L_e_g_a_l_/_2_0_0_2_/_c_o_p_y_r_i_g_h_t_-_s_o_f_t_w_a_r_e_-_s_h_o_r_t_- _n_o_t_i_c_e_-_2_0_0_2_1_2_3_1 CCooppyyrriigghhtt ©© 22000044 _WW_oo_rr_ll_dd_ _WW_ii_dd_ee_ _WW_ee_bb_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm,, ((_MM_aa_ss_ss_aa_cc_hh_uu_ss_ee_tt_tt_ss_ _II_nn_ss_tt_ii_tt_uu_tt_ee_ _oo_ff _TT_ee_cc_hh_nn_oo_ll_oo_gg_yy,, _EE_uu_rr_oo_pp_ee_aa_nn_ _RR_ee_ss_ee_aa_rr_cc_hh_ _CC_oo_nn_ss_oo_rr_tt_ii_uu_mm_ _ff_oo_rr_ _II_nn_ff_oo_rr_mm_aa_tt_ii_cc_ss_ _aa_nn_dd_ _MM_aa_tt_hh_ee_mm_aa_tt_ii_cc_ss,, _KK_ee_ii_oo _UU_nn_ii_vv_ee_rr_ss_ii_tt_yy)).. AAllll RRiigghhttss RReesseerrvveedd.. Copyright © [$date-of-software] _W_o_r_l_d_ _W_i_d_e_ _W_e_b_ _C_o_n_s_o_r_t_i_u_m, (_M_a_s_s_a_c_h_u_s_e_t_t_s _I_n_s_t_i_t_u_t_e_ _o_f_ _T_e_c_h_n_o_l_o_g_y, _E_u_r_o_p_e_a_n_ _R_e_s_e_a_r_c_h_ _C_o_n_s_o_r_t_i_u_m_ _f_o_r_ _I_n_f_o_r_m_a_t_i_c_s_ _a_n_d _M_a_t_h_e_m_a_t_i_c_s, _K_e_i_o_ _U_n_i_v_e_r_s_i_t_y). All Rights Reserved. This work is distributed under the W3C® Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 07 April 2004 ************ WWhhaatt iiss tthhee DDooccuummeenntt OObbjjeecctt MMooddeell?? ************ Editors: Philippe Le Hégaret, W3C Lauren Wood, SoftQuad Software Inc. (for DOM Level 2) Jonathan Robie, Texcel (for DOM Level 1) ********** IInnttrroodduuccttiioonn ********** The Document Object Model (DOM) is an application programming interface (_A_P_I) for valid _H_T_M_L and well-formed _X_M_L 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. 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 _i_n_t_e_r_f_a_c_e_s for the XML internal and external subsets have not yet been specified. 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 _a_p_p_l_i_c_a_t_i_o_n_s. 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 [_O_M_G_ _I_D_L], as defined in the CORBA 2.3.1 specification [_C_O_R_B_A]. In addition to the OMG IDL specification, we provide _l_a_n_g_u_a_g_e_ _b_i_n_d_i_n_g_s for Java [_J_a_v_a] and ECMAScript [_E_C_M_A_S_c_r_i_p_t] (an industry-standard scripting language based on JavaScript [_J_a_v_a_S_c_r_i_p_t] and JScript [_J_S_c_r_i_p_t]). Because of language binding restrictions, a mapping has to be applied between the OMG IDL and the programming language in used. For example, while the DOM uses IDL attributes in the definition of interfaces, Java does not allow interfaces to contain attributes: // example 1: removing the first child of an element using ECMAScript mySecondTrElement.removeChild(mySecondTrElement.firstChild); // example 2: removing the first child of an element using Java mySecondTrElement.removeChild(mySecondTrElement.getFirstChild()); NNoottee:: OMG IDL is used only as a language-independent and implementation-neutral way to specify _i_n_t_e_r_f_a_c_e_s. Various other IDLs could have been used ([_C_O_M], [_J_a_v_a_ _I_D_L], [_M_I_D_L], ...). 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. ********** WWhhaatt tthhee DDooccuummeenntt OObbjjeecctt MMooddeell iiss ********** The DOM is a programming _A_P_I for documents. It is based on an object structure that closely resembles the structure of the documents it _m_o_d_e_l_s. For instance, consider this table, taken from an XHTML document:
Shady Grove Aeolian
Over the River, Charlie Dorian
A graphical representation of the DOM of the example table, with whitespaces in element content (often abusively called "ignorable whitespace") removed, is: [graphical representation of the DOM of the example table] Figure: graphical representation of the DOM of the example table [_S_V_G_ _1_._0 _v_e_r_s_i_o_n] An example of DOM manipulation using ECMAScript would be: // access the tbody element from the table element var myTbodyElement = myTableElement.firstChild; // access its second tr element // The list of children starts at 0 (and not 1). var mySecondTrElement = myTbodyElement.childNodes[1]; // remove its first td element mySecondTrElement.removeChild(mySecondTrElement.firstChild); // change the text content of the remaining td element mySecondTrElement.firstChild.firstChild.data = "Peter"; 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 iimmpplleemmeenntteedd as a tree or a 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 ssttrruuccttuurree mmooddeell 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 ssttrruuccttuurraall iissoommoorrpphhiissmm: 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 [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t]. NNoottee:: 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. The name "Document Object Model" was chosen because it is an "_o_b_j_e_c_t_ _m_o_d_e_l" 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: * the interfaces and objects used to represent and manipulate a document * the semantics of these interfaces and objects - including both behavior and attributes * the relationships and collaborations among these interfaces and objects The structure of SGML documents has traditionally been represented by an abstract _d_a_t_a_ _m_o_d_e_l, not by an object model. In an abstract _d_a_t_a_ _m_o_d_e_l, 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. ********** WWhhaatt tthhee DDooccuummeenntt OObbjjeecctt MMooddeell iiss nnoott ********** 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. * 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. * 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. * The Document Object Model is not a set of data structures; it is an _o_b_j_e_c_t_ _m_o_d_e_l 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. * 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 [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t]. The DOM is simply an _A_P_I to this information set. * The Document Object Model, despite its name, is not a competitor to the Component Object Model [_C_O_M]. 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. ********** WWhheerree tthhee DDooccuummeenntt OObbjjeecctt MMooddeell ccaammee ffrroomm ********** 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. ********** EEnnttiittiieess aanndd tthhee DDOOMM CCoorree ********** 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:

This is a dog & a cat

the "&" will be replaced by the character "&", 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 "&" would not be replaced by "&"; neither would the

be recognized as a start tag. The representation of general entities, both internal and external, are defined within the extended (XML) interfaces of _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _C_o_r_e. 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, _i_m_p_l_e_m_e_n_t_a_t_i_o_n_s 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. ********** DDOOMM AArrcchhiitteeccttuurree ********** The DOM specifications provide a set of APIs that forms the DOM API. Each DOM specification defines one or more modules and each module is associated with one feature name. For example, the DOM Core specification (this specification) defines two modules: * The Core module, which contains the fundamental interfaces that must be implemented by all DOM conformant implementations, is associated with the feature name "Core"; * The XML module, which contains the interfaces that must be implemented by all conformant XML 1.0 [_X_M_L_ _1_._0] (and higher) DOM implementations, is associated with the feature name "XML". The following representation contains all DOM modules, represented using their feature names, defined along the DOM specifications: [A view of the DOM Architecture] Figure: A view of the DOM Architecture [_S_V_G_ _1_._0_ _v_e_r_s_i_o_n] A DOM implementation can then implement one (i.e. only the Core module) or more modules depending on the host application. A Web user agent is very likely to implement the "MouseEvents" module, while a server-side application will have no use of this module and will probably not implement it. ********** CCoonnffoorrmmaannccee ********** This section explains the different levels of conformance to DOM Level 3. DOM Level 3 consists of 16 modules. It is possible to conform to DOM Level 3, or to a DOM Level 3 module. An implementation is DOM Level 3 conformant if it supports the Core module defined in this document (see _F_u_n_d_a_m_e_n_t_a_l_ _I_n_t_e_r_f_a_c_e_s_:_ _C_o_r_e_ _M_o_d_u_l_e). An implementation conforms to a DOM Level 3 module if it supports all the interfaces for that module and the associated semantics. Here is the complete list of DOM Level 3.0 modules and the features used by them. Feature names are case-insensitive. Core module defines the feature _""_CC_oo_rr_ee_"". XML module Defines the feature _""_XX_MM_LL_"". Events module defines the feature _""_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. User interface Events module defines the feature _""_UU_II_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. Mouse Events module defines the feature _""_MM_oo_uu_ss_ee_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. Text Events module defines the feature _""_TT_ee_xx_tt_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. Keyboard Events module defines the feature _""_KK_ee_yy_bb_oo_aa_rr_dd_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. Mutation Events module defines the feature _""_MM_uu_tt_aa_tt_ii_oo_nn_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. Mutation name Events module defines the feature _""_MM_uu_tt_aa_tt_ii_oo_nn_NN_aa_mm_ee_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. HTML Events module defines the feature _""_HH_TT_MM_LL_EE_vv_ee_nn_tt_ss_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s]. Load and Save module defines the feature _""_LL_SS_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e]. Asynchronous load module defines the feature _""_LL_SS_--_AA_ss_yy_nn_cc_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e]. Validation module defines the feature _""_VV_aa_ll_ii_dd_aa_tt_ii_oo_nn_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _V_a_l_i_d_a_t_i_o_n]. XPath module defines the feature _""_XX_PP_aa_tt_hh_"" in [_D_O_M_ _L_e_v_e_l_ _3_ _X_P_a_t_h]. A DOM implementation must not return true to the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._h_a_s_F_e_a_t_u_r_e _(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) _m_e_t_h_o_d of the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n interface for that feature unless the implementation conforms to that module. The version number for all features used in DOM Level 3.0 is "3.0". ********** DDOOMM IInntteerrffaacceess aanndd DDOOMM IImmpplleemmeennttaattiioonnss ********** 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, 1. 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. 2. DOM applications may provide additional interfaces and objects not found in this specification and still be considered DOM conformant. 3. 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. The Level 2 interfaces were extended to provide both Level 2 and Level 3 functionality. 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. DOM Level 3 does not specify multithreading mechanisms. 07 April 2004 ************ 11.. DDooccuummeenntt OObbjjeecctt MMooddeell CCoorree ************ Editors: Arnaud Le Hors, IBM Philippe Le Hégaret, W3C Gavin Nicol, Inso EPS (for DOM Level 1) Lauren Wood, SoftQuad, Inc. (for DOM Level 1) Mike Champion, Arbortext and Software AG (for DOM Level 1 from November 20, 1997) Steve Byrne, JavaSoft (for DOM Level 1 until November 19, 1997) ********** TTaabbllee ooff ccoonntteennttss ********** * _1_._1_ _O_v_e_r_v_i_e_w_ _o_f_ _t_h_e_ _D_O_M_ _C_o_r_e_ _I_n_t_e_r_f_a_c_e_s o _1_._1_._1_ _T_h_e_ _D_O_M_ _S_t_r_u_c_t_u_r_e_ _M_o_d_e_l o _1_._1_._2_ _M_e_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_m_e_n_t_a_t_i_o_n_L_i_s_t, _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e, _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n, _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t, _D_o_c_u_m_e_n_t, _N_o_d_e, _N_o_d_e_L_i_s_t, _N_a_m_e_d_N_o_d_e_M_a_p, _C_h_a_r_a_c_t_e_r_D_a_t_a, _A_t_t_r, _E_l_e_m_e_n_t, _T_e_x_t, _C_o_m_m_e_n_t, _T_y_p_e_I_n_f_o, _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r, _D_O_M_E_r_r_o_r, _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r, _D_O_M_L_o_c_a_t_o_r, _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n * _1_._5_ _E_x_t_e_n_d_e_d_ _I_n_t_e_r_f_a_c_e_s_:_ _X_M_L_ _M_o_d_u_l_e o _C_D_A_T_A_S_e_c_t_i_o_n, _D_o_c_u_m_e_n_t_T_y_p_e, _N_o_t_a_t_i_o_n, _E_n_t_i_t_y, _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e, _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n This specification defines a set of objects and interfaces for accessing and manipulating document objects. The functionality specified (the CCoorree functionality) is sufficient to allow software developers and Web script authors to access and manipulate parsed HTML [_H_T_M_L_ _4_._0_1] and XML [_X_M_L_ _1_._0] content inside conforming products. The DOM Core _A_P_I also allows creation and population of a _D_o_c_u_m_e_n_t object using only DOM API calls. A solution for loading a _D_o_c_u_m_e_n_t and saving it persistently is proposed in [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d _a_n_d_ _S_a_v_e]. ********** 11..11 OOvveerrvviieeww ooff tthhee DDOOMM CCoorree IInntteerrffaacceess ********** ******** 11..11..11 TThhee DDOOMM SSttrruuccttuurree MMooddeell ******** The DOM presents documents as a hierarchy of _N_o_d_e objects that also implement other, more specialized interfaces. Some types of nodes may have _c_h_i_l_d 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: * _D_o_c_u_m_e_n_t -- _E_l_e_m_e_n_t (maximum of one), _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n, _C_o_m_m_e_n_t, _D_o_c_u_m_e_n_t_T_y_p_e (maximum of one) * _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t -- _E_l_e_m_e_n_t, _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n, _C_o_m_m_e_n_t, _T_e_x_t, _C_D_A_T_A_S_e_c_t_i_o_n, _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e * _D_o_c_u_m_e_n_t_T_y_p_e -- no children * _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e -- _E_l_e_m_e_n_t, _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n, _C_o_m_m_e_n_t, _T_e_x_t, _C_D_A_T_A_S_e_c_t_i_o_n, _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e * _E_l_e_m_e_n_t -- _E_l_e_m_e_n_t, _T_e_x_t, _C_o_m_m_e_n_t, _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n, _C_D_A_T_A_S_e_c_t_i_o_n, _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e * _A_t_t_r -- _T_e_x_t, _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e * _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n -- no children * _C_o_m_m_e_n_t -- no children * _T_e_x_t -- no children * _C_D_A_T_A_S_e_c_t_i_o_n -- no children * _E_n_t_i_t_y -- _E_l_e_m_e_n_t, _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n, _C_o_m_m_e_n_t, _T_e_x_t, _C_D_A_T_A_S_e_c_t_i_o_n, _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e * _N_o_t_a_t_i_o_n -- no children The DOM also specifies a _N_o_d_e_L_i_s_t interface to handle ordered lists of _N_o_d_e_s, such as the children of a _N_o_d_e, or the _e_l_e_m_e_n_t_s returned by the _E_l_e_m_e_n_t_._g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e_N_S_(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _l_o_c_a_l_N_a_m_e_) method, and also a _N_a_m_e_d_N_o_d_e_M_a_p interface to handle unordered sets of nodes referenced by their name attribute, such as the attributes of an _E_l_e_m_e_n_t. _N_o_d_e_L_i_s_t and _N_a_m_e_d_N_o_d_e_M_a_p objects in the DOM are live; that is, changes to the underlying document structure are reflected in all relevant _N_o_d_e_L_i_s_t and _N_a_m_e_d_N_o_d_e_M_a_p objects. For example, if a DOM user gets a _N_o_d_e_L_i_s_t object containing the children of an _E_l_e_m_e_n_t, then subsequently adds more children to that _e_l_e_m_e_n_t (or removes children, or modifies them), those changes are automatically reflected in the _N_o_d_e_L_i_s_t, without further action on the user's part. Likewise, changes to a _N_o_d_e in the tree are reflected in all references to that _N_o_d_e in _N_o_d_e_L_i_s_t and _N_a_m_e_d_N_o_d_e_M_a_p objects. Finally, the interfaces _T_e_x_t, _C_o_m_m_e_n_t, and _C_D_A_T_A_S_e_c_t_i_o_n all inherit from the _C_h_a_r_a_c_t_e_r_D_a_t_a interface. ******** 11..11..22 MMeemmoorryy MMaannaaggeemmeenntt ******** Most of the APIs defined by this specification are iinntteerrffaacceess 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 ffaaccttoorryy methods that create instances of objects that implement the various interfaces. Objects implementing some interface "X" are created by a "createX()" method on the _D_o_c_u_m_e_n_t interface; this is because all DOM objects live in the context of a specific Document. 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 _E_C_M_A_S_c_r_i_p_t 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. ******** 11..11..33 NNaammiinngg CCoonnvveennttiioonnss ******** 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 [_O_M_G_ _I_D_L] and ECMAScript [_E_C_M_A_S_c_r_i_p_t] 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. 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. ******** 11..11..44 IInnhheerriittaannccee vvss.. FFllaatttteenneedd VViieewwss ooff tthhee AAPPII ******** The DOM Core _A_P_I_s present two somewhat different sets of interfaces to an XML/ HTML document: one presenting an "object oriented" approach with a hierarchy of _i_n_h_e_r_i_t_a_n_c_e, and a "simplified" view that allows all manipulation to be done via the _N_o_d_e interface without requiring casts (in Java and other C-like languages) or query interface calls in _C_O_M 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 _N_o_d_e interface. Because many other users will find the _i_n_h_e_r_i_t_a_n_c_e hierarchy easier to understand than the "everything is a _N_o_d_e" approach to the DOM, we also support the full higher-level interfaces for those who prefer a more object-oriented _A_P_I. In practice, this means that there is a certain amount of redundancy in the _A_P_I. The Working Group considers the "_i_n_h_e_r_i_t_a_n_c_e" approach the primary view of the API, and the full set of functionality on _N_o_d_e 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 _N_o_d_e interface, we don't specify a completely redundant one.) Thus, even though there is a generic _N_o_d_e_._n_o_d_e_N_a_m_e attribute on the _N_o_d_e interface, there is still a _E_l_e_m_e_n_t_._t_a_g_N_a_m_e attribute on the _E_l_e_m_e_n_t interface; these two attributes must contain the same value, but the it is worthwhile to support both, given the different constituencies the DOM _A_P_I must satisfy. ********** 11..22 BBaassiicc TTyyppeess ********** To ensure interoperability, this specification specifies the following basic types used in various DOM modules. Even though the DOM uses the basic types in the interfaces, bindings may use different types and normative bindings are only given for Java and ECMAScript in this specification. ******** 11..22..11 TThhee _DD_OO_MM_SS_tt_rr_ii_nn_gg TTyyppee ******** The _D_O_M_S_t_r_i_n_g type is used to store [_U_n_i_c_o_d_e] characters as a sequence of _1_6_- _b_i_t_ _u_n_i_t_s using UTF-16 as defined in [_U_n_i_c_o_d_e] and Amendment 1 of [_I_S_O_/_I_E_C _1_0_6_4_6]. Characters are _f_u_l_l_y_ _n_o_r_m_a_l_i_z_e_d as defined in appendix B of [_X_M_L_ _1_._1] if: * the parameter "_n_o_r_m_a_l_i_z_e_-_c_h_a_r_a_c_t_e_r_s" was set to true while loading the document or the document was certified as defined in [_X_M_L_ _1_._1]; * the parameter "_n_o_r_m_a_l_i_z_e_-_c_h_a_r_a_c_t_e_r_s" was set to true while using the method _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_), or while using the method _N_o_d_e_._n_o_r_m_a_l_i_z_e_(_); Note that, with the exceptions of _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) and _N_o_d_e_._n_o_r_m_a_l_i_z_e_(_), manipulating characters using DOM methods does not guarantee to preserve a fully-normalized text. TTyyppee DDeeffiinniittiioonn DDOOMMSSttrriinngg A _D_O_M_S_t_r_i_n_g is a sequence of _1_6_-_b_i_t_ _u_n_i_t_s. IIDDLL DDeeffiinniittiioonn valuetype _D_O_M_S_t_r_i_n_g sequence; 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 [_I_S_O_/_I_E_C_ _1_0_6_4_6]. A single numeric character reference in a source document may therefore in some cases correspond to two 16-bit units in a _D_O_M_S_t_r_i_n_g (a high surrogate and a low surrogate). For issues related to string comparisons, refer to _S_t_r_i_n_g _C_o_m_p_a_r_i_s_o_n_s_ _i_n_ _t_h_e_ _D_O_M. For Java and ECMAScript, _D_O_M_S_t_r_i_n_g is bound to the String type because both languages also use UTF-16 as their encoding. NNoottee:: As of August 2000, the OMG IDL specification ([_O_M_G_ _I_D_L]) included a wstring type. However, that definition did not meet the interoperability criteria of the DOM _A_P_I since it relied on negotiation to decide the width and encoding of a character. ******** 11..22..22 TThhee _DD_OO_MM_TT_ii_mm_ee_SS_tt_aa_mm_pp TTyyppee ******** The _D_O_M_T_i_m_e_S_t_a_m_p type is used to store an absolute or relative time. TTyyppee DDeeffiinniittiioonn DDOOMMTTiimmeeSSttaammpp A _D_O_M_T_i_m_e_S_t_a_m_p represents a number of milliseconds. IIDDLL DDeeffiinniittiioonn typedef unsigned long long _D_O_M_T_i_m_e_S_t_a_m_p; For Java, _D_O_M_T_i_m_e_S_t_a_m_p is bound to the long type. For ECMAScript, _D_O_M_T_i_m_e_S_t_a_m_p is bound to the Date type because the range of the integer type is too small. ******** 11..22..33 TThhee _DD_OO_MM_UU_ss_ee_rr_DD_aa_tt_aa TTyyppee ******** The _D_O_M_U_s_e_r_D_a_t_a type is used to store application data. TTyyppee DDeeffiinniittiioonn DDOOMMUUsseerrDDaattaa A _D_O_M_U_s_e_r_D_a_t_a represents a reference to application data. IIDDLL DDeeffiinniittiioonn typedef any _D_O_M_U_s_e_r_D_a_t_a; For Java, _D_O_M_U_s_e_r_D_a_t_a is bound to the Object type. For ECMAScript, _D_O_M_U_s_e_r_D_a_t_a is bound to any type. ******** 11..22..44 TThhee _DD_OO_MM_OO_bb_jj_ee_cc_tt TTyyppee ******** The _D_O_M_O_b_j_e_c_t type is used to represent an object. TTyyppee DDeeffiinniittiioonn DDOOMMOObbjjeecctt A _D_O_M_O_b_j_e_c_t represents an object reference. IIDDLL DDeeffiinniittiioonn typedef Object _D_O_M_O_b_j_e_c_t; For Java and ECMAScript, _D_O_M_O_b_j_e_c_t is bound to the Object type. ********** 11..33 GGeenneerraall CCoonnssiiddeerraattiioonnss ********** ******** 11..33..11 SSttrriinngg CCoommppaarriissoonnss iinn tthhee DDOOMM ******** The DOM has many interfaces that imply string matching. For XML, string comparisons are case-sensitive and performed with a binary _c_o_m_p_a_r_i_s_o_n of the _1_6_-_b_i_t_ _u_n_i_t_s of the _D_O_M_S_t_r_i_n_g_s. However, for case-insensitive markup languages, such as HTML 4.01 or earlier, these comparisons are case-insensitive where appropriate. Note that HTML processors often perform specific case normalizations (canonicalization) of the markup before the DOM structures are built. This is typically using uppercase for _e_l_e_m_e_n_t names and lowercase for attribute names. For this reason, applications should also compare element and attribute names returned by the DOM implementation in a case-insensitive manner. The character normalization, i.e. transforming into their _f_u_l_l_y_ _n_o_r_m_a_l_i_z_e_d form as as defined in [_X_M_L_ _1_._1], is assumed to happen at serialization time. The DOM Level 3 Load and Save module [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e] provides a serialization mechanism (see the DOMSerializer interface, section 2.3.1) and uses the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n parameters "_n_o_r_m_a_l_i_z_e_-_c_h_a_r_a_c_t_e_r_s" and "_c_h_e_c_k_- _c_h_a_r_a_c_t_e_r_-_n_o_r_m_a_l_i_z_a_t_i_o_n" to assure that text is _f_u_l_l_y_ _n_o_r_m_a_l_i_z_e_d [_X_M_L_ _1_._1]. Other serialization mechanisms built on top of the DOM Level 3 Core also have to assure that text is fully normalized. ******** 11..33..22 DDOOMM UURRIIss ******** The DOM specification relies on _D_O_M_S_t_r_i_n_g values as resource identifiers, such that the following conditions are met: 1. An absolute identifier absolutely identifies a resource on the Web; 2. Simple string equality establishes equality of absolute resource identifiers, and no other equivalence of resource identifiers is considered significant to the DOM specification; 3. A relative identifier is easily detected and made absolute relative to an absolute identifier; 4. Retrieval of content of a resource may be accomplished where required. The term "absolute URI" refers to a complete resource identifier and the term "relative URI" refers to an incomplete resource identifier. Within the DOM specifications, these identifiers are called URIs, "Uniform Resource Identifiers", but this is meant abstractly. The DOM implementation does not necessarily process its URIs according to the URI specification [_I_E_T_F _R_F_C_ _2_3_9_6]. Generally the particular form of these identifiers must be ignored. When is not possible to completely ignore the type of a DOM URI, either because a relative identifier must be made absolute or because content must be retrieved, the DOM implementation must at least support identifier types appropriate to the content being processed. [_H_T_M_L_ _4_._0_1], [_X_M_L_ _1_._0], and associated namespace specification [_X_M_L_ _N_a_m_e_s_p_a_c_e_s] rely on [_I_E_T_F_ _R_F_C_ _2_3_9_6] to determine permissible characters and resolving relative URIs. Other specifications such as namespaces in XML 1.1 [_X_M_L_ _N_a_m_e_s_p_a_c_e_s_ _1_._1] may rely on alternative resource identifier types that may, for example, include non-ASCII characters, necessitating support for alternative resource identifier types where required by applicable specifications. ******** 11..33..33 XXMMLL NNaammeessppaacceess ******** DOM Level 2 and 3 support XML namespaces [_X_M_L_ _N_a_m_e_s_p_a_c_e_s] by augmenting several interfaces of the DOM Level 1 Core to allow creating and manipulating _e_l_e_m_e_n_t_s and attributes associated to a namespace. When [_X_M_L_ _1_._1] is in use (see _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n), DOM Level 3 also supports [_X_M_L_ _N_a_m_e_s_p_a_c_e_s_ _1_._1]. As far as the DOM is concerned, special attributes used for declaring XML namespaces are still exposed and can be manipulated just like any other attribute. However, nodes are permanently bound to _n_a_m_e_s_p_a_c_e_ _U_R_I_s as they get created. Consequently, moving a node within a document, using the DOM, in no case results in a change of its _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x 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. 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 _c_o_m_p_a_r_e_d_ _l_i_t_e_r_a_l_l_y. 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 should use the value null as the namespaceURI parameter for methods if they wish to have no namespace. In programming languages where empty strings can be differentiated from null, empty strings, when given as a namespace URI, are converted to null. This is true even though the DOM does no lexical checking of URIs. NNoottee:: _E_l_e_m_e_n_t_._s_e_t_A_t_t_r_i_b_u_t_e_N_S_(_n_u_l_l_,_ _._._._) puts the attribute in the per-element- type partitions as defined in _XX_MM_LL_ _NN_aa_mm_ee_ss_pp_aa_cc_ee_ _PP_aa_rr_tt_ii_tt_ii_oo_nn_ss in [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. NNoottee:: In the DOM, all namespace declaration attributes are bbyy ddeeffiinniittiioonn bound to the namespace URI: "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/". These are the attributes whose _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x or _q_u_a_l_i_f_i_e_d_ _n_a_m_e is "xmlns" as introduced in [_X_M_L _N_a_m_e_s_p_a_c_e_s_ _1_._1]. In a document with no namespaces, the _c_h_i_l_d list of an _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node is always the same as that of the corresponding _E_n_t_i_t_y. This is not true in a document where an entity contains unbound _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x_e_s. In such a case, the _d_e_s_c_e_n_d_a_n_t_s of the corresponding _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes may be bound to different _n_a_m_e_s_p_a_c_e_ _U_R_I_s, depending on where the entity references are. Also, because, in the DOM, nodes always remain bound to the same namespace URI, moving such _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes can lead to documents that cannot be serialized. This is also true when the DOM Level 1 method _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_n_t_i_t_y_R_e_f_e_r_e_n_c_e_(_n_a_m_e_) is used to create entity references that correspond to such entities, since the _d_e_s_c_e_n_d_a_n_t_s of the returned _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e are unbound. While DOM Level 3 does have support for the resolution of namespace prefixes, use of such entities and entity references should be avoided or used with extreme care. The "NS" methods, such as _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_l_e_m_e_n_t_N_S_(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _q_u_a_l_i_f_i_e_d_N_a_m_e_) and _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_A_t_t_r_i_b_u_t_e_N_S_(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _q_u_a_l_i_f_i_e_d_N_a_m_e_), 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 _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_l_e_m_e_n_t _(_t_a_g_N_a_m_e_) and _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_A_t_t_r_i_b_u_t_e_(_n_a_m_e_). Elements and attributes created in this way do not have any namespace prefix, namespace URI, or local name. NNoottee:: 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 _N_o_d_e_._n_o_d_e_N_a_m_e. On the contrary, the DOM Level 2 methods related to namespaces, identify attribute nodes by their _N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I and _N_o_d_e_._l_o_c_a_l_N_a_m_e. Because of this fundamental difference, mixing both sets of methods can lead to unpredictable results. In particular, using _E_l_e_m_e_n_t_._s_e_t_A_t_t_r_i_b_u_t_e_N_S_(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _q_u_a_l_i_f_i_e_d_N_a_m_e_,_ _v_a_l_u_e_), an _e_l_e_m_e_n_t may have two attributes (or more) that have the same _N_o_d_e_._n_o_d_e_N_a_m_e, but different _N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_Is. Calling _E_l_e_m_e_n_t_._g_e_t_A_t_t_r_i_b_u_t_e_(_n_a_m_e_) with that nodeName could then return any of those attributes. The result depends on the implementation. Similarly, using _E_l_e_m_e_n_t_._s_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e_(_n_e_w_A_t_t_r_), one can set two attributes (or more) that have different _N_o_d_e_._n_o_d_e_N_a_m_es but the same _N_o_d_e_._p_r_e_f_i_x and _N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I. In this case _E_l_e_m_e_n_t_._g_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e_N_S _(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _l_o_c_a_l_N_a_m_e_) 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 nodeName 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, _E_l_e_m_e_n_t_._s_e_t_A_t_t_r_i_b_u_t_e_(_n_a_m_e_,_ _v_a_l_u_e_) and _E_l_e_m_e_n_t_._s_e_t_A_t_t_r_i_b_u_t_e_N_S _(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _q_u_a_l_i_f_i_e_d_N_a_m_e_,_ _v_a_l_u_e_) affect the node that _E_l_e_m_e_n_t_._g_e_t_A_t_t_r_i_b_u_t_e _(_n_a_m_e_) and _E_l_e_m_e_n_t_._g_e_t_A_t_t_r_i_b_u_t_e_N_S_(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _l_o_c_a_l_N_a_m_e_), respectively, return. ******** 11..33..44 BBaassee UURRIIss ******** The DOM Level 3 adds support for the [[bbaassee UURRII]] property defined in [_X_M_L _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t] by providing a new attribute on the _N_o_d_e interface that exposes this information. However, unlike the _N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I attribute, the _N_o_d_e_._b_a_s_e_U_R_I attribute is not a static piece of information that every node carries. Instead, it is a value that is dynamically computed according to [_X_M_L _B_a_s_e]. 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. One consequence of this it that when external entity references are expanded while building a _D_o_c_u_m_e_n_t one may need to add, or change, an xml:base attribute to the _E_l_e_m_e_n_t nodes originally contained in the entity being expanded so that the _N_o_d_e_._b_a_s_e_U_R_I returns the correct value. In the case of _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n nodes originally contained in the entity being expanded the information is lost. [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e] handles elements as described here and generates a warning in the latter case. ******** 11..33..55 MMiixxeedd DDOOMM IImmpplleemmeennttaattiioonnss ******** 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 by their users. For example, the MathML [_M_a_t_h_M_L_ _2_._0] and SVG [_S_V_G_ _1_._1] specifications have developed 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. While the Namespaces in XML specification [_X_M_L_ _N_a_m_e_s_p_a_c_e_s] provides a mechanism for integrating these documents at the syntax level, it has become clear that the DOM Level 2 Recommendation [_D_O_M_ _L_e_v_e_l_ _2_ _C_o_r_e] 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. 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. 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 _D_o_c_u_m_e_n_t 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 _D_o_c_u_m_e_n_t object, since there can only be one owner and root of the document hierarchy. ******** 11..33..66 DDOOMM FFeeaattuurreess ******** Each DOM module defines one or more features, as listed in the conformance section (_C_o_n_f_o_r_m_a_n_c_e). Features are case-insensitive and are also defined for a specific set of versions. For example, this specification defines the features "Core" and "XML", for the version "3.0". Versions "1.0" and "2.0" can also be used for features defined in the corresponding DOM Levels. To avoid possible conflicts, as a convention, names referring to features defined outside the DOM specification should be made unique. Applications could then request for features to be supported by a DOM implementation using the methods _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e_._g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_(_f_e_a_t_u_r_e_s_) or _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e_._g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t_(_f_e_a_t_u_r_e_s_), check the features supported by a DOM implementation using the method _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._h_a_s_F_e_a_t_u_r_e _(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_), or by a specific node using _N_o_d_e_._i_s_S_u_p_p_o_r_t_e_d_(_f_e_a_t_u_r_e_, _v_e_r_s_i_o_n_). Note that when using the methods that take a feature and a version as parameters, applications can use null or empty string for the version parameter if they don't wish to specify a particular version for the specified feature. Up to the DOM Level 2 modules, all interfaces, that were an extension of existing ones, were accessible using binding-specific casting mechanisms if the feature associated to the extension was supported. For example, an instance of the EventTarget interface could be obtained from an instance of the _N_o_d_e interface if the feature "Events" was supported by the node. As discussed _M_i_x_e_d_ _D_O_M_ _I_m_p_l_e_m_e_n_t_a_t_i_o_n_s, DOM Level 3 Core should be able to collaborate with subcomponents implementing specific DOMs. For that effect, the methods _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._g_e_t_F_e_a_t_u_r_e_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) and _N_o_d_e_._g_e_t_F_e_a_t_u_r_e _(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) were introduced. In the case of _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._h_a_s_F_e_a_t_u_r_e _(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) and _N_o_d_e_._i_s_S_u_p_p_o_r_t_e_d_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_), if a plus sign "+" is prepended to any feature name, implementations are considered in which the specified feature may not be directly castable but would require discovery through _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._g_e_t_F_e_a_t_u_r_e_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) and _N_o_d_e_._g_e_t_F_e_a_t_u_r_e _(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_). Without a plus, only features whose interfaces are directly castable are considered. // example 1, without prepending the "+" if (myNode.isSupported("Events", "3.0")) { EventTarget evt = (EventTarget) myNode; // ... } // example 2, with the "+" if (myNode.isSupported("+Events", "3.0")) { // (the plus sign "+" is irrelevant for the getFeature method itself // and is ignored by this method anyway) EventTarget evt = (EventTarget) myNode.getFeature("Events", "3.0"); // ... } ******** 11..33..77 BBoooottssttrraappppiinngg ******** 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. To solve these problems this specification introduces a DOMImplementationRegistry object with a function that lets an application find implementations, 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 _J_a_v_a_ _L_a_n_g_u_a_g_e_ _B_i_n_d_i_n_g and _E_C_M_A_S_c_r_i_p_t _L_a_n_g_u_a_g_e_ _B_i_n_d_i_n_g for specifics. In all cases, though, the DOMImplementationRegistry provides a getDOMImplementation method accepting a features string, which is passed to every known _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e until a suitable _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n is found and returned. The DOMImplementationRegistry also provides a getDOMImplementationList method accepting a features string, which is passed to every known _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e, and returns a list of suitable _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_s. Those two methods are the same as the ones found on the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e interface. Any number of _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e objects can be registered. A source may return one or more _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n singletons or construct new _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n objects, depending upon whether the requested features require specialized state in the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n object. ********** 11..44 FFuunnddaammeennttaall IInntteerrffaacceess:: CCoorree MMoodduullee ********** The interfaces within this section are considered ffuunnddaammeennttaall, and must be fully implemented by all conforming implementations of the DOM, including all HTML DOM implementations [_D_O_M_ _L_e_v_e_l_ _2_ _H_T_M_L], unless otherwise specified. A DOM application may use the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._h_a_s_F_e_a_t_u_r_e_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) method 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 _cc_oo_nn_ff_oo_rr_mm_aa_nn_cc_ee in this specification. The DOM Level 3 Core module is backward compatible with the DOM Level 2 Core [_D_O_M_ _L_e_v_e_l_ _2_ _C_o_r_e] module, i.e. a DOM Level 3 Core implementation who returns true for "Core" with the version number "3.0" must also return true for this feature when the version number is "2.0", "" or, null. EExxcceeppttiioonn DDOOMMEExxcceeppttiioonn 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 _N_o_d_e_L_i_s_t. Implementations should raise other exceptions under other circumstances. For example, implementations should raise an implementation-dependent exception if a null argument is passed when null was not expected. 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. IIDDLL DDeeffiinniittiioonn exception _D_O_M_E_x_c_e_p_t_i_o_n { unsigned short code; }; // ExceptionCode const unsigned short _I_N_D_E_X___S_I_Z_E___E_R_R = 1; const unsigned short _D_O_M_S_T_R_I_N_G___S_I_Z_E___E_R_R = 2; const unsigned short _H_I_E_R_A_R_C_H_Y___R_E_Q_U_E_S_T___E_R_R = 3; const unsigned short _W_R_O_N_G___D_O_C_U_M_E_N_T___E_R_R = 4; const unsigned short _I_N_V_A_L_I_D___C_H_A_R_A_C_T_E_R___E_R_R = 5; const unsigned short _N_O___D_A_T_A___A_L_L_O_W_E_D___E_R_R = 6; const unsigned short _N_O___M_O_D_I_F_I_C_A_T_I_O_N___A_L_L_O_W_E_D___E_R_R = 7; const unsigned short _N_O_T___F_O_U_N_D___E_R_R = 8; const unsigned short _N_O_T___S_U_P_P_O_R_T_E_D___E_R_R = 9; const unsigned short _I_N_U_S_E___A_T_T_R_I_B_U_T_E___E_R_R = 10; // Introduced in DOM Level 2: const unsigned short _I_N_V_A_L_I_D___S_T_A_T_E___E_R_R = 11; // Introduced in DOM Level 2: const unsigned short _S_Y_N_T_A_X___E_R_R = 12; // Introduced in DOM Level 2: const unsigned short _I_N_V_A_L_I_D___M_O_D_I_F_I_C_A_T_I_O_N___E_R_R = 13; // Introduced in DOM Level 2: const unsigned short _N_A_M_E_S_P_A_C_E___E_R_R = 14; // Introduced in DOM Level 2: const unsigned short _I_N_V_A_L_I_D___A_C_C_E_S_S___E_R_R = 15; // Introduced in DOM Level 3: const unsigned short _V_A_L_I_D_A_T_I_O_N___E_R_R = 16; // Introduced in DOM Level 3: const unsigned short _T_Y_P_E___M_I_S_M_A_T_C_H___E_R_R = 17; DDeeffiinniittiioonn ggrroouupp EExxcceeppttiioonnCCooddee An integer indicating the type of error generated. NNoottee:: Other numeric codes are reserved for W3C for possible future use. DDeeffiinneedd CCoonnssttaannttss DOMSTRING_SIZE_ERR If the specified range of text does not fit into a _D_O_M_S_t_r_i_n_g. HIERARCHY_REQUEST_ERR If any _N_o_d_e is inserted somewhere it doesn't belong. INDEX_SIZE_ERR If index or size is negative, or greater than the allowed value. INUSE_ATTRIBUTE_ERR If an attempt is made to add an attribute that is already in use elsewhere. INVALID_ACCESS_ERR, introduced in DDOOMM LLeevveell 22. If a parameter or an operation is not supported by the underlying object. INVALID_CHARACTER_ERR If an invalid or illegal character is specified, such as in an XML name. INVALID_MODIFICATION_ERR, introduced in DDOOMM LLeevveell 22. If an attempt is made to modify the type of the underlying object. INVALID_STATE_ERR, introduced in DDOOMM LLeevveell 22. If an attempt is made to use an object that is not, or is no longer, usable. NAMESPACE_ERR, introduced in DDOOMM LLeevveell 22. If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces. NOT_FOUND_ERR If an attempt is made to reference a _N_o_d_e in a context where it does not exist. NOT_SUPPORTED_ERR If the implementation does not support the requested type of object or operation. NO_DATA_ALLOWED_ERR If data is specified for a _N_o_d_e which does not support data. NO_MODIFICATION_ALLOWED_ERR If an attempt is made to modify an object where modifications are not allowed. SYNTAX_ERR, introduced in DDOOMM LLeevveell 22. If an invalid or illegal string is specified. TYPE_MISMATCH_ERR, introduced in DDOOMM LLeevveell 33. If the type of an object is incompatible with the expected type of the parameter associated to the object. VALIDATION_ERR, introduced in DDOOMM LLeevveell 33. If a call to a method such as insertBefore or removeChild would make the _N_o_d_e invalid with respect to _"_p_a_r_t_i_a_l_ _v_a_l_i_d_i_t_y_", this exception would be raised and the operation would not be done. This code is used in [_D_O_M_ _L_e_v_e_l_ _3_ _V_a_l_i_d_a_t_i_o_n]. Refer to this specification for further information. WRONG_DOCUMENT_ERR If a _N_o_d_e is used in a different document than the one that created it (that doesn't support it). IInntteerrffaaccee DDOOMMSSttrriinnggLLiisstt (introduced in DDOOMM LLeevveell 33) The DOMStringList interface provides the abstraction of an ordered collection of _D_O_M_S_t_r_i_n_g values, without defining or constraining how this collection is implemented. The items in the DOMStringList are accessible via an integral index, starting from 0. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_S_t_r_i_n_g_L_i_s_t { _D_O_M_S_t_r_i_n_g _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; boolean _c_o_n_t_a_i_n_s(in _D_O_M_S_t_r_i_n_g str); }; AAttttrriibbuutteess length of type unsigned long, readonly The number of _D_O_M_S_t_r_i_n_gs in the list. The range of valid child node indices is 0 to length-1 inclusive. MMeetthhooddss contains Test if a string is part of this DOMStringList. PPaarraammeetteerrss str of type _D_O_M_S_t_r_i_n_g The string to look for. RReettuurrnn VVaalluuee boolean true if the string has been found, false otherwise. NNoo EExxcceeppttiioonnss item Returns the indexth item in the collection. If index is greater than or equal to the number of _D_O_M_S_t_r_i_n_gs in the list, this returns null. PPaarraammeetteerrss index of type unsigned long Index into the collection. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g The _D_O_M_S_t_r_i_n_g at the indexth position in the DOMStringList, or null if that is not a valid index. NNoo EExxcceeppttiioonnss IInntteerrffaaccee NNaammeeLLiisstt (introduced in DDOOMM LLeevveell 33) The NameList interface provides the abstraction of an ordered collection of parallel pairs of name and namespace values (which could be null values), without defining or constraining how this collection is implemented. The items in the NameList are accessible via an integral index, starting from 0. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _N_a_m_e_L_i_s_t { _D_O_M_S_t_r_i_n_g _g_e_t_N_a_m_e(in unsigned long index); _D_O_M_S_t_r_i_n_g _g_e_t_N_a_m_e_s_p_a_c_e_U_R_I(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; boolean _c_o_n_t_a_i_n_s(in _D_O_M_S_t_r_i_n_g str); boolean _c_o_n_t_a_i_n_s_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g name); }; AAttttrriibbuutteess length of type unsigned long, readonly The number of pairs (name and namespaceURI) in the list. The range of valid child node indices is 0 to length-1 inclusive. MMeetthhooddss contains Test if a name is part of this NameList. PPaarraammeetteerrss str of type _D_O_M_S_t_r_i_n_g The name to look for. RReettuurrnn VVaalluuee boolean true if the name has been found, false otherwise. NNoo EExxcceeppttiioonnss containsNS Test if the pair namespaceURI/name is part of this NameList. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The namespace URI to look for. name of type _D_O_M_S_t_r_i_n_g The name to look for. RReettuurrnn VVaalluuee boolean true if the pair namespaceURI/name has been found, false otherwise. NNoo EExxcceeppttiioonnss getName Returns the indexth name item in the collection. PPaarraammeetteerrss index of type unsigned long Index into the collection. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g The name at the indexth position in the NameList, or null if there is no name for the specified index or if the index is out of range. NNoo EExxcceeppttiioonnss getNamespaceURI Returns the indexth namespaceURI item in the collection. PPaarraammeetteerrss index of type unsigned long Index into the collection. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g The namespace URI at the indexth position in the NameList, or null if there is no name for the specified index or if the index is out of range. NNoo EExxcceeppttiioonnss IInntteerrffaaccee DDOOMMIImmpplleemmeennttaattiioonnLLiisstt (introduced in DDOOMM LLeevveell 33) The DOMImplementationList interface provides the abstraction of an ordered collection of DOM implementations, without defining or constraining how this collection is implemented. The items in the DOMImplementationList are accessible via an integral index, starting from 0. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t { _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; }; AAttttrriibbuutteess length of type unsigned long, readonly The number of _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_ns in the list. The range of valid child node indices is 0 to length-1 inclusive. MMeetthhooddss item Returns the indexth item in the collection. If index is greater than or equal to the number of _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_ns in the list, this returns null. PPaarraammeetteerrss index of type unsigned long Index into the collection. RReettuurrnn VVaalluuee _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n The _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n at the indexth position in the DOMImplementationList, or null if that is not a valid index. NNoo EExxcceeppttiioonnss IInntteerrffaaccee DDOOMMIImmpplleemmeennttaattiioonnSSoouurrccee (introduced in DDOOMM LLeevveell 33) This interface permits a DOM implementer to supply one or more implementations, based upon requested features and versions, as specified in _D_O_M_ _F_e_a_t_u_r_e_s. Each implemented DOMImplementationSource object is listed in the binding-specific list of available sources so that its _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n objects are made available. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e { _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n _g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n(in _D_O_M_S_t_r_i_n_g features); _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t _g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t(in _D_O_M_S_t_r_i_n_g features); }; MMeetthhooddss getDOMImplementation A method to request the first DOM implementation that supports the specified features. PPaarraammeetteerrss features of type _D_O_M_S_t_r_i_n_g A string that specifies which features and versions 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 method returns the first item of the list returned by getDOMImplementationList. As an example, the string "XML 3.0 Traversal +Events 2.0" will request a DOM implementation that supports the module "XML" for its 3.0 version, a module that support of the "Traversal" module for any version, and the module "Events" for its 2.0 version. The module "Events" must be accessible using the method _N_o_d_e_._g_e_t_F_e_a_t_u_r_e_(_) and _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._g_e_t_F_e_a_t_u_r_e_(_). RReettuurrnn VVaalluuee _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n The first DOM implementation that support the desired features, or null if this source has none. NNoo EExxcceeppttiioonnss getDOMImplementationList A method to request a list of DOM implementations that support the specified features and versions, as specified in _D_O_M_ _F_e_a_t_u_r_e_s. PPaarraammeetteerrss features of type _D_O_M_S_t_r_i_n_g A string that specifies which features and versions 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 3.0 Traversal +Events 2.0" RReettuurrnn VVaalluuee _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t A list of DOM implementations that support the desired features. NNoo EExxcceeppttiioonnss IInntteerrffaaccee DDOOMMIImmpplleemmeennttaattiioonn The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. IIDDLL DDeeffiinniittiioonn interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n { boolean _h_a_s_F_e_a_t_u_r_e(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); // Introduced in DOM Level 2: _D_o_c_u_m_e_n_t_T_y_p_e _c_r_e_a_t_e_D_o_c_u_m_e_n_t_T_y_p_e(in _D_O_M_S_t_r_i_n_g qualifiedName, in _D_O_M_S_t_r_i_n_g publicId, in _D_O_M_S_t_r_i_n_g systemId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _D_o_c_u_m_e_n_t _c_r_e_a_t_e_D_o_c_u_m_e_n_t(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName, in _D_o_c_u_m_e_n_t_T_y_p_e doctype) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: _D_O_M_O_b_j_e_c_t _g_e_t_F_e_a_t_u_r_e(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); }; MMeetthhooddss createDocument introduced in DDOOMM LLeevveell 22 Creates a DOM Document object of the specified type with its document element. Note that based on the _D_o_c_u_m_e_n_t_T_y_p_e given to create the document, the implementation may instantiate specialized _D_o_c_u_m_e_n_t objects that support additional features than the "Core", such as "HTML" [_D_O_M_ _L_e_v_e_l_ _2_ _H_T_M_L]. On the other hand, setting the _D_o_c_u_m_e_n_t_T_y_p_e after the document was created makes this very unlikely to happen. Alternatively, specialized _D_o_c_u_m_e_n_t creation methods, such as createHTMLDocument [_D_O_M _L_e_v_e_l_ _2_ _H_T_M_L], can be used to obtain specific types of _D_o_c_u_m_e_n_t objects. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the document element to create or null. qualifiedName of type _D_O_M_S_t_r_i_n_g The _q_u_a_l_i_f_i_e_d_ _n_a_m_e of the document element to be created or null. doctype of type _D_o_c_u_m_e_n_t_T_y_p_e The type of document to be created or null. When doctype is not null, its _N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t attribute is set to the document being created. RReettuurrnn VVaalluuee _D_o_c_u_m_e_n_t A new _D_o_c_u_m_e_n_t object with its document element. If the NamespaceURI, qualifiedName, and doctype are null, the returned _D_o_c_u_m_e_n_t is empty with no document element. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified qualified name is not an XML name according to [_X_M_L_ _1_._0]. NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName is null and the namespaceURI is different from null, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_X_M_L_/_1_9_9_8_/ _n_a_m_e_s_p_a_c_e" [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], or if the DOM implementation does not support the "XML" feature but a non-null namespace URI was provided, since namespaces were defined by XML. WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or was created from a different implementation. NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). createDocumentType introduced in DDOOMM LLeevveell 22 Creates an empty _D_o_c_u_m_e_n_t_T_y_p_e node. Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur.. PPaarraammeetteerrss qualifiedName of type _D_O_M_S_t_r_i_n_g The _q_u_a_l_i_f_i_e_d_ _n_a_m_e of the document type to be created. publicId of type _D_O_M_S_t_r_i_n_g The external subset public identifier. systemId of type _D_O_M_S_t_r_i_n_g The external subset system identifier. RReettuurrnn VVaalluuee _D_o_c_u_m_e_n_t_T_y_p_e A new _D_o_c_u_m_e_n_t_T_y_p_e node with _N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t set to null. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified qualified name is not an XML name according to [_X_M_L_ _1_._0]. NAMESPACE_ERR: Raised if the qualifiedName is malformed. NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). getFeature introduced in DDOOMM LLeevveell 33 This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in _D_O_M_ _F_e_a_t_u_r_e_s. The specialized object may also be obtained by using binding-specific casting methods but is not necessarily expected to, as discussed in _M_i_x_e_d_ _D_O_M _I_m_p_l_e_m_e_n_t_a_t_i_o_n_s. This method also allow the implementation to provide specialized objects which do not support the DOMImplementation interface. PPaarraammeetteerrss feature of type _D_O_M_S_t_r_i_n_g The name of the feature requested. Note that any plus sign "+" prepended to the name of the feature will be ignored since it is not significant in the context of this method. version of type _D_O_M_S_t_r_i_n_g This is the version number of the feature to test. RReettuurrnn VVaalluuee _D_O_M_O_b_j_e_c_t Returns an object which implements the specialized APIs of the specified feature and version, if any, or null if there is no object which implements interfaces associated with that feature. If the _D_O_M_O_b_j_e_c_t returned by this method implements the DOMImplementation interface, it must delegate to the primary core DOMImplementation and not return results inconsistent with the primary core DOMImplementation such as hasFeature, getFeature, etc. NNoo EExxcceeppttiioonnss hasFeature Test if the DOM implementation implements a specific feature and version, as specified in _D_O_M_ _F_e_a_t_u_r_e_s. PPaarraammeetteerrss feature of type _D_O_M_S_t_r_i_n_g The name of the feature to test. version of type _D_O_M_S_t_r_i_n_g This is the version number of the feature to test. RReettuurrnn VVaalluuee boolean true if the feature is implemented in the specified version, false otherwise. NNoo EExxcceeppttiioonnss IInntteerrffaaccee DDooccuummeennttFFrraaggmmeenntt DocumentFragment is a "lightweight" or "minimal" _D_o_c_u_m_e_n_t 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 _D_o_c_u_m_e_n_t object could fulfill this role, a _D_o_c_u_m_e_n_t object can potentially be a heavyweight object, depending on the underlying implementation. What is really needed for this is a very lightweight object. DocumentFragment is such an object. Furthermore, various operations -- such as inserting nodes as children of another _N_o_d_e -- may take DocumentFragment objects as arguments; this results in all the child nodes of the DocumentFragment being moved to the child list of this node. The children of a DocumentFragment node are zero or more nodes representing the tops of any sub-trees defining the structure of the document. DocumentFragment nodes do not need to be _w_e_l_l_-_f_o_r_m_e_d_ _X_M_L _d_o_c_u_m_e_n_t_s (although they do need to follow the rules imposed upon well- formed XML parsed entities, which can have multiple top nodes). For example, a DocumentFragment might have only one child and that child node could be a _T_e_x_t node. Such a structure model represents neither an HTML document nor a well-formed XML document. When a DocumentFragment is inserted into a _D_o_c_u_m_e_n_t (or indeed any other _N_o_d_e that may take children) the children of the DocumentFragment and not the DocumentFragment itself are inserted into the _N_o_d_e. This makes the DocumentFragment very useful when the user wishes to create nodes that are _s_i_b_l_i_n_g_s; the DocumentFragment acts as the parent of these nodes so that the user can use the standard methods from the _N_o_d_e interface, such as _N_o_d_e_._i_n_s_e_r_t_B_e_f_o_r_e and _N_o_d_e_._a_p_p_e_n_d_C_h_i_l_d. IIDDLL DDeeffiinniittiioonn interface _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t : _N_o_d_e { }; IInntteerrffaaccee DDooccuummeenntt The Document interface represents the entire HTML or XML document. Conceptually, it is the _r_o_o_t of the document tree, and provides the primary access to the document's data. Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The _N_o_d_e objects created have a ownerDocument attribute which associates them with the Document within whose context they were created. IIDDLL DDeeffiinniittiioonn interface _D_o_c_u_m_e_n_t : _N_o_d_e { // Modified in DOM Level 3: readonly attribute _D_o_c_u_m_e_n_t_T_y_p_e _d_o_c_t_y_p_e; readonly attribute _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n _i_m_p_l_e_m_e_n_t_a_t_i_o_n; readonly attribute _E_l_e_m_e_n_t _d_o_c_u_m_e_n_t_E_l_e_m_e_n_t; _E_l_e_m_e_n_t _c_r_e_a_t_e_E_l_e_m_e_n_t(in _D_O_M_S_t_r_i_n_g tagName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t _c_r_e_a_t_e_D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t(); _T_e_x_t _c_r_e_a_t_e_T_e_x_t_N_o_d_e(in _D_O_M_S_t_r_i_n_g data); _C_o_m_m_e_n_t _c_r_e_a_t_e_C_o_m_m_e_n_t(in _D_O_M_S_t_r_i_n_g data); _C_D_A_T_A_S_e_c_t_i_o_n _c_r_e_a_t_e_C_D_A_T_A_S_e_c_t_i_o_n(in _D_O_M_S_t_r_i_n_g data) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n _c_r_e_a_t_e_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n(in _D_O_M_S_t_r_i_n_g target, in _D_O_M_S_t_r_i_n_g data) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _A_t_t_r _c_r_e_a_t_e_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e _c_r_e_a_t_e_E_n_t_i_t_y_R_e_f_e_r_e_n_c_e(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e(in _D_O_M_S_t_r_i_n_g tagname); // Introduced in DOM Level 2: _N_o_d_e _i_m_p_o_r_t_N_o_d_e(in _N_o_d_e importedNode, in boolean deep) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _E_l_e_m_e_n_t _c_r_e_a_t_e_E_l_e_m_e_n_t_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _A_t_t_r _c_r_e_a_t_e_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName); // Introduced in DOM Level 2: _E_l_e_m_e_n_t _g_e_t_E_l_e_m_e_n_t_B_y_I_d(in _D_O_M_S_t_r_i_n_g elementId); // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _i_n_p_u_t_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _x_m_l_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: attribute boolean _x_m_l_S_t_a_n_d_a_l_o_n_e; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 3: attribute _D_O_M_S_t_r_i_n_g _x_m_l_V_e_r_s_i_o_n; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 3: attribute boolean _s_t_r_i_c_t_E_r_r_o_r_C_h_e_c_k_i_n_g; // Introduced in DOM Level 3: attribute _D_O_M_S_t_r_i_n_g _d_o_c_u_m_e_n_t_U_R_I; // Introduced in DOM Level 3: _N_o_d_e _a_d_o_p_t_N_o_d_e(in _N_o_d_e source) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: readonly attribute _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n _d_o_m_C_o_n_f_i_g; // Introduced in DOM Level 3: void _n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t(); // Introduced in DOM Level 3: _N_o_d_e _r_e_n_a_m_e_N_o_d_e(in _N_o_d_e n, in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; AAttttrriibbuutteess doctype of type _D_o_c_u_m_e_n_t_T_y_p_e, readonly, modified in DDOOMM LLeevveell 33 The Document Type Declaration (see _D_o_c_u_m_e_n_t_T_y_p_e) associated with this document. For XML documents without a document type declaration this returns null. For HTML documents, a _D_o_c_u_m_e_n_t_T_y_p_e object may be returned, independently of the presence or absence of document type declaration in the HTML document. This provides direct access to the _D_o_c_u_m_e_n_t_T_y_p_e node, child node of this Document. This node can be set at document creation time and later changed through the use of child nodes manipulation methods, such as _N_o_d_e_._i_n_s_e_r_t_B_e_f_o_r_e, or _N_o_d_e_._r_e_p_l_a_c_e_C_h_i_l_d. Note, however, that while some implementations may instantiate different types of Document objects supporting additional features than the "Core", such as "HTML" [_D_O_M_ _L_e_v_e_l_ _2_ _H_T_M_L], based on the _D_o_c_u_m_e_n_t_T_y_p_e specified at creation time, changing it afterwards is very unlikely to result in a change of the features supported. documentElement of type _E_l_e_m_e_n_t, readonly This is a _c_o_n_v_e_n_i_e_n_c_e attribute that allows direct access to the child node that is the _d_o_c_u_m_e_n_t_ _e_l_e_m_e_n_t of the document. documentURI of type _D_O_M_S_t_r_i_n_g, introduced in DDOOMM LLeevveell 33 The location of the document or null if undefined or if the Document was created using _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._c_r_e_a_t_e_D_o_c_u_m_e_n_t. No lexical checking is performed when setting this attribute; this could result in a null value returned when using _N_o_d_e_._b_a_s_e_U_R_I. Beware that when the Document supports the feature "HTML" [_D_O_M_ _L_e_v_e_l_ _2_ _H_T_M_L], the href attribute of the HTML BASE element takes precedence over this attribute when computing _N_o_d_e_._b_a_s_e_U_R_I. domConfig of type _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n, readonly, introduced in DDOOMM LLeevveell 33 The configuration used when _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) is invoked. implementation of type _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n, readonly The _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n object that handles this document. A DOM application may use objects from multiple implementations. inputEncoding of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 An attribute specifying the encoding used for this document at the time of the parsing. This is null when it is not known, such as when the Document was created in memory. strictErrorChecking of type boolean, introduced in DDOOMM LLeevveell 33 An attribute specifying whether error checking is enforced or not. When set to false, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any _D_O_M_E_x_c_e_p_t_i_o_n on DOM operations or report errors while using _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_). In case of error, the behavior is undefined. This attribute is true by default. xmlEncoding of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 An attribute specifying, as part of the _XX_MM_LL_ _dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn, the encoding of this document. This is null when unspecified or when it is not known, such as when the Document was created in memory. xmlStandalone of type boolean, introduced in DDOOMM LLeevveell 33 An attribute specifying, as part of the _XX_MM_LL_ _dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn, whether this document is standalone. This is false when unspecified. NNoottee:: No verification is done on the value when setting this attribute. Applications should use _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t _(_) with the "_v_a_l_i_d_a_t_e" parameter to verify if the value matches the _vv_aa_ll_ii_dd_ii_tt_yy_ _cc_oo_nn_ss_tt_rr_aa_ii_nn_tt_ _ff_oo_rr_ _ss_tt_aa_nn_dd_aa_ll_oo_nn_ee_ _dd_oo_cc_uu_mm_ee_nn_tt _dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn as defined in [_X_M_L_ _1_._0]. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: Raised if this document does not support the "XML" feature. xmlVersion of type _D_O_M_S_t_r_i_n_g, introduced in DDOOMM LLeevveell 33 An attribute specifying, as part of the _XX_MM_LL_ _dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". If this document does not support the "XML" feature, the value is always null. Changing this attribute will affect methods that check for invalid characters in XML names. Application should invoke _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) in order to check for invalid characters in the _N_o_d_es that are already part of this Document. DOM applications may use the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._h_a_s_F_e_a_t_u_r_e _(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) method with parameter values "XMLVersion" and "1.0" (respectively) to determine if an implementation supports [_X_M_L_ _1_._0]. DOM applications may use the same method with parameter values "XMLVersion" and "1.1" (respectively) to determine if an implementation supports [_X_M_L_ _1_._1]. In both cases, in order to support XML, an implementation must also support the "XML" feature defined in this specification. Document objects supporting a version of the "XMLVersion" feature must not raise a _N_O_T___S_U_P_P_O_R_T_E_D___E_R_R exception for the same version number when using _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: Raised if the version is set to a value that is not supported by this Document or if this document does not support the "XML" feature. MMeetthhooddss adoptNode introduced in DDOOMM LLeevveell 33 Attempts to adopt a node from another document to this document. If supported, it changes the ownerDocument of the source node, its children, as well as the attached attribute nodes if there are any. If the source node has a parent it is first removed from the child list of its parent. This effectively allows moving a subtree from one document to another (unlike importNode() which create a copy of the source node instead of moving it). When it fails, applications should use _D_o_c_u_m_e_n_t_._i_m_p_o_r_t_N_o_d_e_(_) instead. Note that if the adopted node is already part of this document (i.e. the source and target document are the same), this method still has the effect of removing the source node from the child list of its parent, if any. The following list describes the specifics for each type of node. ATTRIBUTE_NODE The ownerElement attribute is set to null and the specified flag is set to true on the adopted _A_t_t_r. The descendants of the source _A_t_t_r are recursively adopted. DOCUMENT_FRAGMENT_NODE The descendants of the source node are recursively adopted. DOCUMENT_NODE Document nodes cannot be adopted. DOCUMENT_TYPE_NODE _D_o_c_u_m_e_n_t_T_y_p_e nodes cannot be adopted. ELEMENT_NODE SSppeecciiffiieedd attribute nodes of the source element are adopted. 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. ENTITY_NODE _E_n_t_i_t_y nodes cannot be adopted. ENTITY_REFERENCE_NODE Only the _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e 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. NOTATION_NODE _N_o_t_a_t_i_o_n nodes cannot be adopted. PROCESSING_INSTRUCTION_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE These nodes can all be adopted. No specifics. NNoottee:: Since it does not create new nodes unlike the _D_o_c_u_m_e_n_t_._i_m_p_o_r_t_N_o_d_e_(_) method, this method does not raise an _I_N_V_A_L_I_D___C_H_A_R_A_C_T_E_R___E_R_R exception, and applications should use the _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) method to check if an imported name is not an XML name according to the XML version in use. PPaarraammeetteerrss source of type _N_o_d_e The node to move into this document. RReettuurrnn VVaalluuee _N_o_d_e The adopted node, or null if this operation fails, such as when the source node comes from a different implementation. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: Raised if the source node is of type DOCUMENT, DOCUMENT_TYPE. NO_MODIFICATION_ALLOWED_ERR: Raised when the source node is readonly. createAttribute Creates an _A_t_t_r of the given name. Note that the _A_t_t_r instance can then be set on an _E_l_e_m_e_n_t using the setAttributeNode method. To create an attribute with a _q_u_a_l_i_f_i_e_d_ _n_a_m_e and _n_a_m_e_s_p_a_c_e _U_R_I, use the createAttributeNS method. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the attribute. RReettuurrnn VVaalluuee _A_t_t_r A new _A_t_t_r object with the nodeName attribute set to name, and localName, prefix, and namespaceURI set to null. The value of the attribute is the empty string. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified name is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. createAttributeNS introduced in DDOOMM LLeevveell 22 Creates an attribute of the given _q_u_a_l_i_f_i_e_d_ _n_a_m_e and _n_a_m_e_s_p_a_c_e_ _U_R_I. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute to create. qualifiedName of type _D_O_M_S_t_r_i_n_g The _q_u_a_l_i_f_i_e_d_ _n_a_m_e of the attribute to instantiate. RReettuurrnn VVaalluuee _A_t_t_r A new _A_t_t_r object with the following attributes: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _|_q_u_a_l_i_f_i_e_d_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_|_n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_r_e_f_i_x |prefix, extracted from | | |qualifiedName, or null if there is| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_o_ _p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e |_l_o_c_a_l_ _n_a_m_e, extracted from | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_q_u_a_l_i_f_i_e_d_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_A_t_t_r_._n_a_m_e_ _ _ _ _ _ _ _ _|_q_u_a_l_i_f_i_e_d_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _|_t_h_e_ _e_m_p_t_y_ _s_t_r_i_n_g_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified qualifiedName is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NAMESPACE_ERR: Raised if the qualifiedName is a malformed _q_u_a_l_i_f_i_e_d_ _n_a_m_e, if the qualifiedName has a prefix and the namespaceURI is null, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_X_M_L_/_1_9_9_8_/_n_a_m_e_s_p_a_c_e", if the qualifiedName or its prefix is "xmlns" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/", or if the namespaceURI is "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/" and neither the qualifiedName nor its prefix is "xmlns". NOT_SUPPORTED_ERR: Always thrown if the current document does not support the "XML" feature, since namespaces were defined by XML. createCDATASection Creates a _C_D_A_T_A_S_e_c_t_i_o_n node whose value is the specified string. PPaarraammeetteerrss data of type _D_O_M_S_t_r_i_n_g The data for the _C_D_A_T_A_S_e_c_t_i_o_n contents. RReettuurrnn VVaalluuee _C_D_A_T_A_S_e_c_t_i_o_n The new _C_D_A_T_A_S_e_c_t_i_o_n object. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: Raised if this document is an HTML document. createComment Creates a _C_o_m_m_e_n_t node given the specified string. PPaarraammeetteerrss data of type _D_O_M_S_t_r_i_n_g The data for the node. RReettuurrnn VVaalluuee _C_o_m_m_e_n_t The new _C_o_m_m_e_n_t object. NNoo EExxcceeppttiioonnss createDocumentFragment Creates an empty _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t object. RReettuurrnn VVaalluuee _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t A new _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t. NNoo PPaarraammeetteerrss NNoo EExxcceeppttiioonnss createElement Creates an element of the type specified. Note that the instance returned implements the _E_l_e_m_e_n_t interface, so attributes can be specified directly on the returned object. In addition, if there are known attributes with default values, _A_t_t_r nodes representing them are automatically created and attached to the element. To create an element with a _q_u_a_l_i_f_i_e_d_ _n_a_m_e and _n_a_m_e_s_p_a_c_e_ _U_R_I, use the createElementNS method. PPaarraammeetteerrss tagName of type _D_O_M_S_t_r_i_n_g The name of the element type to instantiate. For XML, this is case-sensitive, otherwise it depends on the case-sensitivity of the markup language in use. In that case, the name is mapped to the canonical form of that markup by the DOM implementation. RReettuurrnn VVaalluuee _E_l_e_m_e_n_t A new _E_l_e_m_e_n_t object with the nodeName attribute set to tagName, and localName, prefix, and namespaceURI set to null. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified name is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. createElementNS introduced in DDOOMM LLeevveell 22 Creates an element of the given _q_u_a_l_i_f_i_e_d_ _n_a_m_e and _n_a_m_e_s_p_a_c_e _U_R_I. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the element to create. qualifiedName of type _D_O_M_S_t_r_i_n_g The _q_u_a_l_i_f_i_e_d_ _n_a_m_e of the element type to instantiate. RReettuurrnn VVaalluuee _E_l_e_m_e_n_t A new _E_l_e_m_e_n_t object with the following attributes: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _|_q_u_a_l_i_f_i_e_d_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_|_n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_r_e_f_i_x |prefix, extracted from | | |qualifiedName, or null if there| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_i_s_ _n_o_ _p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e |_l_o_c_a_l_ _n_a_m_e, extracted from | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_q_u_a_l_i_f_i_e_d_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_E_l_e_m_e_n_t_._t_a_g_N_a_m_e_ _ _|_q_u_a_l_i_f_i_e_d_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified qualifiedName is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NAMESPACE_ERR: Raised if the qualifiedName is a malformed _q_u_a_l_i_f_i_e_d_ _n_a_m_e, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_X_M_L_/_1_9_9_8_/_n_a_m_e_s_p_a_c_e" [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], or if the qualifiedName or its prefix is "xmlns" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/", or if the namespaceURI is "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/" and neither the qualifiedName nor its prefix is "xmlns". NOT_SUPPORTED_ERR: Always thrown if the current document does not support the "XML" feature, since namespaces were defined by XML. createEntityReference Creates an _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e object. In addition, if the referenced entity is known, the child list of the _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node is made the same as that of the corresponding _E_n_t_i_t_y node. NNoottee:: If any descendant of the _E_n_t_i_t_y node has an unbound _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x, the corresponding descendant of the created _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node is also unbound; (its namespaceURI is null). The DOM Level 2 and 3 do not support any mechanism to resolve namespace prefixes in this case. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the entity to reference. Unlike _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_l_e_m_e_n_t_N_S or _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_A_t_t_r_i_b_u_t_e_N_S, no namespace well-formed checking is done on the entity name. Applications should invoke _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) with the parameter "_n_a_m_e_s_p_a_c_e_s" set to true in order to ensure that the entity name is namespace well-formed. RReettuurrnn VVaalluuee _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e The new _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e object. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified name is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NOT_SUPPORTED_ERR: Raised if this document is an HTML document. createProcessingInstruction Creates a _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n node given the specified name and data strings. PPaarraammeetteerrss target of type _D_O_M_S_t_r_i_n_g The target part of the processing instruction. Unlike _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_l_e_m_e_n_t_N_S or _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_A_t_t_r_i_b_u_t_e_N_S, no namespace well-formed checking is done on the target name. Applications should invoke _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) with the parameter "_n_a_m_e_s_p_a_c_e_s" set to true in order to ensure that the target name is namespace well-formed. data of type _D_O_M_S_t_r_i_n_g The data for the node. RReettuurrnn VVaalluuee _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n The new _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n object. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified target is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NOT_SUPPORTED_ERR: Raised if this document is an HTML document. createTextNode Creates a _T_e_x_t node given the specified string. PPaarraammeetteerrss data of type _D_O_M_S_t_r_i_n_g The data for the node. RReettuurrnn VVaalluuee _T_e_x_t The new _T_e_x_t object. NNoo EExxcceeppttiioonnss getElementById introduced in DDOOMM LLeevveell 22 Returns the _E_l_e_m_e_n_t that has an ID attribute with the given value. If no such element exists, this returns null. If more than one element has an ID attribute with that value, what is returned is undefined. The DOM implementation is expected to use the attribute _A_t_t_r_._i_s_I_d to determine if an attribute is of type ID. NNoottee:: Attributes with the name "ID" or "id" are not of type ID unless so defined. PPaarraammeetteerrss elementId of type _D_O_M_S_t_r_i_n_g The unique id value for an element. RReettuurrnn VVaalluuee _E_l_e_m_e_n_t The matching element or null if there is none. NNoo EExxcceeppttiioonnss getElementsByTagName Returns a _N_o_d_e_L_i_s_t of all the _E_l_e_m_e_n_t_s in _d_o_c_u_m_e_n_t_ _o_r_d_e_r with a given tag name and are contained in the document. PPaarraammeetteerrss tagname of type _D_O_M_S_t_r_i_n_g The name of the tag to match on. The special value "*" matches all tags. For XML, the tagname parameter is case-sensitive, otherwise it depends on the case- sensitivity of the markup language in use. RReettuurrnn VVaalluuee _N_o_d_e_L_i_s_t A new _N_o_d_e_L_i_s_t object containing all the matched _E_l_e_m_e_n_t_s. NNoo EExxcceeppttiioonnss getElementsByTagNameNS introduced in DDOOMM LLeevveell 22 Returns a _N_o_d_e_L_i_s_t of all the _E_l_e_m_e_n_t_s with a given _l_o_c_a_l _n_a_m_e and _n_a_m_e_s_p_a_c_e_ _U_R_I in _d_o_c_u_m_e_n_t_ _o_r_d_e_r. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the elements to match on. The special value "*" matches all namespaces. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the elements to match on. The special value "*" matches all local names. RReettuurrnn VVaalluuee _N_o_d_e_L_i_s_t A new _N_o_d_e_L_i_s_t object containing all the matched _E_l_e_m_e_n_t_s. NNoo EExxcceeppttiioonnss importNode introduced in DDOOMM LLeevveell 22 Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node. The returned node has no parent; (parentNode is null). For all nodes, importing a node creates a node object owned by the importing document, with attribute values identical to the source node's nodeName and nodeType, plus the attributes related to namespaces (prefix, localName, and namespaceURI). As in the cloneNode operation, the source node is not altered. User data associated to the imported node is not carried over. However, if any _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_s has been specified along with the associated data these handlers will be called with the appropriate parameters before this method returns. Additional information is copied as appropriate to the nodeType, 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. ATTRIBUTE_NODE The ownerElement attribute is set to null and the specified flag is set to true on the generated _A_t_t_r. The _d_e_s_c_e_n_d_a_n_t_s of the source _A_t_t_r are recursively imported and the resulting nodes reassembled to form the corresponding subtree. Note that the deep parameter has no effect on _A_t_t_r nodes; they always carry their children with them when imported. DOCUMENT_FRAGMENT_NODE If the deep option was set to true, the _d_e_s_c_e_n_d_a_n_t_s of the source _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t are recursively imported and the resulting nodes reassembled under the imported _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t to form the corresponding subtree. Otherwise, this simply generates an empty _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t. DOCUMENT_NODE Document nodes cannot be imported. DOCUMENT_TYPE_NODE _D_o_c_u_m_e_n_t_T_y_p_e nodes cannot be imported. ELEMENT_NODE SSppeecciiffiieedd attribute nodes of the source element are imported, and the generated _A_t_t_r nodes are attached to the generated _E_l_e_m_e_n_t. Default attributes are nnoott copied, though if the document being imported into defines default attributes for this element name, those are assigned. If the importNode deep parameter was set to true, the _d_e_s_c_e_n_d_a_n_t_s of the source element are recursively imported and the resulting nodes reassembled to form the corresponding subtree. ENTITY_NODE _E_n_t_i_t_y nodes can be imported, however in the current release of the DOM the _D_o_c_u_m_e_n_t_T_y_p_e is readonly. Ability to add these imported nodes to a _D_o_c_u_m_e_n_t_T_y_p_e will be considered for addition to a future release of the DOM. On import, the publicId, systemId, and notationName attributes are copied. If a deep import is requested, the _d_e_s_c_e_n_d_a_n_t_s of the the source _E_n_t_i_t_y are recursively imported and the resulting nodes reassembled to form the corresponding subtree. ENTITY_REFERENCE_NODE Only the _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e itself is copied, even if a deep 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. NOTATION_NODE _N_o_t_a_t_i_o_n nodes can be imported, however in the current release of the DOM the _D_o_c_u_m_e_n_t_T_y_p_e is readonly. Ability to add these imported nodes to a _D_o_c_u_m_e_n_t_T_y_p_e will be considered for addition to a future release of the DOM. On import, the publicId and systemId attributes are copied. Note that the deep parameter has no effect on this type of nodes since they cannot have any children. PROCESSING_INSTRUCTION_NODE The imported node copies its target and data values from those of the source node. Note that the deep parameter has no effect on this type of nodes since they cannot have any children. TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE These three types of nodes inheriting from _C_h_a_r_a_c_t_e_r_D_a_t_a copy their data and length attributes from those of the source node. Note that the deep parameter has no effect on these types of nodes since they cannot have any children. PPaarraammeetteerrss importedNode of type _N_o_d_e The node to import. deep of type boolean If true, recursively import the subtree under the specified node; if false, import only the node itself, as explained above. This has no effect on nodes that cannot have any children, and on _A_t_t_r, and _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes. RReettuurrnn VVaalluuee _N_o_d_e The imported node that belongs to this Document. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported. INVALID_CHARACTER_ERR: Raised if one of the imported names is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. This may happen when importing an XML 1.1 [_X_M_L_ _1_._1] element into an XML 1.0 document, for instance. normalizeDocument introduced in DDOOMM LLeevveell 33 This method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. As a consequence, this method updates the replacement tree of _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes and normalizes _T_e_x_t nodes, as defined in the method _N_o_d_e_._n_o_r_m_a_l_i_z_e_(_). Otherwise, the actual result depends on the features being set on the _D_o_c_u_m_e_n_t_._d_o_m_C_o_n_f_i_g object and governing what operations actually take place. Noticeably this method could also make the document _n_a_m_e_s_p_a_c_e_ _w_e_l_l_-_f_o_r_m_e_d according to the algorithm described in _N_a_m_e_s_p_a_c_e_ _N_o_r_m_a_l_i_z_a_t_i_o_n, check the character normalization, remove the _C_D_A_T_A_S_e_c_t_i_o_n nodes, etc. See _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n for details. // Keep in the document the information defined // in the XML Information Set (Java example) DOMConfiguration docConfig = myDocument.getDomConfig(); docConfig.setParameter("infoset", Boolean.TRUE); myDocument.normalizeDocument(); Mutation events, when supported, are generated to reflect the changes occurring on the document. If errors occur during the invocation of this method, such as an attempt to update a _r_e_a_d_-_o_n_l_y_ _n_o_d_e or a _N_o_d_e_._n_o_d_e_N_a_m_e contains an invalid character according to the XML version in use, errors or warnings (_D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___E_R_R_O_R or _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___W_A_R_N_I_N_G) will be reported using the _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r object associated with the "_e_r_r_o_r_-_h_a_n_d_l_e_r" parameter. Note this method might also report fatal errors (_D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___F_A_T_A_L___E_R_R_O_R) if an implementation cannot recover from an error. NNoo PPaarraammeetteerrss NNoo RReettuurrnn VVaalluuee NNoo EExxcceeppttiioonnss renameNode introduced in DDOOMM LLeevveell 33 Rename an existing node of type ELEMENT_NODE or ATTRIBUTE_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. If simply changing the name of the given node is not possible, the following operations are performed: a 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 _E_l_e_m_e_n_t 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 attached to the new node. When the node being renamed is an _E_l_e_m_e_n_t 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 _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) to guarantee these attributes are up-to-date. When the node being renamed is an _A_t_t_r that is attached to an _E_l_e_m_e_n_t, the node is first removed from the _E_l_e_m_e_n_t attributes map. Then, once renamed, either by modifying the existing node or creating a new one as described above, it is put back. In addition, * a user data event NODE_RENAMED is fired, * when the implementation supports the feature "MutationNameEvents", each mutation operation involved in this method fires the appropriate event, and in the end the event {http://www.w3.org/2001/xml-events, DOMElementNameChanged} or {http://www.w3.org/2001/xml- events, DOMAttributeNameChanged} is fired. PPaarraammeetteerrss n of type _N_o_d_e The node to rename. namespaceURI of type _D_O_M_S_t_r_i_n_g The new _n_a_m_e_s_p_a_c_e_ _U_R_I. qualifiedName of type _D_O_M_S_t_r_i_n_g The new _q_u_a_l_i_f_i_e_d_ _n_a_m_e. RReettuurrnn VVaalluuee _N_o_d_e The renamed node. This is either the specified node or the new node that was created to replace the specified node. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: Raised when the type of the specified node is neither ELEMENT_NODE nor ATTRIBUTE_NODE, or if the implementation does not support the renaming of the _d_o_c_u_m_e_n_t _e_l_e_m_e_n_t. INVALID_CHARACTER_ERR: Raised if the new qualified name is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. WRONG_DOCUMENT_ERR: Raised when the specified node was created from a different document than this document. NAMESPACE_ERR: Raised if the qualifiedName is a malformed _q_u_a_l_i_f_i_e_d_ _n_a_m_e, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_X_M_L_/_1_9_9_8_/_n_a_m_e_s_p_a_c_e" [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. Also raised, when the node being renamed is an attribute, if the qualifiedName, or its prefix, is "xmlns" and the namespaceURI is different from "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/". IInntteerrffaaccee NNooddee The Node 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 Node interface expose methods for dealing with children, not all objects implementing the Node interface may have children. For example, _T_e_x_t nodes may not have children, and adding children to such nodes results in a _D_O_M_E_x_c_e_p_t_i_o_n being raised. The attributes nodeName, nodeValue and attributes 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 nodeType (e.g., nodeValue for an _E_l_e_m_e_n_t or attributes for a _C_o_m_m_e_n_t), this returns null. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information. IIDDLL DDeeffiinniittiioonn interface _N_o_d_e { // NodeType const unsigned short _E_L_E_M_E_N_T___N_O_D_E = 1; const unsigned short _A_T_T_R_I_B_U_T_E___N_O_D_E = 2; const unsigned short _T_E_X_T___N_O_D_E = 3; const unsigned short _C_D_A_T_A___S_E_C_T_I_O_N___N_O_D_E = 4; const unsigned short _E_N_T_I_T_Y___R_E_F_E_R_E_N_C_E___N_O_D_E = 5; const unsigned short _E_N_T_I_T_Y___N_O_D_E = 6; const unsigned short _P_R_O_C_E_S_S_I_N_G___I_N_S_T_R_U_C_T_I_O_N___N_O_D_E = 7; const unsigned short _C_O_M_M_E_N_T___N_O_D_E = 8; const unsigned short _D_O_C_U_M_E_N_T___N_O_D_E = 9; const unsigned short _D_O_C_U_M_E_N_T___T_Y_P_E___N_O_D_E = 10; const unsigned short _D_O_C_U_M_E_N_T___F_R_A_G_M_E_N_T___N_O_D_E = 11; const unsigned short _N_O_T_A_T_I_O_N___N_O_D_E = 12; readonly attribute _D_O_M_S_t_r_i_n_g _n_o_d_e_N_a_m_e; attribute _D_O_M_S_t_r_i_n_g _n_o_d_e_V_a_l_u_e; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on retrieval readonly attribute unsigned short _n_o_d_e_T_y_p_e; readonly attribute _N_o_d_e _p_a_r_e_n_t_N_o_d_e; readonly attribute _N_o_d_e_L_i_s_t _c_h_i_l_d_N_o_d_e_s; readonly attribute _N_o_d_e _f_i_r_s_t_C_h_i_l_d; readonly attribute _N_o_d_e _l_a_s_t_C_h_i_l_d; readonly attribute _N_o_d_e _p_r_e_v_i_o_u_s_S_i_b_l_i_n_g; readonly attribute _N_o_d_e _n_e_x_t_S_i_b_l_i_n_g; readonly attribute _N_a_m_e_d_N_o_d_e_M_a_p _a_t_t_r_i_b_u_t_e_s; // Modified in DOM Level 2: readonly attribute _D_o_c_u_m_e_n_t _o_w_n_e_r_D_o_c_u_m_e_n_t; // Modified in DOM Level 3: _N_o_d_e _i_n_s_e_r_t_B_e_f_o_r_e(in _N_o_d_e newChild, in _N_o_d_e refChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Modified in DOM Level 3: _N_o_d_e _r_e_p_l_a_c_e_C_h_i_l_d(in _N_o_d_e newChild, in _N_o_d_e oldChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Modified in DOM Level 3: _N_o_d_e _r_e_m_o_v_e_C_h_i_l_d(in _N_o_d_e oldChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Modified in DOM Level 3: _N_o_d_e _a_p_p_e_n_d_C_h_i_l_d(in _N_o_d_e newChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); boolean _h_a_s_C_h_i_l_d_N_o_d_e_s(); _N_o_d_e _c_l_o_n_e_N_o_d_e(in boolean deep); // Modified in DOM Level 3: void _n_o_r_m_a_l_i_z_e(); // Introduced in DOM Level 2: boolean _i_s_S_u_p_p_o_r_t_e_d(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _n_a_m_e_s_p_a_c_e_U_R_I; // Introduced in DOM Level 2: attribute _D_O_M_S_t_r_i_n_g _p_r_e_f_i_x; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _l_o_c_a_l_N_a_m_e; // Introduced in DOM Level 2: boolean _h_a_s_A_t_t_r_i_b_u_t_e_s(); // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _b_a_s_e_U_R_I; // DocumentPosition const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___D_I_S_C_O_N_N_E_C_T_E_D = 0x01; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___P_R_E_C_E_D_I_N_G = 0x02; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___F_O_L_L_O_W_I_N_G = 0x04; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___C_O_N_T_A_I_N_S = 0x08; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___C_O_N_T_A_I_N_E_D___B_Y = 0x10; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___I_M_P_L_E_M_E_N_T_A_T_I_O_N___S_P_E_C_I_F_I_C = 0x20; // Introduced in DOM Level 3: unsigned short _c_o_m_p_a_r_e_D_o_c_u_m_e_n_t_P_o_s_i_t_i_o_n(in _N_o_d_e other) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: attribute _D_O_M_S_t_r_i_n_g _t_e_x_t_C_o_n_t_e_n_t; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on retrieval // Introduced in DOM Level 3: boolean _i_s_S_a_m_e_N_o_d_e(in _N_o_d_e other); // Introduced in DOM Level 3: _D_O_M_S_t_r_i_n_g _l_o_o_k_u_p_P_r_e_f_i_x(in _D_O_M_S_t_r_i_n_g namespaceURI); // Introduced in DOM Level 3: boolean _i_s_D_e_f_a_u_l_t_N_a_m_e_s_p_a_c_e(in _D_O_M_S_t_r_i_n_g namespaceURI); // Introduced in DOM Level 3: _D_O_M_S_t_r_i_n_g _l_o_o_k_u_p_N_a_m_e_s_p_a_c_e_U_R_I(in _D_O_M_S_t_r_i_n_g prefix); // Introduced in DOM Level 3: boolean _i_s_E_q_u_a_l_N_o_d_e(in _N_o_d_e arg); // Introduced in DOM Level 3: _D_O_M_O_b_j_e_c_t _g_e_t_F_e_a_t_u_r_e(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); // Introduced in DOM Level 3: _D_O_M_U_s_e_r_D_a_t_a _s_e_t_U_s_e_r_D_a_t_a(in _D_O_M_S_t_r_i_n_g key, in _D_O_M_U_s_e_r_D_a_t_a data, in _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r handler); // Introduced in DOM Level 3: _D_O_M_U_s_e_r_D_a_t_a _g_e_t_U_s_e_r_D_a_t_a(in _D_O_M_S_t_r_i_n_g key); }; DDeeffiinniittiioonn ggrroouupp NNooddeeTTyyppee An integer indicating which type of node this is. NNoottee:: Numeric codes up to 200 are reserved to W3C for possible future use. DDeeffiinneedd CCoonnssttaannttss ATTRIBUTE_NODE The node is an _A_t_t_r. CDATA_SECTION_NODE The node is a _C_D_A_T_A_S_e_c_t_i_o_n. COMMENT_NODE The node is a _C_o_m_m_e_n_t. DOCUMENT_FRAGMENT_NODE The node is a _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t. DOCUMENT_NODE The node is a _D_o_c_u_m_e_n_t. DOCUMENT_TYPE_NODE The node is a _D_o_c_u_m_e_n_t_T_y_p_e. ELEMENT_NODE The node is an _E_l_e_m_e_n_t. ENTITY_NODE The node is an _E_n_t_i_t_y. ENTITY_REFERENCE_NODE The node is an _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e. NOTATION_NODE The node is a _N_o_t_a_t_i_o_n. PROCESSING_INSTRUCTION_NODE The node is a _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n. TEXT_NODE The node is a _T_e_x_t node. The values of nodeName, nodeValue, and attributes vary according to the node type as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_II_nn_tt_ee_rr_ff_aa_cc_ee_ _ _ _ _ _ _ _ _ _ _ _ _|_nn_oo_dd_ee_NN_aa_mm_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_nn_oo_dd_ee_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_aa_tt_tt_rr_ii_bb_uu_tt_ee_ss_ _ | |_A_t_t_r_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _A_t_t_r_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_._t_a_r_g_e_t_|_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._d_a_t_a_|_ _ _ _ _ _ _ _ _ _ _ _ | |_T_e_x_t |"#text" |same as |null | | | |_C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a, the | | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_c_o_n_t_e_n_t_ _o_f_ _t_h_e_ _t_e_x_t_ _n_o_d_e_ _ _|_ _ _ _ _ _ _ _ _ _ _ _ | DDeeffiinniittiioonn ggrroouupp DDooccuummeennttPPoossiittiioonn A bitmask indicating the relative document position of a node with respect to another node. If the two nodes being compared are the same node, then no flags are set on the return. Otherwise, the order of two nodes is determined by looking for common containers -- containers which contain both. A node directly contains any child nodes. A node also directly contains any other nodes attached to it such as attributes contained in an element or entities and notations contained in a document type. Nodes contained in contained nodes are also contained, but less-directly as the number of intervening containers increases. If there is no common container node, then the order is based upon order between the root container of each node that is in no container. In this case, the result is disconnected and implementation-specific. This result is stable as long as these outer-most containing nodes remain in memory and are not inserted into some other containing node. This would be the case when the nodes belong to different documents or fragments, and cloning the document or inserting a fragment might change the order. If one of the nodes being compared contains the other node, then the container precedes the contained node, and reversely the contained node follows the container. For example, when comparing an element against its own attribute or child, the element node precedes its attribute node and its child node, which both follow it. If neither of the previous cases apply, then there exists a most- direct container common to both nodes being compared. In this case, the order is determined based upon the two determining nodes directly contained in this most-direct common container that either are or contain the corresponding nodes being compared. If these two determining nodes are both child nodes, then the natural DOM order of these determining nodes within the containing node is returned as the order of the corresponding nodes. This would be the case, for example, when comparing two child elements of the same element. If one of the two determining nodes is a child node and the other is not, then the corresponding node of the child node follows the corresponding node of the non-child node. This would be the case, for example, when comparing an attribute of an element with a child element of the same element. If neither of the two determining node is a child node and one determining node has a greater value of nodeType than the other, then the corresponding node precedes the other. This would be the case, for example, when comparing an entity of a document type against a notation of the same document type. If neither of the two determining node is a child node and nodeType is the same for both determining nodes, then an implementation- dependent order between the determining nodes is returned. This order is stable as long as no nodes of the same nodeType are inserted into or removed from the direct container. This would be the case, for example, when comparing two attributes of the same element, and inserting or removing additional attributes might change the order between existing attributes. DDeeffiinneedd CCoonnssttaannttss DOCUMENT_POSITION_CONTAINED_BY The node is contained by the reference node. A node which is contained is always following, too. DOCUMENT_POSITION_CONTAINS The node contains the reference node. A node which contains is always preceding, too. DOCUMENT_POSITION_DISCONNECTED The two nodes are disconnected. Order between disconnected nodes is always implementation-specific. DOCUMENT_POSITION_FOLLOWING The node follows the reference node. DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC The determination of preceding versus following is implementation-specific. DOCUMENT_POSITION_PRECEDING The second node precedes the reference node. AAttttrriibbuutteess attributes of type _N_a_m_e_d_N_o_d_e_M_a_p, readonly A _N_a_m_e_d_N_o_d_e_M_a_p containing the attributes of this node (if it is an _E_l_e_m_e_n_t) or null otherwise. baseURI of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI. This value is computed as described in _B_a_s_e_ _U_R_I_s. However, when the _D_o_c_u_m_e_n_t supports the feature "HTML" [_D_O_M_ _L_e_v_e_l_ _2_ _H_T_M_L], 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 documentURI attribute from the _D_o_c_u_m_e_n_t interface otherwise. childNodes of type _N_o_d_e_L_i_s_t, readonly A _N_o_d_e_L_i_s_t that contains all children of this node. If there are no children, this is a _N_o_d_e_L_i_s_t containing no nodes. firstChild of type _N_o_d_e, readonly The first child of this node. If there is no such node, this returns null. lastChild of type _N_o_d_e, readonly The last child of this node. If there is no such node, this returns null. localName of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 22 Returns the local part of the _q_u_a_l_i_f_i_e_d_ _n_a_m_e of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_l_e_m_e_n_t_(_), this is always null. namespaceURI of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 22 The _n_a_m_e_s_p_a_c_e_ _U_R_I of this node, or null if it is unspecified (see _X_M_L_ _N_a_m_e_s_p_a_c_e_s). 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. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as _D_o_c_u_m_e_n_t_._c_r_e_a_t_e_E_l_e_m_e_n_t_(_), this is always null. NNoottee:: Per the NNaammeessppaacceess iinn XXMMLL Specification [_X_M_L _N_a_m_e_s_p_a_c_e_s] 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. nextSibling of type _N_o_d_e, readonly The node immediately following this node. If there is no such node, this returns null. nodeName of type _D_O_M_S_t_r_i_n_g, readonly The name of this node, depending on its type; see the table above. nodeType of type unsigned short, readonly A code representing the type of the underlying object, as defined above. nodeValue of type _D_O_M_S_t_r_i_n_g The value of this node, depending on its type; see the table above. When it is defined to be null, setting it has no effect, including if the node is _r_e_a_d_-_o_n_l_y. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly and if it is not defined to be null. EExxcceeppttiioonnss oonn rreettrriieevvaall _D_O_M_E_x_c_e_p_t_i_o_n DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a _D_O_M_S_t_r_i_n_g variable on the implementation platform. ownerDocument of type _D_o_c_u_m_e_n_t, readonly, modified in DDOOMM LLeevveell 22 The _D_o_c_u_m_e_n_t object associated with this node. This is also the _D_o_c_u_m_e_n_t object used to create new nodes. When this node is a _D_o_c_u_m_e_n_t or a _D_o_c_u_m_e_n_t_T_y_p_e which is not used with any _D_o_c_u_m_e_n_t yet, this is null. parentNode of type _N_o_d_e, readonly The _p_a_r_e_n_t of this node. All nodes, except _A_t_t_r, _D_o_c_u_m_e_n_t, _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t, _E_n_t_i_t_y, and _N_o_t_a_t_i_o_n 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 null. prefix of type _D_O_M_S_t_r_i_n_g, introduced in DDOOMM LLeevveell 22 The _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x of this node, or null if it is unspecified. When it is defined to be null, setting it has no effect, including if the node is _r_e_a_d_-_o_n_l_y. Note that setting this attribute, when permitted, changes the nodeName attribute, which holds the _q_u_a_l_i_f_i_e_d_ _n_a_m_e, as well as the tagName and name attributes of the _E_l_e_m_e_n_t and _A_t_t_r interfaces, when applicable. Setting the prefix to null makes it unspecified, setting it to an empty string is implementation dependent. 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 namespaceURI and localName do not change. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the _D_o_c_u_m_e_n_t interface, this is always null. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified prefix contains an illegal character according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NAMESPACE_ERR: Raised if the specified prefix is malformed per the Namespaces in XML specification, if the namespaceURI of this node is null, if the specified prefix is "xml" and the namespaceURI of this node is different from "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_X_M_L_/_1_9_9_8_/_n_a_m_e_s_p_a_c_e", if this node is an attribute and the specified prefix is "xmlns" and the namespaceURI of this node is different from "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/", or if this node is an attribute and the qualifiedName of this node is "xmlns" [_X_M_L _N_a_m_e_s_p_a_c_e_s]. previousSibling of type _N_o_d_e, readonly The node immediately preceding this node. If there is no such node, this returns null. textContent of type _D_O_M_S_t_r_i_n_g, introduced in DDOOMM LLeevveell 33 This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single _T_e_x_t 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 and the returned string does not contain the white spaces in element content (see the attribute _T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e). Similarly, on setting, no parsing is performed either, the input string is taken as pure textual content. The string returned is made of the text content of this node depending on its type, as defined below: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_NN_oo_dd_ee_ _tt_yy_pp_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_CC_oo_nn_tt_ee_nn_tt_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |ELEMENT_NODE, ATTRIBUTE_NODE,|concatenation of the | |ENTITY_NODE, |textContent attribute value| |ENTITY_REFERENCE_NODE, |of every child node, | |DOCUMENT_FRAGMENT_NODE |excluding COMMENT_NODE and | | |PROCESSING_INSTRUCTION_NODE| | |nodes. This is the empty | | |string if the node has no | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_c_h_i_l_d_r_e_n_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |TEXT_NODE, |nodeValue | |CDATA_SECTION_NODE, | | |COMMENT_NODE, | | |_P_R_O_C_E_S_S_I_N_G___I_N_S_T_R_U_C_T_I_O_N___N_O_D_E_ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |DOCUMENT_NODE, |nnuullll | |DOCUMENT_TYPE_NODE, | | |_N_O_T_A_T_I_O_N___N_O_D_E_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. EExxcceeppttiioonnss oonn rreettrriieevvaall _D_O_M_E_x_c_e_p_t_i_o_n DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a _D_O_M_S_t_r_i_n_g variable on the implementation platform. MMeetthhooddss appendChild modified in DDOOMM LLeevveell 33 Adds the node newChild to the end of the list of children of this node. If the newChild is already in the tree, it is first removed. PPaarraammeetteerrss newChild of type _N_o_d_e The node to add. If it is a _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t object, the entire contents of the document fragment are moved into the child list of this node RReettuurrnn VVaalluuee _N_o_d_e The node added. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to append is one of this node's _a_n_c_e_s_t_o_r_s or this node itself, or if this node is of type _D_o_c_u_m_e_n_t and the DOM application attempts to append a second _D_o_c_u_m_e_n_t_T_y_p_e or _E_l_e_m_e_n_t node. WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the previous parent of the node being inserted is readonly. NOT_SUPPORTED_ERR: if the newChild node is a child of the _D_o_c_u_m_e_n_t node, this exception might be raised if the DOM implementation doesn't support the removal of the _D_o_c_u_m_e_n_t_T_y_p_e child or _E_l_e_m_e_n_t child. cloneNode Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent (parentNode is null) and no user data. User data associated to the imported node is not carried over. However, if any _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_s has been specified along with the associated data these handlers will be called with the appropriate parameters before this method returns. Cloning an _E_l_e_m_e_n_t 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 _E_l_e_m_e_n_t since the text is contained in a child _T_e_x_t node. Cloning an _A_t_t_r directly, as opposed to be cloned as part of an _E_l_e_m_e_n_t cloning operation, returns a specified attribute (specified is true). Cloning an _A_t_t_r always clones its children, since they represent its value, no matter whether this is a deep clone or not. Cloning an _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e automatically constructs its subtree if a corresponding _E_n_t_i_t_y 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. Note that cloning an immutable subtree results in a mutable copy, but the children of an _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e clone are _r_e_a_d_o_n_l_y. In addition, clones of unspecified _A_t_t_r nodes are specified. And, cloning _D_o_c_u_m_e_n_t, _D_o_c_u_m_e_n_t_T_y_p_e, _E_n_t_i_t_y, and _N_o_t_a_t_i_o_n nodes is implementation dependent. PPaarraammeetteerrss deep of type boolean If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an _E_l_e_m_e_n_t). RReettuurrnn VVaalluuee _N_o_d_e The duplicate node. NNoo EExxcceeppttiioonnss compareDocumentPosition introduced in DDOOMM LLeevveell 33 Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the _d_o_c_u_m_e_n_t_ _o_r_d_e_r. PPaarraammeetteerrss other of type _N_o_d_e The node to compare against the reference node. RReettuurrnn VVaalluuee unsigned short Returns how the node is positioned relatively to the reference node. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: when the compared nodes are from different DOM implementations that do not coordinate to return consistent implementation- specific results. getFeature introduced in DDOOMM LLeevveell 33 This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in _D_O_M_ _F_e_a_t_u_r_e_s. The specialized object may also be obtained by using binding-specific casting methods but is not necessarily expected to, as discussed in _M_i_x_e_d_ _D_O_M _I_m_p_l_e_m_e_n_t_a_t_i_o_n_s. This method also allow the implementation to provide specialized objects which do not support the Node interface. PPaarraammeetteerrss feature of type _D_O_M_S_t_r_i_n_g The name of the feature requested. Note that any plus sign "+" prepended to the name of the feature will be ignored since it is not significant in the context of this method. version of type _D_O_M_S_t_r_i_n_g This is the version number of the feature to test. RReettuurrnn VVaalluuee _D_O_M_O_b_j_e_c_t Returns an object which implements the specialized APIs of the specified feature and version, if any, or null if there is no object which implements interfaces associated with that feature. If the _D_O_M_O_b_j_e_c_t returned by this method implements the Node interface, it must delegate to the primary core Node and not return results inconsistent with the primary core Node such as attributes, childNodes, etc. NNoo EExxcceeppttiioonnss getUserData introduced in DDOOMM LLeevveell 33 Retrieves the object associated to a key on a this node. The object must first have been set to this node by calling setUserData with the same key. PPaarraammeetteerrss key of type _D_O_M_S_t_r_i_n_g The key the object is associated to. RReettuurrnn VVaalluuee _D_O_M_U_s_e_r_D_a_t_a Returns the _D_O_M_U_s_e_r_D_a_t_a associated to the given key on this node, or null if there was none. NNoo EExxcceeppttiioonnss hasAttributes introduced in DDOOMM LLeevveell 22 Returns whether this node (if it is an element) has any attributes. RReettuurrnn VVaalluuee boolean Returns true if this node has any attributes, false otherwise. NNoo PPaarraammeetteerrss NNoo EExxcceeppttiioonnss hasChildNodes Returns whether this node has any children. RReettuurrnn VVaalluuee boolean Returns true if this node has any children, false otherwise. NNoo PPaarraammeetteerrss NNoo EExxcceeppttiioonnss insertBefore modified in DDOOMM LLeevveell 33 Inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children. If newChild is a _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t object, all of its children are inserted, in the same order, before refChild. If the newChild is already in the tree, it is first removed. NNoottee:: Inserting a node before itself is implementation dependent. PPaarraammeetteerrss newChild of type _N_o_d_e The node to insert. refChild of type _N_o_d_e The reference node, i.e., the node before which the new node must be inserted. RReettuurrnn VVaalluuee _N_o_d_e The node being inserted. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to insert is one of this node's _a_n_c_e_s_t_o_r_s or this node itself, or if this node is of type _D_o_c_u_m_e_n_t and the DOM application attempts to insert a second _D_o_c_u_m_e_n_t_T_y_p_e or _E_l_e_m_e_n_t node. WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the parent of the node being inserted is readonly. NOT_FOUND_ERR: Raised if refChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type _D_o_c_u_m_e_n_t, this exception might be raised if the DOM implementation doesn't support the insertion of a _D_o_c_u_m_e_n_t_T_y_p_e or _E_l_e_m_e_n_t node. isDefaultNamespace introduced in DDOOMM LLeevveell 33 This method checks if the specified namespaceURI is the default namespace or not. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The namespace URI to look for. RReettuurrnn VVaalluuee boolean Returns true if the specified namespaceURI is the default namespace, false otherwise. NNoo EExxcceeppttiioonnss isEqualNode introduced in DDOOMM LLeevveell 33 Tests whether two nodes are equal. 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 _N_o_d_e_._i_s_S_a_m_e_N_o_d_e_(_). All nodes that are the same will also be equal, though the reverse may not be true. Two nodes are equal if and only if the following conditions are satisfied: * The two nodes are of the same type. * The following string attributes are equal: nodeName, localName, namespaceURI, prefix, nodeValue. This is: they are both null, or they have the same length and are character for character identical. * The attributes _N_a_m_e_d_N_o_d_e_M_a_p_s are equal. This is: they are both null, 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. * The childNodes _N_o_d_e_L_i_s_t_s are equal. This is: they are both null, 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. For two _D_o_c_u_m_e_n_t_T_y_p_e nodes to be equal, the following conditions must also be satisfied: * The following string attributes are equal: publicId, systemId, internalSubset. * The entities _N_a_m_e_d_N_o_d_e_M_a_p_s are equal. * The notations _N_a_m_e_d_N_o_d_e_M_a_p_s are equal. On the other hand, the following do not affect equality: the ownerDocument, baseURI, and parentNode attributes, the specified attribute for _A_t_t_r nodes, the schemaTypeInfo attribute for _A_t_t_r and _E_l_e_m_e_n_t nodes, the _T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e attribute for _T_e_x_t nodes, as well as any user data or event listeners registered on the nodes. NNoottee:: As a general rule, anything not mentioned in the description above is not significant in consideration of equality checking. Note that future versions of this specification may take into account more attributes and implementations conform to this specification are expected to be updated accordingly. PPaarraammeetteerrss arg of type _N_o_d_e The node to compare equality with. RReettuurrnn VVaalluuee boolean Returns true if the nodes are equal, false otherwise. NNoo EExxcceeppttiioonnss isSameNode introduced in DDOOMM LLeevveell 33 Returns whether this node is the same node as the given one. This method provides a way to determine whether two Node references returned by the implementation reference the same object. When two Node 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. PPaarraammeetteerrss other of type _N_o_d_e The node to test against. RReettuurrnn VVaalluuee boolean Returns true if the nodes are the same, false otherwise. NNoo EExxcceeppttiioonnss isSupported introduced in DDOOMM LLeevveell 22 Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in _D_O_M_ _F_e_a_t_u_r_e_s. PPaarraammeetteerrss feature of type _D_O_M_S_t_r_i_n_g The name of the feature to test. version of type _D_O_M_S_t_r_i_n_g This is the version number of the feature to test. RReettuurrnn VVaalluuee boolean Returns true if the specified feature is supported on this node, false otherwise. NNoo EExxcceeppttiioonnss lookupNamespaceURI introduced in DDOOMM LLeevveell 33 Look up the namespace URI associated to the given prefix, starting from this node. See _N_a_m_e_s_p_a_c_e_ _U_R_I_ _L_o_o_k_u_p for details on the algorithm used by this method. PPaarraammeetteerrss prefix of type _D_O_M_S_t_r_i_n_g The prefix to look for. If this parameter is null, the method will return the default namespace URI if any. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g Returns the associated namespace URI or null if none is found. NNoo EExxcceeppttiioonnss lookupPrefix introduced in DDOOMM LLeevveell 33 Look up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method. See _N_a_m_e_s_p_a_c_e_ _P_r_e_f_i_x_ _L_o_o_k_u_p for details on the algorithm used by this method. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The namespace URI to look for. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g Returns an associated namespace prefix if found or null if none is found. If more than one prefix are associated to the namespace prefix, the returned namespace prefix is implementation dependent. NNoo EExxcceeppttiioonnss normalize modified in DDOOMM LLeevveell 33 Puts all _T_e_x_t nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates _T_e_x_t nodes, i.e., there are neither adjacent _T_e_x_t nodes nor empty _T_e_x_t 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 [_X_P_o_i_n_t_e_r] lookups) that depend on a particular document tree structure are to be used. If the parameter "_n_o_r_m_a_l_i_z_e_-_c_h_a_r_a_c_t_e_r_s" of the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n object attached to the _N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t is true, this method will also fully normalize the characters of the _T_e_x_t nodes. NNoottee:: In cases where the document contains _C_D_A_T_A_S_e_c_t_i_o_n_s, the normalize operation alone may not be sufficient, since XPointers do not differentiate between _T_e_x_t nodes and _C_D_A_T_A_S_e_c_t_i_o_n nodes. NNoo PPaarraammeetteerrss NNoo RReettuurrnn VVaalluuee NNoo EExxcceeppttiioonnss removeChild modified in DDOOMM LLeevveell 33 Removes the child node indicated by oldChild from the list of children, and returns it. PPaarraammeetteerrss oldChild of type _N_o_d_e The node being removed. RReettuurrnn VVaalluuee _N_o_d_e The node removed. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if oldChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type _D_o_c_u_m_e_n_t, this exception might be raised if the DOM implementation doesn't support the removal of the _D_o_c_u_m_e_n_t_T_y_p_e child or the _E_l_e_m_e_n_t child. replaceChild modified in DDOOMM LLeevveell 33 Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. If newChild is a _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t object, oldChild is replaced by all of the _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t children, which are inserted in the same order. If the newChild is already in the tree, it is first removed. NNoottee:: Replacing a node with itself is implementation dependent. PPaarraammeetteerrss newChild of type _N_o_d_e The new node to put in the child list. oldChild of type _N_o_d_e The node being replaced in the list. RReettuurrnn VVaalluuee _N_o_d_e The node replaced. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to put in is one of this node's _a_n_c_e_s_t_o_r_s or this node itself, or if this node is of type _D_o_c_u_m_e_n_t and the result of the replacement operation would add a second _D_o_c_u_m_e_n_t_T_y_p_e or _E_l_e_m_e_n_t on the _D_o_c_u_m_e_n_t node. WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of the new node is readonly. NOT_FOUND_ERR: Raised if oldChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type _D_o_c_u_m_e_n_t, this exception might be raised if the DOM implementation doesn't support the replacement of the _D_o_c_u_m_e_n_t_T_y_p_e child or _E_l_e_m_e_n_t child. setUserData introduced in DDOOMM LLeevveell 33 Associate an object to a key on this node. The object can later be retrieved from this node by calling getUserData with the same key. PPaarraammeetteerrss key of type _D_O_M_S_t_r_i_n_g The key to associate the object to. data of type _D_O_M_U_s_e_r_D_a_t_a The object to associate to the given key, or null to remove any existing association to that key. handler of type _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r The handler to associate to that key, or null. RReettuurrnn VVaalluuee _D_O_M_U_s_e_r_D_a_t_a Returns the _D_O_M_U_s_e_r_D_a_t_a previously associated to the given key on this node, or null if there was none. NNoo EExxcceeppttiioonnss IInntteerrffaaccee NNooddeeLLiisstt The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are _l_i_v_e. The items in the NodeList are accessible via an integral index, starting from 0. IIDDLL DDeeffiinniittiioonn interface _N_o_d_e_L_i_s_t { _N_o_d_e _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; }; AAttttrriibbuutteess length of type unsigned long, readonly The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive. MMeetthhooddss item Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. PPaarraammeetteerrss index of type unsigned long Index into the collection. RReettuurrnn VVaalluuee _N_o_d_e The node at the indexth position in the NodeList, or null if that is not a valid index. NNoo EExxcceeppttiioonnss IInntteerrffaaccee NNaammeeddNNooddeeMMaapp Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. Note that NamedNodeMap does not inherit from _N_o_d_e_L_i_s_t; NamedNodeMaps are not maintained in any particular order. Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents of a NamedNodeMap, and does not imply that the DOM specifies an order to these Nodes. NamedNodeMap objects in the DOM are _l_i_v_e. IIDDLL DDeeffiinniittiioonn interface _N_a_m_e_d_N_o_d_e_M_a_p { _N_o_d_e _g_e_t_N_a_m_e_d_I_t_e_m(in _D_O_M_S_t_r_i_n_g name); _N_o_d_e _s_e_t_N_a_m_e_d_I_t_e_m(in _N_o_d_e arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e _r_e_m_o_v_e_N_a_m_e_d_I_t_e_m(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; // Introduced in DOM Level 2: _N_o_d_e _g_e_t_N_a_m_e_d_I_t_e_m_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e _s_e_t_N_a_m_e_d_I_t_e_m_N_S(in _N_o_d_e arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e _r_e_m_o_v_e_N_a_m_e_d_I_t_e_m_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; AAttttrriibbuutteess length of type unsigned long, readonly The number of nodes in this map. The range of valid child node indices is 0 to length-1 inclusive. MMeetthhooddss getNamedItem Retrieves a node specified by name. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The nodeName of a node to retrieve. RReettuurrnn VVaalluuee _N_o_d_e A _N_o_d_e (of any type) with the specified nodeName, or null if it does not identify any node in this map. NNoo EExxcceeppttiioonnss getNamedItemNS introduced in DDOOMM LLeevveell 22 Retrieves a node specified by local name and namespace URI. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the node to retrieve. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the node to retrieve. RReettuurrnn VVaalluuee _N_o_d_e A _N_o_d_e (of any type) with the specified local name and namespace URI, or null if they do not identify any node in this map. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). item Returns the indexth item in the map. If index is greater than or equal to the number of nodes in this map, this returns null. PPaarraammeetteerrss index of type unsigned long Index into this map. RReettuurrnn VVaalluuee _N_o_d_e The node at the indexth position in the map, or null if that is not a valid index. NNoo EExxcceeppttiioonnss removeNamedItem 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. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The nodeName of the node to remove. RReettuurrnn VVaalluuee _N_o_d_e The node removed from this map if a node with such a name exists. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_FOUND_ERR: Raised if there is no node named name in this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. removeNamedItemNS introduced in DDOOMM LLeevveell 22 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 _N_o_d_e interface. If so, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the node to remove. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the node to remove. RReettuurrnn VVaalluuee _N_o_d_e The node removed from this map if a node with such a local name and namespace URI exists. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_FOUND_ERR: Raised if there is no node with the specified namespaceURI and localName in this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). setNamedItem Adds a node using its nodeName 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. As the nodeName 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. PPaarraammeetteerrss arg of type _N_o_d_e A node to store in this map. The node will later be accessible using the value of its nodeName attribute. RReettuurrnn VVaalluuee _N_o_d_e If the new _N_o_d_e replaces an existing node the replaced _N_o_d_e is returned, otherwise null is returned. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n WRONG_DOCUMENT_ERR: Raised if arg was created from a different document than the one that created this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. INUSE_ATTRIBUTE_ERR: Raised if arg is an _A_t_t_r that is already an attribute of another _E_l_e_m_e_n_t object. The DOM user must explicitly clone _A_t_t_r nodes to re-use them in other elements. 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. setNamedItemNS introduced in DDOOMM LLeevveell 22 Adds a node using its namespaceURI and localName. 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. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss arg of type _N_o_d_e A node to store in this map. The node will later be accessible using the value of its namespaceURI and localName attributes. RReettuurrnn VVaalluuee _N_o_d_e If the new _N_o_d_e replaces an existing node the replaced _N_o_d_e is returned, otherwise null is returned. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n WRONG_DOCUMENT_ERR: Raised if arg was created from a different document than the one that created this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. INUSE_ATTRIBUTE_ERR: Raised if arg is an _A_t_t_r that is already an attribute of another _E_l_e_m_e_n_t object. The DOM user must explicitly clone _A_t_t_r nodes to re-use them in other elements. 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. NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). IInntteerrffaaccee CChhaarraacctteerrDDaattaa The CharacterData 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 CharacterData, though _T_e_x_t and others do inherit the interface from it. All offsets in this interface start from 0. As explained in the _D_O_M_S_t_r_i_n_g 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 _1_6_-_b_i_t_ _u_n_i_t_s is used whenever necessary to indicate that indexing on CharacterData is done in 16-bit units. IIDDLL DDeeffiinniittiioonn interface _C_h_a_r_a_c_t_e_r_D_a_t_a : _N_o_d_e { attribute _D_O_M_S_t_r_i_n_g _d_a_t_a; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on retrieval readonly attribute unsigned long _l_e_n_g_t_h; _D_O_M_S_t_r_i_n_g _s_u_b_s_t_r_i_n_g_D_a_t_a(in unsigned long offset, in unsigned long count) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _a_p_p_e_n_d_D_a_t_a(in _D_O_M_S_t_r_i_n_g arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _i_n_s_e_r_t_D_a_t_a(in unsigned long offset, in _D_O_M_S_t_r_i_n_g arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _d_e_l_e_t_e_D_a_t_a(in unsigned long offset, in unsigned long count) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _r_e_p_l_a_c_e_D_a_t_a(in unsigned long offset, in unsigned long count, in _D_O_M_S_t_r_i_n_g arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; AAttttrriibbuutteess data of type _D_O_M_S_t_r_i_n_g 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 CharacterData node. However, implementation limits may mean that the entirety of a node's data may not fit into a single _D_O_M_S_t_r_i_n_g. In such cases, the user may call substringData to retrieve the data in appropriately sized pieces. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. EExxcceeppttiioonnss oonn rreettrriieevvaall _D_O_M_E_x_c_e_p_t_i_o_n DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a _D_O_M_S_t_r_i_n_g variable on the implementation platform. length of type unsigned long, readonly The number of _1_6_-_b_i_t_ _u_n_i_t_s that are available through data and the substringData method below. This may have the value zero, i.e., CharacterData nodes may be empty. MMeetthhooddss appendData Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the _D_O_M_S_t_r_i_n_g specified. PPaarraammeetteerrss arg of type _D_O_M_S_t_r_i_n_g The _D_O_M_S_t_r_i_n_g to append. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NNoo RReettuurrnn VVaalluuee deleteData Remove a range of _1_6_-_b_i_t_ _u_n_i_t_s from the node. Upon success, data and length reflect the change. PPaarraammeetteerrss offset of type unsigned long The offset from which to start removing. count of type unsigned long The number of 16-bit units to delete. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NNoo RReettuurrnn VVaalluuee insertData Insert a string at the specified _1_6_-_b_i_t_ _u_n_i_t offset. PPaarraammeetteerrss offset of type unsigned long The character offset at which to insert. arg of type _D_O_M_S_t_r_i_n_g The _D_O_M_S_t_r_i_n_g to insert. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NNoo RReettuurrnn VVaalluuee replaceData Replace the characters starting at the specified _1_6_-_b_i_t_ _u_n_i_t offset with the specified string. PPaarraammeetteerrss offset of type unsigned long The offset from which to start replacing. count of type unsigned long The number of 16-bit units to replace. If the sum of offset and count exceeds length, then all 16-bit units to the end of the data are replaced; (i.e., the effect is the same as a remove method call with the same range, followed by an append method invocation). arg of type _D_O_M_S_t_r_i_n_g The _D_O_M_S_t_r_i_n_g with which the range must be replaced. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NNoo RReettuurrnn VVaalluuee substringData Extracts a range of data from the node. PPaarraammeetteerrss offset of type unsigned long Start offset of substring to extract. count of type unsigned long The number of 16-bit units to extract. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g The specified substring. If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a _D_O_M_S_t_r_i_n_g. IInntteerrffaaccee AAttttrr The Attr interface represents an attribute in an _E_l_e_m_e_n_t object. Typically the allowable values for the attribute are defined in a schema associated with the document. Attr objects inherit the _N_o_d_e 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 _N_o_d_e attributes parentNode, previousSibling, and nextSibling have a null value for Attr 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, Attr nodes may not be immediate children of a _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t. However, they can be associated with _E_l_e_m_e_n_t nodes contained within a _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t. In short, users and implementors of the DOM need to be aware that Attr nodes have some things in common with other objects inheriting the _N_o_d_e interface, but they also are quite distinct. 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 _N_o_d_e_._n_o_d_e_V_a_l_u_e attribute on the Attr instance can also be used to retrieve the string version of the attribute's value(s). If the attribute was not explicitly given a value in the instance document but has a default value provided by the schema associated with the document, an attribute node will be created with specified set to false. Removing attribute nodes for which a default value is defined in the schema generates a new attribute node with the default value and specified set to false. If validation occurred while invoking _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_), attribute nodes with specified equals to false are recomputed according to the default attribute values provided by the schema. If no default value is associate with this attribute in the schema, the attribute node is discarded. In XML, where the value of an attribute can contain entity references, the child nodes of the Attr node may be either _T_e_x_t or _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes (when these are in use; see the description of _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e for discussion). The DOM Core represents all attribute values as simple strings, even if the DTD or schema associated with the document declares them of some specific type such as _t_o_k_e_n_i_z_e_d. The way attribute value normalization is performed by the DOM implementation depends on how much the implementation knows about the schema in use. Typically, the value and nodeValue attributes of an Attr node initially returns the normalized value given by the parser. It is also the case after _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) is called (assuming the right options have been set). But this may not be the case after mutation, independently of whether the mutation is performed by setting the string value directly or by changing the Attr child nodes. In particular, this is true when _cc_hh_aa_rr_aa_cc_tt_ee_rr_ _rr_ee_ff_ee_rr_ee_nn_cc_ee_ss are involved, given that they are not represented in the DOM and they impact attribute value normalization. On the other hand, if the implementation knows about the schema in use when the attribute value is changed, and it is of a different type than CDATA, it may normalize it again at that time. This is especially true of specialized DOM implementations, such as SVG DOM implementations, which store attribute values in an internal form different from a string. The following table gives some examples of the relations between the attribute value in the original document (parsed attribute), the value as exposed in the DOM, and the serialization of the value: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |EExxaammpplleess |PPaarrsseedd aattttrriibbuuttee|IInniittiiaall _AA_tt_tt_rr_.._vv_aa_ll_uu_ee|SSeerriiaalliizzeedd | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_vv_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_aa_tt_tt_rr_ii_bb_uu_tt_ee_ _vv_aa_ll_uu_ee_ _ _ | |Character |"x²=5" |"x²=5" |"x²=5" | |_r_e_f_e_r_e_n_c_e_ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |Built-in |"y<6" |"y<6" |"y<6" | |_c_h_a_r_a_c_t_e_r_ _e_n_t_i_t_y_|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |Literal newline |"x=5 y=6" |"x=5 |"x=5 y=6" | |_b_e_t_w_e_e_n_ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_y_=_6_"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |Normalized |"x=5 |"x=5 y=6" |"x=5 y=6" | |_n_e_w_l_i_n_e_ _b_e_t_w_e_e_n_ _|_y_=_6_"_ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |Entity e with | |IImmpplleemmeennttaattiioonn aanndd|IImmpplleemmeennttaattiioonn aanndd| | |[...]> |LLooaadd OOppttiioonnss |LLooaadd//SSaavvee OOppttiioonnss | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_"_x_=_5_&_e_;_y_=_6_"_ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | IIDDLL DDeeffiinniittiioonn interface _A_t_t_r : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _n_a_m_e; readonly attribute boolean _s_p_e_c_i_f_i_e_d; attribute _D_O_M_S_t_r_i_n_g _v_a_l_u_e; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 2: readonly attribute _E_l_e_m_e_n_t _o_w_n_e_r_E_l_e_m_e_n_t; // Introduced in DOM Level 3: readonly attribute _T_y_p_e_I_n_f_o _s_c_h_e_m_a_T_y_p_e_I_n_f_o; // Introduced in DOM Level 3: readonly attribute boolean _i_s_I_d; }; AAttttrriibbuutteess isId of type boolean, readonly, introduced in DDOOMM LLeevveell 33 Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not. When it is and its value is unique, the ownerElement of this attribute can be retrieved using the method _D_o_c_u_m_e_n_t_._g_e_t_E_l_e_m_e_n_t_B_y_I_d. The implementation could use several ways to determine if an attribute node is known to contain an identifier: * If validation occurred using an XML Schema [_X_M_L_ _S_c_h_e_m_a _P_a_r_t_ _1] while loading the document or while invoking _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_), the post-schema- validation infoset contributions (PSVI contributions) values are used to determine if this attribute is a schema-determined ID attribute using the _s_c_h_e_m_a_- _d_e_t_e_r_m_i_n_e_d_ _I_D definition in [_X_P_o_i_n_t_e_r]. * If validation occurred using a DTD while loading the document or while invoking _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t _(_), the infoset [[ttyyppee ddeeffiinniittiioonn]] value is used to determine if this attribute is a DTD-determined ID attribute using the _D_T_D_-_d_e_t_e_r_m_i_n_e_d_ _I_D definition in [_X_P_o_i_n_t_e_r]. * from the use of the methods _E_l_e_m_e_n_t_._s_e_t_I_d_A_t_t_r_i_b_u_t_e_(_), _E_l_e_m_e_n_t_._s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_S_(_), or _E_l_e_m_e_n_t_._s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_o_d_e_(_), i.e. it is an user- determined ID attribute; NNoottee:: XPointer framework (see section 3.2 in [_X_P_o_i_n_t_e_r]) consider the DOM user-determined ID attribute as being part of the XPointer externally- determined ID definition. * using mechanisms that are outside the scope of this specification, it is then an externally-determined ID attribute. This includes using schema languages different from XML schema and DTD. If validation occurred while invoking _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_), all user-determined ID attributes are reset and all attribute nodes ID information are then reevaluated in accordance to the schema used. As a consequence, if the _A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o attribute contains an ID type, isId will always return true. name of type _D_O_M_S_t_r_i_n_g, readonly Returns the name of this attribute. If _N_o_d_e_._l_o_c_a_l_N_a_m_e is different from null, this attribute is a _q_u_a_l_i_f_i_e_d_ _n_a_m_e. ownerElement of type _E_l_e_m_e_n_t, readonly, introduced in DDOOMM LLeevveell 22 The _E_l_e_m_e_n_t node this attribute is attached to or null if this attribute is not in use. schemaTypeInfo of type _T_y_p_e_I_n_f_o, readonly, introduced in DDOOMM LLeevveell 33 The type information associated with this attribute. While the type information contained in this attribute is guarantee to be correct after loading the document or invoking _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_), schemaTypeInfo may not be reliable if the node was moved. specified of type boolean, readonly True if this attribute was explicitly given a value in the instance document, false otherwise. If the application changed the value of this attribute node (even if it ends up having the same value as the default value) then it is set to true. The implementation may handle attributes with default values from other schemas similarly but applications should use _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) to guarantee this information is up-to-date. value of type _D_O_M_S_t_r_i_n_g 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 getAttribute on the _E_l_e_m_e_n_t interface. On setting, this creates a _T_e_x_t 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 _E_l_e_m_e_n_t_._s_e_t_A_t_t_r_i_b_u_t_e_(_). Some specialized implementations, such as some [_S_V_G_ _1_._1] implementations, may do normalization automatically, even after mutation; in such case, the value on retrieval may differ from the value on setting. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. IInntteerrffaaccee EElleemmeenntt The Element interface represents an _e_l_e_m_e_n_t in an HTML or XML document. Elements may have attributes associated with them; since the Element interface inherits from _N_o_d_e, the generic _N_o_d_e interface attribute attributes may be used to retrieve the set of all attributes for an element. There are methods on the Element interface to retrieve either an _A_t_t_r object by name or an attribute value by name. In XML, where an attribute value may contain entity references, an _A_t_t_r 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 _c_o_n_v_e_n_i_e_n_c_e. NNoottee:: In DOM Level 2, the method normalize is inherited from the _N_o_d_e interface where it was moved. IIDDLL DDeeffiinniittiioonn interface _E_l_e_m_e_n_t : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _t_a_g_N_a_m_e; _D_O_M_S_t_r_i_n_g _g_e_t_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name); void _s_e_t_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name, in _D_O_M_S_t_r_i_n_g value) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _r_e_m_o_v_e_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _A_t_t_r _g_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e(in _D_O_M_S_t_r_i_n_g name); _A_t_t_r _s_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e(in _A_t_t_r newAttr) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _A_t_t_r _r_e_m_o_v_e_A_t_t_r_i_b_u_t_e_N_o_d_e(in _A_t_t_r oldAttr) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e(in _D_O_M_S_t_r_i_n_g name); // Introduced in DOM Level 2: _D_O_M_S_t_r_i_n_g _g_e_t_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: void _s_e_t_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName, in _D_O_M_S_t_r_i_n_g value) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: void _r_e_m_o_v_e_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _A_t_t_r _g_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _A_t_t_r _s_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e_N_S(in _A_t_t_r newAttr) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: boolean _h_a_s_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name); // Introduced in DOM Level 2: boolean _h_a_s_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: readonly attribute _T_y_p_e_I_n_f_o _s_c_h_e_m_a_T_y_p_e_I_n_f_o; // Introduced in DOM Level 3: void _s_e_t_I_d_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name, in boolean isId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: void _s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName, in boolean isId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: void _s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_o_d_e(in _A_t_t_r idAttr, in boolean isId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; AAttttrriibbuutteess schemaTypeInfo of type _T_y_p_e_I_n_f_o, readonly, introduced in DDOOMM LLeevveell 33 The type information associated with this element. tagName of type _D_O_M_S_t_r_i_n_g, readonly The name of the element. If _N_o_d_e_._l_o_c_a_l_N_a_m_e is different from null, this attribute is a _q_u_a_l_i_f_i_e_d_ _n_a_m_e. For example, in: ... , tagName has the value "elementExample". Note that this is case-preserving in XML, as are all of the operations of the DOM. The HTML DOM returns the tagName of an HTML element in the canonical uppercase form, regardless of the case in the source HTML document. MMeetthhooddss getAttribute Retrieves an attribute value by name. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the attribute to retrieve. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g The _A_t_t_r value as a string, or the empty string if that attribute does not have a specified or default value. NNoo EExxcceeppttiioonnss getAttributeNS introduced in DDOOMM LLeevveell 22 Retrieves an attribute value by local name and namespace URI. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute to retrieve. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the attribute to retrieve. RReettuurrnn VVaalluuee _D_O_M_S_t_r_i_n_g The _A_t_t_r value as a string, or the empty string if that attribute does not have a specified or default value. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). getAttributeNode Retrieves an attribute node by name. To retrieve an attribute node by qualified name and namespace URI, use the getAttributeNodeNS method. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name (nodeName) of the attribute to retrieve. RReettuurrnn VVaalluuee _A_t_t_r The _A_t_t_r node with the specified name (nodeName) or null if there is no such attribute. NNoo EExxcceeppttiioonnss getAttributeNodeNS introduced in DDOOMM LLeevveell 22 Retrieves an _A_t_t_r node by local name and namespace URI. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute to retrieve. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the attribute to retrieve. RReettuurrnn VVaalluuee _A_t_t_r The _A_t_t_r node with the specified attribute local name and namespace URI or null if there is no such attribute. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). getElementsByTagName Returns a _N_o_d_e_L_i_s_t of all _d_e_s_c_e_n_d_a_n_t Elements with a given tag name, in _d_o_c_u_m_e_n_t_ _o_r_d_e_r. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the tag to match on. The special value "*" matches all tags. RReettuurrnn VVaalluuee _N_o_d_e_L_i_s_t A list of matching Element nodes. NNoo EExxcceeppttiioonnss getElementsByTagNameNS introduced in DDOOMM LLeevveell 22 Returns a _N_o_d_e_L_i_s_t of all the _d_e_s_c_e_n_d_a_n_t Elements with a given local name and namespace URI in _d_o_c_u_m_e_n_t_ _o_r_d_e_r. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the elements to match on. The special value "*" matches all namespaces. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the elements to match on. The special value "*" matches all local names. RReettuurrnn VVaalluuee _N_o_d_e_L_i_s_t A new _N_o_d_e_L_i_s_t object containing all the matched Elements. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). hasAttribute introduced in DDOOMM LLeevveell 22 Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the attribute to look for. RReettuurrnn VVaalluuee boolean true if an attribute with the given name is specified on this element or has a default value, false otherwise. NNoo EExxcceeppttiioonnss hasAttributeNS introduced in DDOOMM LLeevveell 22 Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute to look for. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the attribute to look for. RReettuurrnn VVaalluuee boolean true if an attribute with the given local name and namespace URI is specified or has a default value on this element, false otherwise. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). removeAttribute 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 _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) to guarantee this information is up-to-date. If no attribute with this name is found, this method has no effect. To remove an attribute by local name and namespace URI, use the removeAttributeNS method. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the attribute to remove. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NNoo RReettuurrnn VVaalluuee removeAttributeNS introduced in DDOOMM LLeevveell 22 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 _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) to guarantee this information is up-to-date. If no attribute with this local name and namespace URI is found, this method has no effect. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute to remove. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the attribute to remove. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). NNoo RReettuurrnn VVaalluuee removeAttributeNode Removes the specified attribute node. If a default value for the removed _A_t_t_r 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 _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) to guarantee this information is up-to-date. PPaarraammeetteerrss oldAttr of type _A_t_t_r The _A_t_t_r node to remove from the attribute list. RReettuurrnn VVaalluuee _A_t_t_r The _A_t_t_r node that was removed. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if oldAttr is not an attribute of the element. setAttribute 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 _A_t_t_r node plus any _T_e_x_t and _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes, build the appropriate subtree, and use setAttributeNode to assign it as the value of an attribute. To set an attribute with a qualified name and namespace URI, use the setAttributeNS method. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the attribute to create or alter. value of type _D_O_M_S_t_r_i_n_g Value to set in string form. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified name is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NNoo RReettuurrnn VVaalluuee setAttributeNS introduced in DDOOMM LLeevveell 22 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 qualifiedName, and its value is changed to be 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 _A_t_t_r node plus any _T_e_x_t and _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes, build the appropriate subtree, and use setAttributeNodeNS or setAttributeNode to assign it as the value of an attribute. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute to create or alter. qualifiedName of type _D_O_M_S_t_r_i_n_g The _q_u_a_l_i_f_i_e_d_ _n_a_m_e of the attribute to create or alter. value of type _D_O_M_S_t_r_i_n_g The value to set in string form. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INVALID_CHARACTER_ERR: Raised if the specified qualified name is not an XML name according to the XML version in use specified in the _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n attribute. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NAMESPACE_ERR: Raised if the qualifiedName is malformed per the Namespaces in XML specification, if the qualifiedName has a prefix and the namespaceURI is null, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_X_M_L_/_1_9_9_8_/_n_a_m_e_s_p_a_c_e", if the qualifiedName or its prefix is "xmlns" and the namespaceURI is different from "_h_t_t_p_:_/_/ _w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/", or if the namespaceURI is "_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/" and neither the qualifiedName nor its prefix is "xmlns". NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). NNoo RReettuurrnn VVaalluuee setAttributeNode Adds a new attribute node. If an attribute with that name (nodeName) is already present in the element, it is replaced by the new one. Replacing an attribute node by itself has no effect. To add a new attribute node with a qualified name and namespace URI, use the setAttributeNodeNS method. PPaarraammeetteerrss newAttr of type _A_t_t_r The _A_t_t_r node to add to the attribute list. RReettuurrnn VVaalluuee _A_t_t_r If the newAttr attribute replaces an existing attribute, the replaced _A_t_t_r node is returned, otherwise null is returned. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone _A_t_t_r nodes to re-use them in other elements. setAttributeNodeNS introduced in DDOOMM LLeevveell 22 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. Per [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace. PPaarraammeetteerrss newAttr of type _A_t_t_r The _A_t_t_r node to add to the attribute list. RReettuurrnn VVaalluuee _A_t_t_r If the newAttr attribute replaces an existing attribute with the same _l_o_c_a_l_ _n_a_m_e and _n_a_m_e_s_p_a_c_e_ _U_R_I, the replaced _A_t_t_r node is returned, otherwise null is returned. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone _A_t_t_r nodes to re-use them in other elements. NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [_H_T_M_L_ _4_._0_1]). setIdAttribute introduced in DDOOMM LLeevveell 33 If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute. This affects the value of _A_t_t_r_._i_s_I_d and the behavior of _D_o_c_u_m_e_n_t_._g_e_t_E_l_e_m_e_n_t_B_y_I_d, but does not change any schema that may be in use, in particular this does not affect the _A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o of the specified _A_t_t_r node. Use the value false for the parameter isId to undeclare an attribute for being a user-determined ID attribute. To specify an attribute by local name and namespace URI, use the setIdAttributeNS method. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the attribute. isId of type boolean Whether the attribute is a of type ID. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if the specified node is not an attribute of this element. NNoo RReettuurrnn VVaalluuee setIdAttributeNS introduced in DDOOMM LLeevveell 33 If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute. This affects the value of _A_t_t_r_._i_s_I_d and the behavior of _D_o_c_u_m_e_n_t_._g_e_t_E_l_e_m_e_n_t_B_y_I_d, but does not change any schema that may be in use, in particular this does not affect the _A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o of the specified _A_t_t_r node. Use the value false for the parameter isId to undeclare an attribute for being a user-determined ID attribute. PPaarraammeetteerrss namespaceURI of type _D_O_M_S_t_r_i_n_g The _n_a_m_e_s_p_a_c_e_ _U_R_I of the attribute. localName of type _D_O_M_S_t_r_i_n_g The _l_o_c_a_l_ _n_a_m_e of the attribute. isId of type boolean Whether the attribute is a of type ID. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if the specified node is not an attribute of this element. NNoo RReettuurrnn VVaalluuee setIdAttributeNode introduced in DDOOMM LLeevveell 33 If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute. This affects the value of _A_t_t_r_._i_s_I_d and the behavior of _D_o_c_u_m_e_n_t_._g_e_t_E_l_e_m_e_n_t_B_y_I_d, but does not change any schema that may be in use, in particular this does not affect the _A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o of the specified _A_t_t_r node. Use the value false for the parameter isId to undeclare an attribute for being a user-determined ID attribute. PPaarraammeetteerrss idAttr of type _A_t_t_r The attribute node. isId of type boolean Whether the attribute is a of type ID. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if the specified node is not an attribute of this element. NNoo RReettuurrnn VVaalluuee IInntteerrffaaccee TTeexxtt The Text interface inherits from _C_h_a_r_a_c_t_e_r_D_a_t_a and represents the textual content (termed _cc_hh_aa_rr_aa_cc_tt_ee_rr_ _dd_aa_tt_aa in XML) of an _E_l_e_m_e_n_t or _A_t_t_r. If there is no markup inside an element's content, the text is contained in a single object implementing the Text interface that is the only child of the element. If there is markup, it is parsed into the _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_s (elements, comments, etc.) and Text nodes that form the list of children of the element. When a document is first made available via the DOM, there is only one Text node for each block of text. Users may create adjacent Text 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 _N_o_d_e_._n_o_r_m_a_l_i_z_e_(_) method merges any such adjacent Text objects into a single node for each block of text. No lexical check is done on the content of a Text node and, depending on its position in the document, some characters must be escaped during serialization using character references; e.g. the characters "<&" if the textual content is part of an element or of an attribute, the character sequence "]]>" when part of an element, the quotation mark character " or the apostrophe character ' when part of an attribute. IIDDLL DDeeffiinniittiioonn interface _T_e_x_t : _C_h_a_r_a_c_t_e_r_D_a_t_a { _T_e_x_t _s_p_l_i_t_T_e_x_t(in unsigned long offset) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: readonly attribute boolean _i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _w_h_o_l_e_T_e_x_t; // Introduced in DOM Level 3: _T_e_x_t _r_e_p_l_a_c_e_W_h_o_l_e_T_e_x_t(in _D_O_M_S_t_r_i_n_g content) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; AAttttrriibbuutteess isElementContentWhitespace of type boolean, readonly, introduced in DDOOMM LLeevveell 33 Returns whether this text node contains _ee_ll_ee_mm_ee_nn_tt_ _cc_oo_nn_tt_ee_nn_tt _ww_hh_ii_tt_ee_ss_pp_aa_cc_ee, often abusively called "ignorable whitespace". The text node is determined to contain whitespace in element content during the load of the document or if validation occurs while using _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_). wholeText of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 Returns all text of Text nodes _l_o_g_i_c_a_l_l_y_-_a_d_j_a_c_e_n_t_ _t_e_x_t_ _n_o_d_e_s to this node, concatenated in document order. For instance, in the example below wholeText on the Text node that contains "bar" returns "barfoo", while on the Text node that contains "foo" it returns "barfoo". [barTextNode.wholeText value is "barfoo"] Figure: barTextNode.wholeText value is "barfoo" [_S_V_G_ _1_._0 _v_e_r_s_i_o_n] MMeetthhooddss replaceWholeText introduced in DDOOMM LLeevveell 33 Replaces the text of the current node and all _l_o_g_i_c_a_l_l_y_- _a_d_j_a_c_e_n_t_ _t_e_x_t_ _n_o_d_e_s with the specified text. All _l_o_g_i_c_a_l_l_y_- _a_d_j_a_c_e_n_t_ _t_e_x_t_ _n_o_d_e_s are removed including the current node unless it was the recipient of the replacement text. This method returns the node which received the replacement text. The returned node is: * null, when the replacement text is the empty string; * the current node, except when the current node is _r_e_a_d_- _o_n_l_y; * a new Text node of the same type (Text or _C_D_A_T_A_S_e_c_t_i_o_n) as the current node inserted at the location of the replacement. For instance, in the above example calling replaceWholeText on the Text node that contains "bar" with "yo" in argument results in the following: [barTextNode.replaceWholeText("yo") modifies the textual content of barTextNode with "yo"] Figure: barTextNode.replaceWholeText("yo") modifies the textual content of barTextNode with "yo" [_S_V_G_ _1_._0_ _v_e_r_s_i_o_n] Where the nodes to be removed are read-only descendants of an _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e, the _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e must be removed instead of the read-only nodes. If any _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e to be removed has descendants that are not _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e, Text, or _C_D_A_T_A_S_e_c_t_i_o_n nodes, the replaceWholeText method must fail before performing any modification of the document, raising a _D_O_M_E_x_c_e_p_t_i_o_n with the code _N_O___M_O_D_I_F_I_C_A_T_I_O_N___A_L_L_O_W_E_D___E_R_R. For instance, in the example below calling replaceWholeText on the Text node that contains "bar" fails, because the _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node "ent" contains an _E_l_e_m_e_n_t node which cannot be removed. [barTextNode.replaceWholeText("yo") raises a NO_MODIFICATION_ALLOWED_ERR DOMException] Figure: barTextNode.replaceWholeText("yo") raises a NO_MODIFICATION_ALLOWED_ERR DOMException [_S_V_G_ _1_._0_ _v_e_r_s_i_o_n] PPaarraammeetteerrss content of type _D_O_M_S_t_r_i_n_g The content of the replacing Text node. RReettuurrnn VVaalluuee _T_e_x_t The Text node created with the specified content. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised if one of the Text nodes being replaced is readonly. splitText Breaks this node into two nodes at the specified offset, keeping both in the tree as _s_i_b_l_i_n_g_s. After being split, this node will contain all the content up to the offset point. A new node of the same type, which contains all the content at and after the offset point, is returned. If the original node had a parent node, the new node is inserted as the next _s_i_b_l_i_n_g of the original node. When the offset is equal to the length of this node, the new node has no data. PPaarraammeetteerrss offset of type unsigned long The _1_6_-_b_i_t_ _u_n_i_t offset at which to split, starting from 0. RReettuurrnn VVaalluuee _T_e_x_t The new node, of the same type as this node. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. IInntteerrffaaccee CCoommmmeenntt This interface inherits from _C_h_a_r_a_c_t_e_r_D_a_t_a and represents the content of a comment, i.e., all the characters between the starting ''. 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. No lexical check is done on the content of a comment and it is therefore possible to have the character sequence "--" (double-hyphen) in the content, which is illegal in a comment per section 2.5 of [_X_M_L_ _1_._0]. The presence of this character sequence must generate a fatal error during serialization. IIDDLL DDeeffiinniittiioonn interface _C_o_m_m_e_n_t : _C_h_a_r_a_c_t_e_r_D_a_t_a { }; IInntteerrffaaccee TTyyppeeIInnffoo (introduced in DDOOMM LLeevveell 33) The TypeInfo interface represents a type referenced from _E_l_e_m_e_n_t or _A_t_t_r nodes, specified in the _s_c_h_e_m_a_s associated with the document. The type is a pair of a _n_a_m_e_s_p_a_c_e_ _U_R_I and name properties, and depends on the document's schema. If the document's schema is an XML DTD [_X_M_L_ _1_._0], the values are computed as follows: * If this type is referenced from an _A_t_t_r node, typeNamespace is "http://www.w3.org/TR/REC-xml" and typeName represents the [[aattttrriibbuuttee ttyyppee]] property in the [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t]. If there is no declaration for the attribute, typeNamespace and typeName are null. * If this type is referenced from an _E_l_e_m_e_n_t node, typeNamespace and typeName are null. If the document's schema is an XML Schema [_X_M_L_ _S_c_h_e_m_a_ _P_a_r_t_ _1], the values are computed as follows using the post-schema-validation infoset contributions (also called PSVI contributions): * If the [[vvaalliiddiittyy]] property exists AND is ""iinnvvaalliidd"" or ""nnoottKKnnoowwnn"": the {target namespace} and {name} properties of the declared type if available, otherwise null. NNoottee:: At the time of writing, the XML Schema specification does not require exposing the declared type. Thus, DOM implementations might choose not to provide type information if validity is not valid. * If the [[vvaalliiddiittyy]] property exists and is ""vvaalliidd"": 1. If [[mmeemmbbeerr ttyyppee ddeeffiinniittiioonn]] exists: 1. If {name} is not absent, then expose {name} and {target namespace} properties of the [[mmeemmbbeerr ttyyppee ddeeffiinniittiioonn]] property; 2. Otherwise, expose the namespace and local name of the corresponding _a_n_o_n_y_m_o_u_s_ _t_y_p_e_ _n_a_m_e. 2. If the [[ttyyppee ddeeffiinniittiioonn]] property exists: 1. If {name} is not absent, then expose {name} and {target namespace} properties of the [[ttyyppee ddeeffiinniittiioonn]] property; 2. Otherwise, expose the namespace and local name of the corresponding _a_n_o_n_y_m_o_u_s_ _t_y_p_e_ _n_a_m_e. 3. If the [[mmeemmbbeerr ttyyppee ddeeffiinniittiioonn aannoonnyymmoouuss]] exists: 1. If it is false, then expose [[mmeemmbbeerr ttyyppee ddeeffiinniittiioonn nnaammee]] and [[mmeemmbbeerr ttyyppee ddeeffiinniittiioonn nnaammeessppaaccee]] properties; 2. Otherwise, expose the namespace and local name of the corresponding _a_n_o_n_y_m_o_u_s_ _t_y_p_e_ _n_a_m_e. 4. If the [[ttyyppee ddeeffiinniittiioonn aannoonnyymmoouuss]] exists: 1. If it is false, then expose [[ttyyppee ddeeffiinniittiioonn nnaammee]] and [[ttyyppee ddeeffiinniittiioonn nnaammeessppaaccee]] properties; 2. Otherwise, expose the namespace and local name of the corresponding _a_n_o_n_y_m_o_u_s_ _t_y_p_e_ _n_a_m_e. NNoottee:: Other schema languages are outside the scope of the W3C and therefore should define how to represent their type systems using TypeInfo. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _T_y_p_e_I_n_f_o { readonly attribute _D_O_M_S_t_r_i_n_g _t_y_p_e_N_a_m_e; readonly attribute _D_O_M_S_t_r_i_n_g _t_y_p_e_N_a_m_e_s_p_a_c_e; // DerivationMethods const unsigned long _D_E_R_I_V_A_T_I_O_N___R_E_S_T_R_I_C_T_I_O_N = 0x00000001; const unsigned long _D_E_R_I_V_A_T_I_O_N___E_X_T_E_N_S_I_O_N = 0x00000002; const unsigned long _D_E_R_I_V_A_T_I_O_N___U_N_I_O_N = 0x00000004; const unsigned long _D_E_R_I_V_A_T_I_O_N___L_I_S_T = 0x00000008; boolean _i_s_D_e_r_i_v_e_d_F_r_o_m(in _D_O_M_S_t_r_i_n_g typeNamespaceArg, in _D_O_M_S_t_r_i_n_g typeNameArg, in unsigned long derivationMethod); }; DDeeffiinniittiioonn ggrroouupp DDeerriivvaattiioonnMMeetthhooddss These are the available values for the derivationMethod parameter used by the method _T_y_p_e_I_n_f_o_._i_s_D_e_r_i_v_e_d_F_r_o_m_(_). It is a set of possible types of derivation, and the values represent bit positions. If a bit in the derivationMethod parameter is set to 1, the corresponding type of derivation will be taken into account when evaluating the derivation between the reference type definition and the other type definition. When using the isDerivedFrom method, combining all of them in the derivationMethod parameter is equivalent to invoking the method for each of them separately and combining the results with the OR boolean function. This specification only defines the type of derivation for XML Schema. In addition to the types of derivation listed below, please note that: * any type derives from xsd:anyType. * any simple type derives from xsd:anySimpleType by restriction. * any complex type does not derive from xsd:anySimpleType by restriction. DDeeffiinneedd CCoonnssttaannttss DERIVATION_EXTENSION If the document's schema is an XML Schema [_X_M_L_ _S_c_h_e_m_a _P_a_r_t_ _1], this constant represents the derivation by _ee_xx_tt_ee_nn_ss_ii_oo_nn. The reference type definition is derived by extension from the other type definition if the other type definition can be reached recursively following the {base type definition} property from the reference type definition, and at least one of the ddeerriivvaattiioonn mmeetthhooddss involved is an extension. DERIVATION_LIST If the document's schema is an XML Schema [_X_M_L_ _S_c_h_e_m_a _P_a_r_t_ _1], this constant represents the _ll_ii_ss_tt. The reference type definition is derived by list from the other type definition if there exists two type definitions T1 and T2 such as the reference type definition is derived from T1 by DERIVATION_RESTRICTION or DERIVATION_EXTENSION, T2 is derived from the other type definition by DERIVATION_RESTRICTION, T1 has {variety} lliisstt, and T2 is the {item type definition}. Note that T1 could be the same as the reference type definition, and T2 could be the same as the other type definition. DERIVATION_RESTRICTION If the document's schema is an XML Schema [_X_M_L_ _S_c_h_e_m_a _P_a_r_t_ _1], this constant represents the derivation by _rr_ee_ss_tt_rr_ii_cc_tt_ii_oo_nn if complex types are involved, or a _rr_ee_ss_tt_rr_ii_cc_tt_ii_oo_nn if simple types are involved. The reference type definition is derived by restriction from the other type definition if the other type definition is the same as the reference type definition, or if the other type definition can be reached recursively following the {base type definition} property from the reference type definition, and all the ddeerriivvaattiioonn mmeetthhooddss involved are restriction. DERIVATION_UNION If the document's schema is an XML Schema [_X_M_L_ _S_c_h_e_m_a _P_a_r_t_ _1], this constant represents the _uu_nn_ii_oo_nn if simple types are involved. The reference type definition is derived by union from the other type definition if there exists two type definitions T1 and T2 such as the reference type definition is derived from T1 by DERIVATION_RESTRICTION or DERIVATION_EXTENSION, T2 is derived from the other type definition by DERIVATION_RESTRICTION, T1 has {variety} uunniioonn, and one of the {member type definitions} is T2. Note that T1 could be the same as the reference type definition, and T2 could be the same as the other type definition. AAttttrriibbuutteess typeName of type _D_O_M_S_t_r_i_n_g, readonly The name of a type declared for the associated element or attribute, or null if unknown. typeNamespace of type _D_O_M_S_t_r_i_n_g, readonly The namespace of the type declared for the associated element or attribute or null if the element does not have declaration or if no namespace information is available. MMeetthhooddss isDerivedFrom This method returns if there is a derivation between the reference type definition, i.e. the TypeInfo on which the method is being called, and the other type definition, i.e. the one passed as parameters. PPaarraammeetteerrss typeNamespaceArg of type _D_O_M_S_t_r_i_n_g the namespace of the other type definition. typeNameArg of type _D_O_M_S_t_r_i_n_g the name of the other type definition. derivationMethod of type unsigned long the type of derivation and conditions applied between two types, as described in the list of constants provided in this interface. RReettuurrnn VVaalluuee boolean If the document's schema is a DTD or no schema is associated with the document, this method will always return false. If the document's schema is an XML Schema, the method will true if the reference type definition is derived from the other type definition according to the derivation parameter. If the value of the parameter is 0 (no bit is set to 1 for the derivationMethod parameter), the method will return true if the other type definition can be reached by recursing any combination of {base type definition}, {item type definition}, or {member type definitions} from the reference type definition. NNoo EExxcceeppttiioonnss IInntteerrffaaccee UUsseerrDDaattaaHHaannddlleerr (introduced in DDOOMM LLeevveell 33) When associating an object to a key on a node using _N_o_d_e_._s_e_t_U_s_e_r_D_a_t_a_(_) 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. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r { // OperationType const unsigned short _N_O_D_E___C_L_O_N_E_D = 1; const unsigned short _N_O_D_E___I_M_P_O_R_T_E_D = 2; const unsigned short _N_O_D_E___D_E_L_E_T_E_D = 3; const unsigned short _N_O_D_E___R_E_N_A_M_E_D = 4; const unsigned short _N_O_D_E___A_D_O_P_T_E_D = 5; void _h_a_n_d_l_e(in unsigned short operation, in _D_O_M_S_t_r_i_n_g key, in _D_O_M_U_s_e_r_D_a_t_a data, in _N_o_d_e src, in _N_o_d_e dst); }; DDeeffiinniittiioonn ggrroouupp OOppeerraattiioonnTTyyppee An integer indicating the type of operation being performed on a node. DDeeffiinneedd CCoonnssttaannttss NODE_ADOPTED The node is adopted, using _D_o_c_u_m_e_n_t_._a_d_o_p_t_N_o_d_e_(_). NODE_CLONED The node is cloned, using _N_o_d_e_._c_l_o_n_e_N_o_d_e_(_). NODE_DELETED The node is deleted. NNoottee:: This may not be supported or may not be reliable in certain environments, such as Java, where the implementation has no real control over when objects are actually deleted. NODE_IMPORTED The node is imported, using _D_o_c_u_m_e_n_t_._i_m_p_o_r_t_N_o_d_e_(_). NODE_RENAMED The node is renamed, using _D_o_c_u_m_e_n_t_._r_e_n_a_m_e_N_o_d_e_(_). MMeetthhooddss handle This method is called whenever the node for which this handler is registered is imported or cloned. DOM applications must not raise exceptions in a UserDataHandler. The effect of throwing exceptions from the handler is DOM implementation dependent. PPaarraammeetteerrss operation of type unsigned short Specifies the type of operation that is being performed on the node. key of type _D_O_M_S_t_r_i_n_g Specifies the key for which this handler is being called. data of type _D_O_M_U_s_e_r_D_a_t_a Specifies the data for which this handler is being called. src of type _N_o_d_e Specifies the node being cloned, adopted, imported, or renamed. This is null when the node is being deleted. dst of type _N_o_d_e Specifies the node newly created if any, or null. NNoo RReettuurrnn VVaalluuee NNoo EExxcceeppttiioonnss IInntteerrffaaccee DDOOMMEErrrroorr (introduced in DDOOMM LLeevveell 33) DOMError is an interface that describes an error. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_E_r_r_o_r { // ErrorSeverity const unsigned short _S_E_V_E_R_I_T_Y___W_A_R_N_I_N_G = 1; const unsigned short _S_E_V_E_R_I_T_Y___E_R_R_O_R = 2; const unsigned short _S_E_V_E_R_I_T_Y___F_A_T_A_L___E_R_R_O_R = 3; readonly attribute unsigned short _s_e_v_e_r_i_t_y; readonly attribute _D_O_M_S_t_r_i_n_g _m_e_s_s_a_g_e; readonly attribute _D_O_M_S_t_r_i_n_g _t_y_p_e; readonly attribute _D_O_M_O_b_j_e_c_t _r_e_l_a_t_e_d_E_x_c_e_p_t_i_o_n; readonly attribute _D_O_M_O_b_j_e_c_t _r_e_l_a_t_e_d_D_a_t_a; readonly attribute _D_O_M_L_o_c_a_t_o_r _l_o_c_a_t_i_o_n; }; DDeeffiinniittiioonn ggrroouupp EErrrroorrSSeevveerriittyy An integer indicating the severity of the error. DDeeffiinneedd CCoonnssttaannttss SEVERITY_ERROR The severity of the error described by the DOMError is error. A SEVERITY_ERROR may not cause the processing to stop if the error can be recovered, unless _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r_._h_a_n_d_l_e_E_r_r_o_r_(_) returns false. SEVERITY_FATAL_ERROR The severity of the error described by the DOMError is fatal error. A SEVERITY_FATAL_ERROR will cause the normal processing to stop. The return value of _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r_._h_a_n_d_l_e_E_r_r_o_r_(_) is ignored unless the implementation chooses to continue, in which case the behavior becomes undefined. SEVERITY_WARNING The severity of the error described by the DOMError is warning. A SEVERITY_WARNING will not cause the processing to stop, unless _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r_._h_a_n_d_l_e_E_r_r_o_r _(_) returns false. AAttttrriibbuutteess location of type _D_O_M_L_o_c_a_t_o_r, readonly The location of the error. message of type _D_O_M_S_t_r_i_n_g, readonly An implementation specific string describing the error that occurred. relatedData of type _D_O_M_O_b_j_e_c_t, readonly The related _D_O_M_E_r_r_o_r_._t_y_p_e dependent data if any. relatedException of type _D_O_M_O_b_j_e_c_t, readonly The related platform dependent exception if any. severity of type unsigned short, readonly The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR. type of type _D_O_M_S_t_r_i_n_g, readonly A _D_O_M_S_t_r_i_n_g indicating which related data is expected in relatedData. Users should refer to the specification of the error in order to find its _D_O_M_S_t_r_i_n_g type and relatedData definitions if any. NNoottee:: As an example, _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) does generate warnings when the "_s_p_l_i_t_-_c_d_a_t_a_-_s_e_c_t_i_o_n_s" parameter is in use. Therefore, the method generates a SEVERITY_WARNING with type "cdata-sections-splitted" and the first _C_D_A_T_A_S_e_c_t_i_o_n node in document order resulting from the split is returned by the relatedData attribute. IInntteerrffaaccee DDOOMMEErrrroorrHHaannddlleerr (introduced in DDOOMM LLeevveell 33) DOMErrorHandler 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). A DOMErrorHandler object can be attached to a _D_o_c_u_m_e_n_t using the "_e_r_r_o_r_- _h_a_n_d_l_e_r" on the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n interface. If more than one error needs to be reported during an operation, the sequence and numbers of the errors passed to the error handler are implementation dependent. The application that is using the DOM implementation is expected to implement this interface. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r { boolean _h_a_n_d_l_e_E_r_r_o_r(in _D_O_M_E_r_r_o_r error); }; MMeetthhooddss handleError This method is called on the error handler when an error occurs. If an exception is thrown from this method, it is considered to be equivalent of returning true. PPaarraammeetteerrss error of type _D_O_M_E_r_r_o_r The error object that describes the error. This object may be reused by the DOM implementation across multiple calls to the handleError method. RReettuurrnn VVaalluuee boolean If the handleError method returns false, the DOM implementation should stop the current processing when possible. If the method returns true, the processing may continue depending on _D_O_M_E_r_r_o_r_._s_e_v_e_r_i_t_y. NNoo EExxcceeppttiioonnss IInntteerrffaaccee DDOOMMLLooccaattoorr (introduced in DDOOMM LLeevveell 33) DOMLocator is an interface that describes a location (e.g. where an error occurred). IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_L_o_c_a_t_o_r { readonly attribute long _l_i_n_e_N_u_m_b_e_r; readonly attribute long _c_o_l_u_m_n_N_u_m_b_e_r; readonly attribute long _b_y_t_e_O_f_f_s_e_t; readonly attribute long _u_t_f_1_6_O_f_f_s_e_t; readonly attribute _N_o_d_e _r_e_l_a_t_e_d_N_o_d_e; readonly attribute _D_O_M_S_t_r_i_n_g _u_r_i; }; AAttttrriibbuutteess byteOffset of type long, readonly The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available. columnNumber of type long, readonly The column number this locator is pointing to, or -1 if there is no column number available. lineNumber of type long, readonly The line number this locator is pointing to, or -1 if there is no column number available. relatedNode of type _N_o_d_e, readonly The node this locator is pointing to, or null if no node is available. uri of type _D_O_M_S_t_r_i_n_g, readonly The URI this locator is pointing to, or null if no URI is available. utf16Offset of type long, readonly The UTF-16, as defined in [_U_n_i_c_o_d_e] and Amendment 1 of [_I_S_O_/ _I_E_C_ _1_0_6_4_6], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available. IInntteerrffaaccee DDOOMMCCoonnffiigguurraattiioonn (introduced in DDOOMM LLeevveell 33) The DOMConfiguration interface represents the configuration of a document and maintains a table of recognized parameters. Using the configuration, it is possible to change _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) behavior, such as replacing the _C_D_A_T_A_S_e_c_t_i_o_n nodes with _T_e_x_t nodes or specifying the type of the _s_c_h_e_m_a that must be used when the validation of the _D_o_c_u_m_e_n_t is requested. DOMConfiguration objects are also used in [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d _a_n_d_ _S_a_v_e] in the DOMParser and DOMSerializer interfaces. The parameter names used by the DOMConfiguration object are defined throughout the DOM Level 3 specifications. Names are case-insensitive. To avoid possible conflicts, as a convention, names referring to parameters defined outside the DOM specification should be made unique. Because parameters are exposed as properties in the _E_C_M_A_S_c_r_i_p_t_ _L_a_n_g_u_a_g_e_ _B_i_n_d_i_n_g, names are recommended to follow the section"5.16 Identifiers"of [_U_n_i_c_o_d_e] with the addition of the character '-' (HYPHEN-MINUS) but it is not enforced by the DOM implementation. DOM Level 3 Core Implementations are required to recognize all parameters defined in this specification. Some parameter values may also be required to be supported by the implementation. Refer to the definition of the parameter to know if a value must be supported or not. NNoottee:: Parameters are similar to features and properties used in SAX2 [_S_A_X]. The following list of parameters defined in the DOM: "canonical-form" true [ooppttiioonnaall] Canonicalize the document according to the rules specified in [_C_a_n_o_n_i_c_a_l_ _X_M_L], such as removing the _D_o_c_u_m_e_n_t_T_y_p_e node (if any) from the tree, or removing superfluous namespace declarations from each element. 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. In addition, Setting this parameter to true will also set the state of the parameters listed below. Later changes to the state of one of those parameters will revert "_c_a_n_o_n_i_c_a_l_-_f_o_r_m" back to false. Parameters set to false: "_e_n_t_i_t_i_e_s", "_n_o_r_m_a_l_i_z_e_-_c_h_a_r_a_c_t_e_r_s", "_c_d_a_t_a_-_s_e_c_t_i_o_n_s". Parameters set to true: "_n_a_m_e_s_p_a_c_e_s", "_n_a_m_e_s_p_a_c_e_- _d_e_c_l_a_r_a_t_i_o_n_s", "_w_e_l_l_-_f_o_r_m_e_d", "_e_l_e_m_e_n_t_-_c_o_n_t_e_n_t_-_w_h_i_t_e_s_p_a_c_e". Other parameters are not changed unless explicitly specified in the description of the parameters. false [rreeqquuiirreedd] (ddeeffaauulltt) Do not canonicalize the document. "cdata-sections" true [rreeqquuiirreedd] (ddeeffaauulltt) Keep _C_D_A_T_A_S_e_c_t_i_o_n nodes in the document. false [rreeqquuiirreedd] Transform _C_D_A_T_A_S_e_c_t_i_o_n nodes in the document into _T_e_x_t nodes. The new _T_e_x_t node is then combined with any adjacent _T_e_x_t node. "check-character-normalization" true [ooppttiioonnaall] Check if the characters in the document are _f_u_l_l_y_ _n_o_r_m_a_l_i_z_e_d, as defined in appendix B of [_X_M_L_ _1_._1]. When a sequence of characters is encountered that fails normalization checking, an error with the _D_O_M_E_r_r_o_r_._t_y_p_e equals to "check-character- normalization-failure" is issued. false [rreeqquuiirreedd] (ddeeffaauulltt) Do not check if characters are normalized. "comments" true [rreeqquuiirreedd] (ddeeffaauulltt) Keep _C_o_m_m_e_n_t nodes in the document. false [rreeqquuiirreedd] Discard _C_o_m_m_e_n_t nodes in the document. "datatype-normalization" true [ooppttiioonnaall] Expose schema normalized values in the tree, such as _X_M_L _S_c_h_e_m_a_ _n_o_r_m_a_l_i_z_e_d_ _v_a_l_u_e_s in the case of XML Schema. Since this parameter requires to have _s_c_h_e_m_a information, the "_v_a_l_i_d_a_t_e" parameter will also be set to true. Having this parameter activated when "validate" is false has no effect and no schema-normalization will happen. NNoottee:: Since the document contains the result of the XML 1.0 processing, this parameter does not apply to attribute value normalization as defined in section 3.3.3 of [_X_M_L_ _1_._0] and is only meant for _s_c_h_e_m_a languages other than Document Type Definition (DTD). false [rreeqquuiirreedd] (ddeeffaauulltt) Do not perform schema normalization on the tree. "element-content-whitespace" true [rreeqquuiirreedd] (ddeeffaauulltt) Keep all whitespaces in the document. false [ooppttiioonnaall] Discard all _T_e_x_t nodes that contain whitespaces in element content, as described in _[[_ee_ll_ee_mm_ee_nn_tt_ _cc_oo_nn_tt_ee_nn_tt_ _ww_hh_ii_tt_ee_ss_pp_aa_cc_ee_]]. The implementation is expected to use the attribute _T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e to determine if a _T_e_x_t node should be discarded or not. "entities" true [rreeqquuiirreedd] (ddeeffaauulltt) Keep _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes in the document. false [rreeqquuiirreedd] Remove all _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes from the document, putting the entity expansions directly in their place. _T_e_x_t nodes are normalized, as defined in _N_o_d_e_._n_o_r_m_a_l_i_z_e. Only _u_n_e_x_p_a_n_d_e_d _e_n_t_i_t_y_ _r_e_f_e_r_e_n_c_e_s are kept in the document. NNoottee:: This parameter does not affect _E_n_t_i_t_y nodes. "error-handler" [rreeqquuiirreedd] Contains a _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r object. If an error is encountered in the document, the implementation will call back the _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r registered using this parameter. The implementation may provide a default _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r object. When called, _D_O_M_E_r_r_o_r_._r_e_l_a_t_e_d_D_a_t_a will contain the closest node to where the error occurred. If the implementation is unable to determine the node where the error occurs, _D_O_M_E_r_r_o_r_._r_e_l_a_t_e_d_D_a_t_a will contain the _D_o_c_u_m_e_n_t node. Mutations to the document from within an error handler will result in implementation dependent behavior. "infoset" true [rreeqquuiirreedd] Keep in the document the information defined in the XML Information Set [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t]. This forces the following parameters to false: "_v_a_l_i_d_a_t_e_-_i_f_- _s_c_h_e_m_a", "_e_n_t_i_t_i_e_s", "_d_a_t_a_t_y_p_e_-_n_o_r_m_a_l_i_z_a_t_i_o_n", "_c_d_a_t_a_- _s_e_c_t_i_o_n_s". This forces the following parameters to true: "_n_a_m_e_s_p_a_c_e_- _d_e_c_l_a_r_a_t_i_o_n_s", "_w_e_l_l_-_f_o_r_m_e_d", "_e_l_e_m_e_n_t_-_c_o_n_t_e_n_t_-_w_h_i_t_e_s_p_a_c_e", "_c_o_m_m_e_n_t_s", "_n_a_m_e_s_p_a_c_e_s". Other parameters are not changed unless explicitly specified in the description of the parameters. Note that querying this parameter with getParameter returns true only if the individual parameters specified above are appropriately set. false Setting infoset to false has no effect. "namespaces" true [rreeqquuiirreedd] (ddeeffaauulltt) Perform the namespace processing as defined in _N_a_m_e_s_p_a_c_e _N_o_r_m_a_l_i_z_a_t_i_o_n. false [ooppttiioonnaall] Do not perform the namespace processing. "namespace-declarations" This parameter has no effect if the parameter "_n_a_m_e_s_p_a_c_e_s" is set to false. true [rreeqquuiirreedd] (ddeeffaauulltt) Include namespace declaration attributes, specified or defaulted from the _s_c_h_e_m_a, in the document. See also the sections "Declaring Namespaces" in [_X_M_L_ _N_a_m_e_s_p_a_c_e_s] and [_X_M_L _N_a_m_e_s_p_a_c_e_s_ _1_._1]. false [rreeqquuiirreedd] Discard all namespace declaration attributes. The namespace prefixes (_N_o_d_e_._p_r_e_f_i_x) are retained even if this parameter is set to false. "normalize-characters" true [ooppttiioonnaall] _F_u_l_l_y_ _n_o_r_m_a_l_i_z_e_d the characters in the document as defined in appendix B of [_X_M_L_ _1_._1]. false [rreeqquuiirreedd] (ddeeffaauulltt) Do not perform character normalization. "schema-location" [ooppttiioonnaall] Represent a _D_O_M_S_t_r_i_n_g object containing a list of URIs, separated by whitespaces (characters matching the _nn_oo_nn_tt_ee_rr_mm_ii_nn_aa_ll_ _pp_rr_oo_dd_uu_cc_tt_ii_oo_nn_ _SS defined in section 2.3 [_X_M_L_ _1_._0]), that represents the _s_c_h_e_m_a_s against which validation should occur, i.e. the current schema. The types of schemas referenced in this list must match the type specified with schema-type, otherwise the behavior of an implementation is undefined. The schemas specified using this property take precedence to the schema information specified in the document itself. For namespace aware schema, if a schema specified using this property and a schema specified in the document instance (i.e. using the schemaLocation attribute) in a schema document (i.e. using schema import mechanisms) share the same targetNamespace, the schema specified by the user using this property will be used. If two schemas specified using this property share the same targetNamespace or have no namespace, the behavior is implementation dependent. If no location has been provided, this parameter is null. NNoottee:: The "schema-location" parameter is ignored unless the "_s_c_h_e_m_a_-_t_y_p_e" parameter value is set. It is strongly recommended that _D_o_c_u_m_e_n_t_._d_o_c_u_m_e_n_t_U_R_I will be set so that an implementation can successfully resolve any external entities referenced. "schema-type" [ooppttiioonnaall] Represent a _D_O_M_S_t_r_i_n_g object containing an absolute URI and representing the type of the _s_c_h_e_m_a language used to validate a document against. Note that no lexical checking is done on the absolute URI. If this parameter is not set, a default value may be provided by the implementation, based on the schema languages supported and on the schema language used at load time. If no value is provided, this parameter is null. NNoottee:: For XML Schema [_X_M_L_ _S_c_h_e_m_a_ _P_a_r_t_ _1], applications must use the value "http://www.w3.org/2001/XMLSchema". For XML DTD [_X_M_L_ _1_._0], applications must use the value "http://www.w3.org/TR/REC-xml". Other schema languages are outside the scope of the W3C and therefore should recommend an absolute URI in order to use this method. "split-cdata-sections" true [rreeqquuiirreedd] (ddeeffaauulltt) Split CDATA sections containing the CDATA section termination marker ']]>'. When a CDATA section is split a warning is issued with a _D_O_M_E_r_r_o_r_._t_y_p_e equals to "cdata-sections- splitted" and _D_O_M_E_r_r_o_r_._r_e_l_a_t_e_d_D_a_t_a equals to the first _C_D_A_T_A_S_e_c_t_i_o_n node in document order resulting from the split. false [rreeqquuiirreedd] Signal an error if a _C_D_A_T_A_S_e_c_t_i_o_n contains an unrepresentable character. "validate" true [ooppttiioonnaall] Require the validation against a _s_c_h_e_m_a (i.e. XML schema, DTD, any other type or representation of schema) of the document as it is being normalized as defined by [_X_M_L_ _1_._0]. If validation errors are found, or no schema was found, the error handler is notified. Schema-normalized values will not be exposed according to the schema in used unless the parameter "_d_a_t_a_t_y_p_e_-_n_o_r_m_a_l_i_z_a_t_i_o_n" is true. This parameter will reevaluate: * Attribute nodes with _A_t_t_r_._s_p_e_c_i_f_i_e_d equals to false, as specified in the description of the _A_t_t_r interface; * The value of the attribute _T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e for all _T_e_x_t nodes; * The value of the attribute _A_t_t_r_._i_s_I_d for all _A_t_t_r nodes; * The attributes _E_l_e_m_e_n_t_._s_c_h_e_m_a_T_y_p_e_I_n_f_o and _A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o. NNoottee:: "_v_a_l_i_d_a_t_e_-_i_f_-_s_c_h_e_m_a" and "validate" are mutually exclusive, setting one of them to true will set the other one to false. Applications should also consider setting the parameter "_w_e_l_l_-_f_o_r_m_e_d" to true, which is the default for that option, when validating the document. false [rreeqquuiirreedd] (ddeeffaauulltt) Do not accomplish schema processing, including the internal subset processing. Default attribute values information are kept. Note that validation might still happen if "_v_a_l_i_d_a_t_e_- _i_f_-_s_c_h_e_m_a" is true. "validate-if-schema" true [ooppttiioonnaall] Enable validation only if a declaration for the document element can be found in a _s_c_h_e_m_a (independently of where it is found, i.e. XML schema, DTD, or any other type or representation of schema). If validation is enabled, this parameter has the same behavior as the parameter "_v_a_l_i_d_a_t_e" set to true. NNoottee:: "validate-if-schema" and "_v_a_l_i_d_a_t_e" are mutually exclusive, setting one of them to true will set the other one to false. false [rreeqquuiirreedd] (ddeeffaauulltt) No schema processing should be performed if the document has a schema, including internal subset processing. Default attribute values information are kept. Note that validation must still happen if "_v_a_l_i_d_a_t_e" is true. "well-formed" true [rreeqquuiirreedd] (ddeeffaauulltt) Check if all nodes are XML _w_e_l_l_ _f_o_r_m_e_d according to the XML version in use in _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n: * check if the attribute _N_o_d_e_._n_o_d_e_N_a_m_e contains invalid characters according to its node type and generate a _D_O_M_E_r_r_o_r of type "wf-invalid-character-in-node-name", with a _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___E_R_R_O_R severity, if necessary; * check if the text content inside _A_t_t_r, _E_l_e_m_e_n_t, _C_o_m_m_e_n_t, _T_e_x_t, _C_D_A_T_A_S_e_c_t_i_o_n nodes for invalid characters and generate a _D_O_M_E_r_r_o_r of type "wf-invalid- character", with a _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___E_R_R_O_R severity, if necessary; * check if the data inside _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n nodes for invalid characters and generate a _D_O_M_E_r_r_o_r of type "wf-invalid-character", with a _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___E_R_R_O_R severity, if necessary; false [ooppttiioonnaall] Do not check for XML well-formedness. The resolution of the system identifiers associated with entities is done using _D_o_c_u_m_e_n_t_._d_o_c_u_m_e_n_t_U_R_I. However, when the feature "LS" defined in [_D_O_M_ _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e] is supported by the DOM implementation, the parameter "resource-resolver" can also be used on DOMConfiguration objects attached to _D_o_c_u_m_e_n_t nodes. If this parameter is set, _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) will invoke the resource resolver instead of using _D_o_c_u_m_e_n_t_._d_o_c_u_m_e_n_t_U_R_I. IIDDLL DDeeffiinniittiioonn // Introduced in DOM Level 3: interface _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n { void _s_e_t_P_a_r_a_m_e_t_e_r(in _D_O_M_S_t_r_i_n_g name, in _D_O_M_U_s_e_r_D_a_t_a value) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _D_O_M_U_s_e_r_D_a_t_a _g_e_t_P_a_r_a_m_e_t_e_r(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); boolean _c_a_n_S_e_t_P_a_r_a_m_e_t_e_r(in _D_O_M_S_t_r_i_n_g name, in _D_O_M_U_s_e_r_D_a_t_a value); readonly attribute _D_O_M_S_t_r_i_n_g_L_i_s_t _p_a_r_a_m_e_t_e_r_N_a_m_e_s; }; AAttttrriibbuutteess parameterNames of type _D_O_M_S_t_r_i_n_g_L_i_s_t, readonly The list of the parameters supported by this DOMConfiguration object and for which at least one value can be set by the application. Note that this list can also contain parameter names defined outside this specification. MMeetthhooddss canSetParameter Check if setting a parameter to a specific value is supported. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the parameter to check. value of type _D_O_M_U_s_e_r_D_a_t_a An object. if null, the returned value is true. RReettuurrnn VVaalluuee boolean true if the parameter could be successfully set to the specified value, or false if the parameter is not recognized or the requested value is not supported. This does not change the current value of the parameter itself. NNoo EExxcceeppttiioonnss getParameter Return the value of a parameter if known. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the parameter. RReettuurrnn VVaalluuee _D_O_M_U_s_e_r_D_a_t_a The current object associated with the specified parameter or null if no object has been associated or if the parameter is not supported. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_FOUND_ERR: Raised when the parameter name is not recognized. setParameter Set the value of a parameter. PPaarraammeetteerrss name of type _D_O_M_S_t_r_i_n_g The name of the parameter to set. value of type _D_O_M_U_s_e_r_D_a_t_a The new value or null if the user wishes to unset the parameter. While the type of the value parameter is defined as _D_O_M_U_s_e_r_D_a_t_a, the object type must match the type defined by the definition of the parameter. For example, if the parameter is _"_e_r_r_o_r_-_h_a_n_d_l_e_r_", the value must be of type _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r. EExxcceeppttiioonnss _D_O_M_E_x_c_e_p_t_i_o_n NOT_FOUND_ERR: Raised when the parameter name is not recognized. NOT_SUPPORTED_ERR: Raised when the parameter name is recognized but the requested value cannot be set. TYPE_MISMATCH_ERR: Raised if the value type for this parameter name is incompatible with the expected value type. NNoo RReettuurrnn VVaalluuee ********** 11..55 EExxtteennddeedd IInntteerrffaacceess:: XXMMLL MMoodduullee ********** 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. The interfaces found within this section are not mandatory. A DOM application may use the _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._h_a_s_F_e_a_t_u_r_e_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_) method 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 _F_u_n_d_a_m_e_n_t_a_l_ _I_n_t_e_r_f_a_c_e_s_:_ _C_o_r_e_ _M_o_d_u_l_e and the feature "XMLVersion" with version "1.0" defined in _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n. Please refer to additional information about _C_o_n_f_o_r_m_a_n_c_e in this specification. The DOM Level 3 XML module is backward compatible with the DOM Level 2 XML [_D_O_M_ _L_e_v_e_l_ _2_ _C_o_r_e] and DOM Level 1 XML [_D_O_M _L_e_v_e_l_ _1] modules, i.e. a DOM Level 3 XML implementation who returns true for "XML" with the version number "3.0" must also return true for this feature when the version number is "2.0", "1.0", "" or, null. IInntteerrffaaccee CCDDAATTAASSeeccttiioonn 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 "]]>" 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. The _C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a attribute holds the text that is contained by the CDATA section. Note that this mmaayy 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. The CDATASection interface inherits from the _C_h_a_r_a_c_t_e_r_D_a_t_a interface through the _T_e_x_t interface. Adjacent CDATASection nodes are not merged by use of the normalize method of the _N_o_d_e interface. No lexical check is done on the content of a CDATA section and it is therefore possible to have the character sequence "]]>" in the content, which is illegal in a CDATA section per section 2.7 of [_X_M_L_ _1_._0]. The presence of this character sequence must generate a fatal error during serialization or the cdata section must be splitted before the serialization (see also the parameter "split-cdata-sections" in the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n interface). NNoottee:: Because no markup is recognized within a CDATASection, character numeric references cannot be used as an escape mechanism when serializing. Therefore, action needs to be taken when serializing a CDATASection with a character encoding where some of the contained characters cannot be represented. Failure to do so would not produce well-formed XML. 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. IIDDLL DDeeffiinniittiioonn interface _C_D_A_T_A_S_e_c_t_i_o_n : _T_e_x_t { }; IInntteerrffaaccee DDooccuummeennttTTyyppee Each _D_o_c_u_m_e_n_t has a doctype attribute whose value is either null or a DocumentType object. The DocumentType 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. DOM Level 3 doesn't support editing DocumentType nodes. DocumentType nodes are _r_e_a_d_-_o_n_l_y. IIDDLL DDeeffiinniittiioonn interface _D_o_c_u_m_e_n_t_T_y_p_e : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _n_a_m_e; readonly attribute _N_a_m_e_d_N_o_d_e_M_a_p _e_n_t_i_t_i_e_s; readonly attribute _N_a_m_e_d_N_o_d_e_M_a_p _n_o_t_a_t_i_o_n_s; // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _p_u_b_l_i_c_I_d; // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _s_y_s_t_e_m_I_d; // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _i_n_t_e_r_n_a_l_S_u_b_s_e_t; }; AAttttrriibbuutteess entities of type _N_a_m_e_d_N_o_d_e_M_a_p, readonly A _N_a_m_e_d_N_o_d_e_M_a_p containing the general entities, both external and internal, declared in the DTD. Parameter entities are not contained. Duplicates are discarded. For example in: ]> the interface provides access to foo and the first declaration of bar but not the second declaration of bar or baz. Every node in this map also implements the _E_n_t_i_t_y interface. The DOM Level 2 does not support editing entities, therefore entities cannot be altered in any way. internalSubset of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 22 The internal subset as a string, or null if there is none. This is does not contain the delimiting square brackets. NNoottee:: 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. name of type _D_O_M_S_t_r_i_n_g, readonly The name of DTD; i.e., the name immediately following the DOCTYPE keyword. notations of type _N_a_m_e_d_N_o_d_e_M_a_p, readonly A _N_a_m_e_d_N_o_d_e_M_a_p containing the notations declared in the DTD. Duplicates are discarded. Every node in this map also implements the _N_o_t_a_t_i_o_n interface. The DOM Level 2 does not support editing notations, therefore notations cannot be altered in any way. publicId of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 22 The public identifier of the external subset. systemId of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 22 The system identifier of the external subset. This may be an absolute URI or not. IInntteerrffaaccee NNoottaattiioonn This interface represents a notation declared in the DTD. A notation either declares, by name, the format of an unparsed entity (see _ss_ee_cc_tt_ii_oo_nn _44_.._77 of the XML 1.0 specification [_X_M_L_ _1_._0]), or is used for formal declaration of processing instruction targets (see _ss_ee_cc_tt_ii_oo_nn_ _22_.._66 of the XML 1.0 specification [_X_M_L_ _1_._0]). The nodeName attribute inherited from _N_o_d_e is set to the declared name of the notation. The DOM Core does not support editing Notation nodes; they are therefore _r_e_a_d_o_n_l_y. A Notation node does not have any parent. IIDDLL DDeeffiinniittiioonn interface _N_o_t_a_t_i_o_n : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _p_u_b_l_i_c_I_d; readonly attribute _D_O_M_S_t_r_i_n_g _s_y_s_t_e_m_I_d; }; AAttttrriibbuutteess publicId of type _D_O_M_S_t_r_i_n_g, readonly The public identifier of this notation. If the public identifier was not specified, this is null. systemId of type _D_O_M_S_t_r_i_n_g, readonly The system identifier of this notation. If the system identifier was not specified, this is null. This may be an absolute URI or not. IInntteerrffaaccee EEnnttiittyy This interface represents a known entity, either parsed or unparsed, in an XML document. Note that this models the entity itself nnoott the entity declaration. The nodeName attribute that is inherited from _N_o_d_e contains the name of the entity. 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 _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes in the document tree. XML does not mandate that a non-validating XML processor read and process entity declarations made in the external subset or declared in 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 _rr_ee_pp_ll_aa_cc_ee_mm_ee_nn_tt _tt_ee_xx_tt is available, the corresponding Entity node's child list represents the structure of that replacement value. Otherwise, the child list is empty. DOM Level 3 does not support editing Entity nodes; if a user wants to make changes to the contents of an Entity, every related _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node has to be replaced in the structure model by a clone of the Entity's contents, and then the desired changes must be made to each of those clones instead. Entity nodes and all their _d_e_s_c_e_n_d_a_n_t_s are _r_e_a_d_o_n_l_y. An Entity node does not have any parent. NNoottee:: If the entity contains an unbound _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x, the namespaceURI of the corresponding node in the Entity node subtree is null. The same is true for _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes that refer to this entity, when they are created using the createEntityReference method of the _D_o_c_u_m_e_n_t interface. IIDDLL DDeeffiinniittiioonn interface _E_n_t_i_t_y : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _p_u_b_l_i_c_I_d; readonly attribute _D_O_M_S_t_r_i_n_g _s_y_s_t_e_m_I_d; readonly attribute _D_O_M_S_t_r_i_n_g _n_o_t_a_t_i_o_n_N_a_m_e; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _i_n_p_u_t_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _x_m_l_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _x_m_l_V_e_r_s_i_o_n; }; AAttttrriibbuutteess inputEncoding of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is null if it an entity from the internal subset or if it is not known. notationName of type _D_O_M_S_t_r_i_n_g, readonly For unparsed entities, the name of the notation for the entity. For parsed entities, this is null. publicId of type _D_O_M_S_t_r_i_n_g, readonly The public identifier associated with the entity if specified, and null otherwise. systemId of type _D_O_M_S_t_r_i_n_g, readonly The system identifier associated with the entity if specified, and null otherwise. This may be an absolute URI or not. xmlEncoding of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is null otherwise. xmlVersion of type _D_O_M_S_t_r_i_n_g, readonly, introduced in DDOOMM LLeevveell 33 An attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity. This is null otherwise. IInntteerrffaaccee EEnnttiittyyRReeffeerreennccee EntityReference 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 _D_o_c_u_m_e_n_t, instead of providing EntityReference nodes. If it does provide such nodes, then for an EntityReference node that represents a reference to a known entity an _E_n_t_i_t_y exists, and the subtree of the EntityReference node is a copy of the _E_n_t_i_t_y node subtree. However, the latter may not be true when an entity contains an unbound _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x. In such a case, because the namespace prefix resolution depends on where the entity reference is, the _d_e_s_c_e_n_d_a_n_t_s of the EntityReference node may be bound to different _n_a_m_e_s_p_a_c_e_ _U_R_I_s. When an EntityReference node represents a reference to an unknown entity, the node has no children and its replacement value, when used by _A_t_t_r_._v_a_l_u_e for example, is empty. As for _E_n_t_i_t_y nodes, EntityReference nodes and all their _d_e_s_c_e_n_d_a_n_t_s are _r_e_a_d_o_n_l_y. NNoottee:: EntityReference nodes may cause element content and attribute value normalization problems when, such as in XML 1.0 and XML Schema, the normalization is performed after entity reference are expanded. IIDDLL DDeeffiinniittiioonn interface _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e : _N_o_d_e { }; IInntteerrffaaccee PPrroocceessssiinnggIInnssttrruuccttiioonn The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document. No lexical check is done on the content of a processing instruction and it is therefore possible to have the character sequence "?>" in the content, which is illegal a processing instruction per section 2.6 of [_X_M_L_ _1_._0]. The presence of this character sequence must generate a fatal error during serialization. IIDDLL DDeeffiinniittiioonn interface _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _t_a_r_g_e_t; attribute _D_O_M_S_t_r_i_n_g _d_a_t_a; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting }; AAttttrriibbuutteess data of type _D_O_M_S_t_r_i_n_g The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>. EExxcceeppttiioonnss oonn sseettttiinngg _D_O_M_E_x_c_e_p_t_i_o_n NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. target of type _D_O_M_S_t_r_i_n_g, readonly The target of this processing instruction. XML defines this as being the first _t_o_k_e_n following the markup that begins the processing instruction. 07 April 2004 ************ AAppppeennddiixx AA:: CChhaannggeess ************ Editor: Philippe Le Hégaret, W3C ********** TTaabbllee ooff ccoonntteennttss ********** * _A_._1_ _N_e_w_ _s_e_c_t_i_o_n_s * _A_._2_ _C_h_a_n_g_e_s_ _t_o_ _D_O_M_ _L_e_v_e_l_ _2_ _C_o_r_e_ _i_n_t_e_r_f_a_c_e_s_ _a_n_d_ _e_x_c_e_p_t_i_o_n_s * _A_._3_ _N_e_w_ _D_O_M_ _f_e_a_t_u_r_e_s * _A_._4_ _N_e_w_ _t_y_p_e_s * _A_._5_ _N_e_w_ _i_n_t_e_r_f_a_c_e_s * _A_._6_ _O_b_j_e_c_t_s This section summarizes the changes between [_D_O_M_ _L_e_v_e_l_ _2_ _C_o_r_e] and this new version of the Core specification. ********** AA..11 NNeeww sseeccttiioonnss ********** The following new sections have been added: * _D_O_M_ _A_r_c_h_i_t_e_c_t_u_r_e: a global overview of the DOM Level 3 modules; * _D_O_M_ _U_R_I_s: general considerations on the URI handling in DOM Level 3; * _B_a_s_e_ _U_R_I_s: How the [[bbaassee UURRII]] property defined in [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t] has been exposed in DOM Level 3; * _M_i_x_e_d_ _D_O_M_ _I_m_p_l_e_m_e_n_t_a_t_i_o_n_s: general considerations on DOM implementation extensions; * _D_O_M_ _F_e_a_t_u_r_e_s: overview of the DOM features and how they relate to the DOM modules; * _B_o_o_t_s_t_r_a_p_p_i_n_g: general introduction to the DOM Level 3 bootstrapping mechanisms; * _N_a_m_e_s_p_a_c_e_s_ _A_l_g_o_r_i_t_h_m_s: how namespace URIs and prefixes are resolved in DOM Level 3; * _I_n_f_o_s_e_t_ _M_a_p_p_i_n_g: relation between DOM Level 3 and [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t]; * _C_o_n_f_i_g_u_r_a_t_i_o_n_ _S_e_t_t_i_n_g_s: relations between parameters as used in _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n; ********** AA..22 CChhaannggeess ttoo DDOOMM LLeevveell 22 CCoorree iinntteerrffaacceess aanndd eexxcceeppttiioonnss ********** Interface _A_t_t_r The _A_t_t_r interface has two new attributes, _A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o, and _A_t_t_r_._i_s_I_d. Interface _D_o_c_u_m_e_n_t The _D_o_c_u_m_e_n_t interface has seven new attributes: _D_o_c_u_m_e_n_t_._i_n_p_u_t_E_n_c_o_d_i_n_g, _D_o_c_u_m_e_n_t_._x_m_l_E_n_c_o_d_i_n_g, _D_o_c_u_m_e_n_t_._x_m_l_S_t_a_n_d_a_l_o_n_e, _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n, _D_o_c_u_m_e_n_t_._s_t_r_i_c_t_E_r_r_o_r_C_h_e_c_k_i_n_g, _D_o_c_u_m_e_n_t_._d_o_c_u_m_e_n_t_U_R_I, and _D_o_c_u_m_e_n_t_._d_o_m_C_o_n_f_i_g. It has three new methods: _D_o_c_u_m_e_n_t_._a_d_o_p_t_N_o_d_e_(_s_o_u_r_c_e_), _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_), and _D_o_c_u_m_e_n_t_._r_e_n_a_m_e_N_o_d_e_(_n_,_ _n_a_m_e_s_p_a_c_e_U_R_I_, _q_u_a_l_i_f_i_e_d_N_a_m_e_). The attribute _D_o_c_u_m_e_n_t_._d_o_c_t_y_p_e has been modified. Exception _D_O_M_E_x_c_e_p_t_i_o_n The _D_O_M_E_x_c_e_p_t_i_o_n has two new exception codes: _V_A_L_I_D_A_T_I_O_N___E_R_R and _T_Y_P_E___M_I_S_M_A_T_C_H___E_R_R. Interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n The _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n interface has one new method, _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_._g_e_t_F_e_a_t_u_r_e_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_). Interface _E_n_t_i_t_y The _E_n_t_i_t_y interface has three new attributes: _E_n_t_i_t_y_._i_n_p_u_t_E_n_c_o_d_i_n_g, _E_n_t_i_t_y_._x_m_l_E_n_c_o_d_i_n_g, and _E_n_t_i_t_y_._x_m_l_V_e_r_s_i_o_n. Interface _E_l_e_m_e_n_t The _E_l_e_m_e_n_t interface has one new attribute, _E_l_e_m_e_n_t_._s_c_h_e_m_a_T_y_p_e_I_n_f_o, and three new methods: _E_l_e_m_e_n_t_._s_e_t_I_d_A_t_t_r_i_b_u_t_e_(_n_a_m_e_,_ _i_s_I_d_), _E_l_e_m_e_n_t_._s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_S_(_n_a_m_e_s_p_a_c_e_U_R_I_,_ _l_o_c_a_l_N_a_m_e_,_ _i_s_I_d_), and _E_l_e_m_e_n_t_._s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_o_d_e_(_i_d_A_t_t_r_,_ _i_s_I_d_). Interface _N_o_d_e The _N_o_d_e interface has two new attributes, _N_o_d_e_._b_a_s_e_U_R_I and _N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t. It has nine new methods: _N_o_d_e_._c_o_m_p_a_r_e_D_o_c_u_m_e_n_t_P_o_s_i_t_i_o_n _(_o_t_h_e_r_), _N_o_d_e_._i_s_S_a_m_e_N_o_d_e_(_o_t_h_e_r_), _N_o_d_e_._l_o_o_k_u_p_P_r_e_f_i_x_(_n_a_m_e_s_p_a_c_e_U_R_I_), _N_o_d_e_._i_s_D_e_f_a_u_l_t_N_a_m_e_s_p_a_c_e_(_n_a_m_e_s_p_a_c_e_U_R_I_), _N_o_d_e_._l_o_o_k_u_p_N_a_m_e_s_p_a_c_e_U_R_I_(_p_r_e_f_i_x_), _N_o_d_e_._i_s_E_q_u_a_l_N_o_d_e_(_a_r_g_), _N_o_d_e_._g_e_t_F_e_a_t_u_r_e_(_f_e_a_t_u_r_e_,_ _v_e_r_s_i_o_n_), _N_o_d_e_._s_e_t_U_s_e_r_D_a_t_a_(_k_e_y_,_ _d_a_t_a_,_ _h_a_n_d_l_e_r_), _N_o_d_e_._g_e_t_U_s_e_r_D_a_t_a_(_k_e_y_). It introduced 6 new constants: _N_o_d_e_._D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___D_I_S_C_O_N_N_E_C_T_E_D, _N_o_d_e_._D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___P_R_E_C_E_D_I_N_G, _N_o_d_e_._D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___F_O_L_L_O_W_I_N_G, _N_o_d_e_._D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___C_O_N_T_A_I_N_S, _N_o_d_e_._D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___C_O_N_T_A_I_N_E_D___B_Y, and _N_o_d_e_._D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___I_M_P_L_E_M_E_N_T_A_T_I_O_N___S_P_E_C_I_F_I_C. The methods _N_o_d_e_._i_n_s_e_r_t_B_e_f_o_r_e_(_n_e_w_C_h_i_l_d_,_ _r_e_f_C_h_i_l_d_), _N_o_d_e_._r_e_p_l_a_c_e_C_h_i_l_d_(_n_e_w_C_h_i_l_d_, _o_l_d_C_h_i_l_d_) and _N_o_d_e_._r_e_m_o_v_e_C_h_i_l_d_(_o_l_d_C_h_i_l_d_) have been modified. Interface _T_e_x_t The _T_e_x_t interface has two new attributes, _T_e_x_t_._w_h_o_l_e_T_e_x_t and _T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e, and one new method, _T_e_x_t_._r_e_p_l_a_c_e_W_h_o_l_e_T_e_x_t_(_c_o_n_t_e_n_t_). ********** AA..33 NNeeww DDOOMM ffeeaattuurreess ********** "XMLVersion" The "XMLVersion" DOM feature was introduced to represent if an implementation is able to support [_X_M_L_ _1_._0] or [_X_M_L_ _1_._1]. See _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n. ********** AA..44 NNeeww ttyyppeess ********** _D_O_M_U_s_e_r_D_a_t_a The _D_O_M_U_s_e_r_D_a_t_a type was added to the Core module. _D_O_M_O_b_j_e_c_t The _D_O_M_O_b_j_e_c_t type was added to the Core module. ********** AA..55 NNeeww iinntteerrffaacceess ********** _D_O_M_S_t_r_i_n_g_L_i_s_t The _D_O_M_S_t_r_i_n_g_L_i_s_t interface has one attribute, _D_O_M_S_t_r_i_n_g_L_i_s_t_._l_e_n_g_t_h, and one method, _D_O_M_S_t_r_i_n_g_L_i_s_t_._i_t_e_m_(_i_n_d_e_x_). _N_a_m_e_L_i_s_t The _N_a_m_e_L_i_s_t interface has one attribute, _N_a_m_e_L_i_s_t_._l_e_n_g_t_h, and two methods, _N_a_m_e_L_i_s_t_._g_e_t_N_a_m_e_(_i_n_d_e_x_) and _N_a_m_e_L_i_s_t_._g_e_t_N_a_m_e_s_p_a_c_e_U_R_I_(_i_n_d_e_x_). _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t The _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t interface has one attribute, _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t_._l_e_n_g_t_h, and one method, _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t_._i_t_e_m _(_i_n_d_e_x_). _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e The _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e interface has two methods, _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e_._g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_(_f_e_a_t_u_r_e_s_), and _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e_._g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t_(_f_e_a_t_u_r_e_s_). _T_y_p_e_I_n_f_o The _T_y_p_e_I_n_f_o interface has two attributes, _T_y_p_e_I_n_f_o_._t_y_p_e_N_a_m_e, and _T_y_p_e_I_n_f_o_._t_y_p_e_N_a_m_e_s_p_a_c_e. _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r The _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r interface has one method, _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_._h_a_n_d_l_e _(_o_p_e_r_a_t_i_o_n_,_ _k_e_y_,_ _d_a_t_a_,_ _s_r_c_,_ _d_s_t_), and four constants: _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_._N_O_D_E___C_L_O_N_E_D, _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_._N_O_D_E___I_M_P_O_R_T_E_D, _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_._N_O_D_E___D_E_L_E_T_E_D, and _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r_._N_O_D_E___R_E_N_A_M_E_D. _D_O_M_E_r_r_o_r The _D_O_M_E_r_r_o_r interface has six attributes: _D_O_M_E_r_r_o_r_._s_e_v_e_r_i_t_y, _D_O_M_E_r_r_o_r_._m_e_s_s_a_g_e, _D_O_M_E_r_r_o_r_._t_y_p_e, _D_O_M_E_r_r_o_r_._r_e_l_a_t_e_d_E_x_c_e_p_t_i_o_n, _D_O_M_E_r_r_o_r_._r_e_l_a_t_e_d_D_a_t_a, and _D_O_M_E_r_r_o_r_._l_o_c_a_t_i_o_n. It has four constants: _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___W_A_R_N_I_N_G, _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___E_R_R_O_R, and _D_O_M_E_r_r_o_r_._S_E_V_E_R_I_T_Y___F_A_T_A_L___E_R_R_O_R. _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r The _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r interface has one method: _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r_._h_a_n_d_l_e_E_r_r_o_r _(_e_r_r_o_r_). _D_O_M_L_o_c_a_t_o_r The _D_O_M_L_o_c_a_t_o_r interface has seven attributes: _D_O_M_L_o_c_a_t_o_r_._l_i_n_e_N_u_m_b_e_r, _D_O_M_L_o_c_a_t_o_r_._c_o_l_u_m_n_N_u_m_b_e_r, _D_O_M_L_o_c_a_t_o_r_._b_y_t_e_O_f_f_s_e_t, _D_O_M_L_o_c_a_t_o_r_._u_t_f_1_6_O_f_f_s_e_t, _D_O_M_L_o_c_a_t_o_r_._r_e_l_a_t_e_d_N_o_d_e, _D_O_M_L_o_c_a_t_o_r_._u_r_i, and _D_O_M_L_o_c_a_t_o_r_._l_i_n_e_N_u_m_b_e_r. _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n The _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n interface has one attribute: _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n_._p_a_r_a_m_e_t_e_r_N_a_m_e_s. It also has three methods: _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n_._s_e_t_P_a_r_a_m_e_t_e_r_(_n_a_m_e_,_ _v_a_l_u_e_), _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n_._g_e_t_P_a_r_a_m_e_t_e_r _(_n_a_m_e_), and _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n_._c_a_n_S_e_t_P_a_r_a_m_e_t_e_r_(_n_a_m_e_,_ _v_a_l_u_e_). ********** AA..66 OObbjjeeccttss ********** This specification defines one object, only provided in the bindings: DOMImplementationRegistry The DOMImplementationRegistry object has two methods, DOMImplementationRegistry.getDOMImplementation(features), and DOMImplementationRegistry.getDOMImplementationList(features). 07 April 2004 ************ AAppppeennddiixx BB:: NNaammeessppaacceess AAllggoorriitthhmmss ************ Editors: Arnaud Le Hors, IBM Elena Litani, IBM ********** TTaabbllee ooff ccoonntteennttss ********** * _B_._1_ _N_a_m_e_s_p_a_c_e_ _N_o_r_m_a_l_i_z_a_t_i_o_n o _B_._1_._1_ _S_c_o_p_e_ _o_f_ _a_ _B_i_n_d_i_n_g o _B_._1_._2_ _C_o_n_f_l_i_c_t_i_n_g_ _N_a_m_e_s_p_a_c_e_ _D_e_c_l_a_r_a_t_i_o_n * _B_._2_ _N_a_m_e_s_p_a_c_e_ _P_r_e_f_i_x_ _L_o_o_k_u_p * _B_._3_ _D_e_f_a_u_l_t_ _N_a_m_e_s_p_a_c_e_ _L_o_o_k_u_p * _B_._4_ _N_a_m_e_s_p_a_c_e_ _U_R_I_ _L_o_o_k_u_p This appendix contains several namespace algorithms, such as namespace normalization algorithm that fixes namespace information in the Document Object Model to produce a _n_a_m_e_s_p_a_c_e_ _w_e_l_l_-_f_o_r_m_e_d document. If [_X_M_L_ _1_._0] is in use (see _D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n) the algorithms conform to [_X_M_L_ _N_a_m_e_s_p_a_c_e_s], otherwise if [_X_M_L_ _1_._1] is in use, algorithms conform to [_X_M_L_ _N_a_m_e_s_p_a_c_e_s_ _1_._1]. ********** BB..11 NNaammeessppaaccee NNoorrmmaalliizzaattiioonn ********** Namespace declaration attributes and prefixes are normalized as part of the normalizeDocument method of the _D_o_c_u_m_e_n_t interface as if the following method described in pseudo code was called on the document element. void Element.normalizeNamespaces() { // Pick up local namespace declarations // 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. ==> Report an error. } else { ==> Record the namespace declaration } } // Fixup element's namespace // if ( Element's namespaceURI != null ) { if ( Element's prefix/namespace pair (or default namespace, if no prefix) are within the scope of a binding ) { ==> do nothing, declaration in scope is inherited See section "B.1.1: Scope of a binding" for an example } else { ==> 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 section "B.1.2: Conflicting namespace declaration" for an example // 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's localName is null ) { // DOM Level 1 node ==> 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 pseudo-prefix if ( there's a conflicting local default namespace declaration already present ) { ==> change its value to use this empty namespace. } // 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 attributes // 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 conflicts 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 ==> change attribute's prefix. } else { if (the current prefix is not null and it has no in scope declaration) { ==> 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 ==> change attribute's prefix. } } } } else { // Attr[i] has no namespace URI if ( Attr[i] has no localName ) { // DOM Level 1 node ==> 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 ==> do nothing } } } // end for-all-Attrs // do this recursively for ( all child elements of Element ) { childElement.normalizeNamespaces() } } // end Element.normalizeNamespaces ******** BB..11..11 SSccooppee ooff aa BBiinnddiinngg ******** NNoottee:: This section is informative. An element's prefix/namespace URI pair is said to be within the scope of a binding if its namespace prefix is bound to the same namespace URI in the [in- scope namespaces] defined in [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t]. As an example, the following document is loaded in a DOM tree: In the case of the child1 element, the namespace prefix and namespace URI are within the scope of the appropriate namespace declaration given that the namespace prefix ns of child1 is bound to http://www.example.org/ns2. Using the method _N_o_d_e_._a_p_p_e_n_d_C_h_i_l_d, a child2 element is added as a sibling of child1 with the same namespace prefix and namespace URI, i.e. "ns" and "http:// www.example.org/ns2" respectively. Unlike child1 which contains the appropriate namespace declaration in its attributes, child2's prefix/namespace URI pair is within the scope of the namespace declaration of its parent, and the namespace prefix "ns" is bound to "http://www.example.org/ns1". child2's prefix/namespace URI pair is therefore not within the scope of a binding. In order to put them within a scope of a binding, the namespace normalization algorithm will create a namespace declaration attribute value to bind the namespace prefix "ns" to the namespace URI "http://www.example.org/ns2" and will attach to child2. The XML representation of the document after the completion of the namespace normalization algorithm will be: To determine if an element is within the scope of a binding, one can invoke _N_o_d_e_._l_o_o_k_u_p_N_a_m_e_s_p_a_c_e_U_R_I, using its namespace prefix as the parameter, and compare the resulting namespace URI against the desired URI, or one can invoke Node.isDefaultNamespaceURI using its namespace URI if the element has no namespace prefix. ******** BB..11..22 CCoonnfflliiccttiinngg NNaammeessppaaccee DDeeccllaarraattiioonn ******** NNoottee:: This section is informative. A conflicting namespace declaration could occur on an element if an _E_l_e_m_e_n_t node and a namespace declaration attribute use the same prefix but map them to two different namespace URIs. As an example, the following document is loaded in a DOM tree: Using the method Node.renameNode, the namespace URI of the element child1 is renamed from "http://www.example.org/ns1" to "http://www.example.org/ns2". The namespace prefix "ns" is now mapped to two different namespace URIs at the element child1 level and thus the namespace declaration is declared conflicting. The namespace normalization algorithm will resolved the namespace prefix conflict by modifying the namespace declaration attribute value from "http://www.example.org/ns1" to "http://www.example.org/ns2". The algorithm will then continue and consider the element child2, will no longer find a namespace declaration mapping the namespace prefix "ns" to "http:// www.example.org/ns1" in the element's scope, and will create a new one. The XML representation of the document after the completion of the namespace normalization algorithm will be: ********** BB..22 NNaammeessppaaccee PPrreeffiixx LLooookkuupp ********** The following describes in pseudo code the algorithm used in the lookupPrefix method of the _N_o_d_e 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. This methods ignores DOM Level 1 nodes. NNoottee:: This method ignores all _d_e_f_a_u_l_t_ _n_a_m_e_s_p_a_c_e_ _d_e_c_l_a_r_a_t_i_o_n_s. To look up default namespace use isDefaultNamespace method. DOMString lookupPrefix(in DOMString namespaceURI) { if (namespaceURI has no value, i.e. namespaceURI is null or empty string) { return null; } 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 a namespace and Element's namespace == namespaceURI and Element has a prefix and originalElement.lookupNamespaceURI(Element's prefix) == namespaceURI) { return (Element's prefix); } if ( Element has attributes) { for ( all DOM Level 2 valid local namespace declaration attributes of Element ) { if (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; } ********** BB..33 DDeeffaauulltt NNaammeessppaaccee LLooookkuupp ********** The following describes in pseudo code the algorithm used in the isDefaultNamespace method of the _N_o_d_e interface. This methods ignores DOM Level 1 nodes. boolean isDefaultNamespace(in DOMString namespaceURI) { switch (nodeType) { case ELEMENT_NODE: if ( Element has no prefix ) { return (Element's namespace == namespaceURI); } if ( Element has attributes and there is a valid DOM Level 2 default namespace declaration, i.e. Attr's localName == "xmlns" ) { return (Attr's value == namespaceURI); } if ( Element has an ancestor Element ) // EntityReferences may have to be skipped to get to it { return ancestorElement.isDefaultNamespace(namespaceURI); } else { return unknown (false); } case DOCUMENT_NODE: return documentElement.isDefaultNamespace(namespaceURI); 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(namespaceURI); } else { return unknown (false); } default: if ( Node has an ancestor Element ) // EntityReferences may have to be skipped to get to it { return ancestorElement.isDefaultNamespace(namespaceURI); } else { return unknown (false); } } } ********** BB..44 NNaammeessppaaccee UURRII LLooookkuupp ********** The following describes in pseudo code the algorithm used in the lookupNamespaceURI method of the _N_o_d_e interface. This methods ignores DOM Level 1 nodes. DOMString lookupNamespaceURI(in DOMString prefix) { switch (nodeType) { case ELEMENT_NODE: { if ( Element's namespace != null and Element's prefix == prefix ) { // Note: prefix could be "null" in this case we are looking for default namespace return (Element's namespace); } if ( Element has attributes) { for ( all DOM Level 2 valid local namespace declaration attributes of Element ) { if (Attr's prefix == "xmlns" and Attr's localName == prefix ) // non default namespace { if (Attr's value is not empty) { return (Attr's value); } return unknown (null); } else if (Attr's localname == "xmlns" and prefix == null) // default namespace { if (Attr's value is not empty) { return (Attr's value); } return unknown (null); } } } if ( Element has an ancestor Element ) // EntityReferences may have to be skipped to get to it { return ancestorElement.lookupNamespaceURI(prefix); } return null; } case DOCUMENT_NODE: return documentElement.lookupNamespaceURI(prefix) 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(prefix); } else { return unknown (null); } default: if (Node has an ancestor Element) // EntityReferences may have to be skipped to get to it { return ancestorElement.lookupNamespaceURI(prefix); } else { return unknown (null); } } } 07 April 2004 ************ AAppppeennddiixx EE:: AAcccceessssiinngg ccooddee ppooiinntt bboouunnddaarriieess ************ Mark Davis, IBM Lauren Wood, SoftQuad Software Inc. ********** TTaabbllee ooff ccoonntteennttss ********** * _E_._1_ _I_n_t_r_o_d_u_c_t_i_o_n * _E_._2_ _M_e_t_h_o_d_s o _S_t_r_i_n_g_E_x_t_e_n_d ********** EE..11 IInnttrroodduuccttiioonn ********** This appendix is an informative, not a normative, part of the Level 3 DOM specification. Characters are represented in Unicode by numbers called code points (also called scalar values). These numbers can range from 0 up to 1,114,111 = 10FFFF16 (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 FFFF16) are represented by a single 16-bit code unit, while characters above FFFF16 use a special pair of code units called a surrogate pair. For more information, see [_U_n_i_c_o_d_e] or the Unicode Web site. While indexing by code points as opposed to code units is not common in programs, some specifications such as [_X_P_a_t_h_ _1_._0] (and therefore XSLT and [_X_P_o_i_n_t_e_r]) 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 String type that is bound to _D_O_M_S_t_r_i_n_g be extended to enable this conversion. An example of how such an API might look is supplied below. NNoottee:: 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. ********** EE..22 MMeetthhooddss ********** IInntteerrffaaccee SSttrriinnggEExxtteenndd Extensions to a language's native String class or interface IIDDLL DDeeffiinniittiioonn interface _S_t_r_i_n_g_E_x_t_e_n_d { int _f_i_n_d_O_f_f_s_e_t_1_6(in int offset32) raises (StringIndexOutOfBoundsException); int _f_i_n_d_O_f_f_s_e_t_3_2(in int offset16) raises (StringIndexOutOfBoundsException); }; MMeetthhooddss findOffset16 Returns the UTF-16 offset that corresponds to a UTF-32 offset. Used for random access. NNoottee:: 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. PPaarraammeetteerrss offset32 of type int UTF-32 offset. RReettuurrnn VVaalluuee int UTF-16 offset EExxcceeppttiioonnss StringIndexOutOfBoundsException if offset32 is out of bounds. findOffset32 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: len32 = findOffset32(source, source.length()); NNoottee:: If the UTF-16 offset is into the middle of a surrogate pair, then the UTF-32 offset of the eenndd 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. PPaarraammeetteerrss offset16 of type int UTF-16 offset RReettuurrnn VVaalluuee int UTF-32 offset EExxcceeppttiioonnss StringIndexOutOfBoundsException if offset16 is out of bounds. 07 April 2004 ************ AAppppeennddiixx FF:: IIDDLL DDeeffiinniittiioonnss ************ This appendix contains the complete OMG IDL [_O_M_G_ _I_D_L] for the Level 3 Document Object Model Core definitions. The IDL files are also available as: _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_T_R_/_2_0_0_4_/_R_E_C_-_D_O_M_-_L_e_v_e_l_-_3_- _C_o_r_e_-_2_0_0_4_0_4_0_7_/_i_d_l_._z_i_p ******** _dd_oo_mm_.._ii_dd_ll:: ******** // File: dom.idl #ifndef _DOM_IDL_ #define _DOM_IDL_ #pragma prefix "w3c.org" module dom { valuetype _D_O_M_S_t_r_i_n_g sequence; typedef unsigned long long _D_O_M_T_i_m_e_S_t_a_m_p; typedef any _D_O_M_U_s_e_r_D_a_t_a; typedef Object _D_O_M_O_b_j_e_c_t; interface DOMImplementation; interface DocumentType; interface Document; interface NodeList; interface NamedNodeMap; interface UserDataHandler; interface Element; interface TypeInfo; interface DOMLocator; exception _D_O_M_E_x_c_e_p_t_i_o_n { unsigned short code; }; // ExceptionCode const unsigned short _I_N_D_E_X___S_I_Z_E___E_R_R = 1; const unsigned short _D_O_M_S_T_R_I_N_G___S_I_Z_E___E_R_R = 2; const unsigned short _H_I_E_R_A_R_C_H_Y___R_E_Q_U_E_S_T___E_R_R = 3; const unsigned short _W_R_O_N_G___D_O_C_U_M_E_N_T___E_R_R = 4; const unsigned short _I_N_V_A_L_I_D___C_H_A_R_A_C_T_E_R___E_R_R = 5; const unsigned short _N_O___D_A_T_A___A_L_L_O_W_E_D___E_R_R = 6; const unsigned short _N_O___M_O_D_I_F_I_C_A_T_I_O_N___A_L_L_O_W_E_D___E_R_R = 7; const unsigned short _N_O_T___F_O_U_N_D___E_R_R = 8; const unsigned short _N_O_T___S_U_P_P_O_R_T_E_D___E_R_R = 9; const unsigned short _I_N_U_S_E___A_T_T_R_I_B_U_T_E___E_R_R = 10; // Introduced in DOM Level 2: const unsigned short _I_N_V_A_L_I_D___S_T_A_T_E___E_R_R = 11; // Introduced in DOM Level 2: const unsigned short _S_Y_N_T_A_X___E_R_R = 12; // Introduced in DOM Level 2: const unsigned short _I_N_V_A_L_I_D___M_O_D_I_F_I_C_A_T_I_O_N___E_R_R = 13; // Introduced in DOM Level 2: const unsigned short _N_A_M_E_S_P_A_C_E___E_R_R = 14; // Introduced in DOM Level 2: const unsigned short _I_N_V_A_L_I_D___A_C_C_E_S_S___E_R_R = 15; // Introduced in DOM Level 3: const unsigned short _V_A_L_I_D_A_T_I_O_N___E_R_R = 16; // Introduced in DOM Level 3: const unsigned short _T_Y_P_E___M_I_S_M_A_T_C_H___E_R_R = 17; // Introduced in DOM Level 3: interface _D_O_M_S_t_r_i_n_g_L_i_s_t { _D_O_M_S_t_r_i_n_g _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; boolean _c_o_n_t_a_i_n_s(in _D_O_M_S_t_r_i_n_g str); }; // Introduced in DOM Level 3: interface _N_a_m_e_L_i_s_t { _D_O_M_S_t_r_i_n_g _g_e_t_N_a_m_e(in unsigned long index); _D_O_M_S_t_r_i_n_g _g_e_t_N_a_m_e_s_p_a_c_e_U_R_I(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; boolean _c_o_n_t_a_i_n_s(in _D_O_M_S_t_r_i_n_g str); boolean _c_o_n_t_a_i_n_s_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g name); }; // Introduced in DOM Level 3: interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t { _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; }; // Introduced in DOM Level 3: interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e { _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n _g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n(in _D_O_M_S_t_r_i_n_g features); _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t _g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t(in _D_O_M_S_t_r_i_n_g features); }; interface _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n { boolean _h_a_s_F_e_a_t_u_r_e(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); // Introduced in DOM Level 2: _D_o_c_u_m_e_n_t_T_y_p_e _c_r_e_a_t_e_D_o_c_u_m_e_n_t_T_y_p_e(in _D_O_M_S_t_r_i_n_g qualifiedName, in _D_O_M_S_t_r_i_n_g publicId, in _D_O_M_S_t_r_i_n_g systemId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _D_o_c_u_m_e_n_t _c_r_e_a_t_e_D_o_c_u_m_e_n_t(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName, in _D_o_c_u_m_e_n_t_T_y_p_e doctype) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: _D_O_M_O_b_j_e_c_t _g_e_t_F_e_a_t_u_r_e(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); }; interface _N_o_d_e { // NodeType const unsigned short _E_L_E_M_E_N_T___N_O_D_E = 1; const unsigned short _A_T_T_R_I_B_U_T_E___N_O_D_E = 2; const unsigned short _T_E_X_T___N_O_D_E = 3; const unsigned short _C_D_A_T_A___S_E_C_T_I_O_N___N_O_D_E = 4; const unsigned short _E_N_T_I_T_Y___R_E_F_E_R_E_N_C_E___N_O_D_E = 5; const unsigned short _E_N_T_I_T_Y___N_O_D_E = 6; const unsigned short _P_R_O_C_E_S_S_I_N_G___I_N_S_T_R_U_C_T_I_O_N___N_O_D_E = 7; const unsigned short _C_O_M_M_E_N_T___N_O_D_E = 8; const unsigned short _D_O_C_U_M_E_N_T___N_O_D_E = 9; const unsigned short _D_O_C_U_M_E_N_T___T_Y_P_E___N_O_D_E = 10; const unsigned short _D_O_C_U_M_E_N_T___F_R_A_G_M_E_N_T___N_O_D_E = 11; const unsigned short _N_O_T_A_T_I_O_N___N_O_D_E = 12; readonly attribute _D_O_M_S_t_r_i_n_g _n_o_d_e_N_a_m_e; attribute _D_O_M_S_t_r_i_n_g _n_o_d_e_V_a_l_u_e; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on retrieval readonly attribute unsigned short _n_o_d_e_T_y_p_e; readonly attribute _N_o_d_e _p_a_r_e_n_t_N_o_d_e; readonly attribute _N_o_d_e_L_i_s_t _c_h_i_l_d_N_o_d_e_s; readonly attribute _N_o_d_e _f_i_r_s_t_C_h_i_l_d; readonly attribute _N_o_d_e _l_a_s_t_C_h_i_l_d; readonly attribute _N_o_d_e _p_r_e_v_i_o_u_s_S_i_b_l_i_n_g; readonly attribute _N_o_d_e _n_e_x_t_S_i_b_l_i_n_g; readonly attribute _N_a_m_e_d_N_o_d_e_M_a_p _a_t_t_r_i_b_u_t_e_s; // Modified in DOM Level 2: readonly attribute _D_o_c_u_m_e_n_t _o_w_n_e_r_D_o_c_u_m_e_n_t; // Modified in DOM Level 3: _N_o_d_e _i_n_s_e_r_t_B_e_f_o_r_e(in _N_o_d_e newChild, in _N_o_d_e refChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Modified in DOM Level 3: _N_o_d_e _r_e_p_l_a_c_e_C_h_i_l_d(in _N_o_d_e newChild, in _N_o_d_e oldChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Modified in DOM Level 3: _N_o_d_e _r_e_m_o_v_e_C_h_i_l_d(in _N_o_d_e oldChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Modified in DOM Level 3: _N_o_d_e _a_p_p_e_n_d_C_h_i_l_d(in _N_o_d_e newChild) raises(_D_O_M_E_x_c_e_p_t_i_o_n); boolean _h_a_s_C_h_i_l_d_N_o_d_e_s(); _N_o_d_e _c_l_o_n_e_N_o_d_e(in boolean deep); // Modified in DOM Level 3: void _n_o_r_m_a_l_i_z_e(); // Introduced in DOM Level 2: boolean _i_s_S_u_p_p_o_r_t_e_d(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _n_a_m_e_s_p_a_c_e_U_R_I; // Introduced in DOM Level 2: attribute _D_O_M_S_t_r_i_n_g _p_r_e_f_i_x; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _l_o_c_a_l_N_a_m_e; // Introduced in DOM Level 2: boolean _h_a_s_A_t_t_r_i_b_u_t_e_s(); // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _b_a_s_e_U_R_I; // DocumentPosition const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___D_I_S_C_O_N_N_E_C_T_E_D = 0x01; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___P_R_E_C_E_D_I_N_G = 0x02; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___F_O_L_L_O_W_I_N_G = 0x04; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___C_O_N_T_A_I_N_S = 0x08; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___C_O_N_T_A_I_N_E_D___B_Y = 0x10; const unsigned short _D_O_C_U_M_E_N_T___P_O_S_I_T_I_O_N___I_M_P_L_E_M_E_N_T_A_T_I_O_N___S_P_E_C_I_F_I_C = 0x20; // Introduced in DOM Level 3: unsigned short _c_o_m_p_a_r_e_D_o_c_u_m_e_n_t_P_o_s_i_t_i_o_n(in _N_o_d_e other) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: attribute _D_O_M_S_t_r_i_n_g _t_e_x_t_C_o_n_t_e_n_t; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on retrieval // Introduced in DOM Level 3: boolean _i_s_S_a_m_e_N_o_d_e(in _N_o_d_e other); // Introduced in DOM Level 3: _D_O_M_S_t_r_i_n_g _l_o_o_k_u_p_P_r_e_f_i_x(in _D_O_M_S_t_r_i_n_g namespaceURI); // Introduced in DOM Level 3: boolean _i_s_D_e_f_a_u_l_t_N_a_m_e_s_p_a_c_e(in _D_O_M_S_t_r_i_n_g namespaceURI); // Introduced in DOM Level 3: _D_O_M_S_t_r_i_n_g _l_o_o_k_u_p_N_a_m_e_s_p_a_c_e_U_R_I(in _D_O_M_S_t_r_i_n_g prefix); // Introduced in DOM Level 3: boolean _i_s_E_q_u_a_l_N_o_d_e(in _N_o_d_e arg); // Introduced in DOM Level 3: _D_O_M_O_b_j_e_c_t _g_e_t_F_e_a_t_u_r_e(in _D_O_M_S_t_r_i_n_g feature, in _D_O_M_S_t_r_i_n_g version); // Introduced in DOM Level 3: _D_O_M_U_s_e_r_D_a_t_a _s_e_t_U_s_e_r_D_a_t_a(in _D_O_M_S_t_r_i_n_g key, in _D_O_M_U_s_e_r_D_a_t_a data, in _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r handler); // Introduced in DOM Level 3: _D_O_M_U_s_e_r_D_a_t_a _g_e_t_U_s_e_r_D_a_t_a(in _D_O_M_S_t_r_i_n_g key); }; interface _N_o_d_e_L_i_s_t { _N_o_d_e _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; }; interface _N_a_m_e_d_N_o_d_e_M_a_p { _N_o_d_e _g_e_t_N_a_m_e_d_I_t_e_m(in _D_O_M_S_t_r_i_n_g name); _N_o_d_e _s_e_t_N_a_m_e_d_I_t_e_m(in _N_o_d_e arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e _r_e_m_o_v_e_N_a_m_e_d_I_t_e_m(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e _i_t_e_m(in unsigned long index); readonly attribute unsigned long _l_e_n_g_t_h; // Introduced in DOM Level 2: _N_o_d_e _g_e_t_N_a_m_e_d_I_t_e_m_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e _s_e_t_N_a_m_e_d_I_t_e_m_N_S(in _N_o_d_e arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e _r_e_m_o_v_e_N_a_m_e_d_I_t_e_m_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; interface _C_h_a_r_a_c_t_e_r_D_a_t_a : _N_o_d_e { attribute _D_O_M_S_t_r_i_n_g _d_a_t_a; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on retrieval readonly attribute unsigned long _l_e_n_g_t_h; _D_O_M_S_t_r_i_n_g _s_u_b_s_t_r_i_n_g_D_a_t_a(in unsigned long offset, in unsigned long count) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _a_p_p_e_n_d_D_a_t_a(in _D_O_M_S_t_r_i_n_g arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _i_n_s_e_r_t_D_a_t_a(in unsigned long offset, in _D_O_M_S_t_r_i_n_g arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _d_e_l_e_t_e_D_a_t_a(in unsigned long offset, in unsigned long count) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _r_e_p_l_a_c_e_D_a_t_a(in unsigned long offset, in unsigned long count, in _D_O_M_S_t_r_i_n_g arg) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; interface _A_t_t_r : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _n_a_m_e; readonly attribute boolean _s_p_e_c_i_f_i_e_d; attribute _D_O_M_S_t_r_i_n_g _v_a_l_u_e; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 2: readonly attribute _E_l_e_m_e_n_t _o_w_n_e_r_E_l_e_m_e_n_t; // Introduced in DOM Level 3: readonly attribute _T_y_p_e_I_n_f_o _s_c_h_e_m_a_T_y_p_e_I_n_f_o; // Introduced in DOM Level 3: readonly attribute boolean _i_s_I_d; }; interface _E_l_e_m_e_n_t : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _t_a_g_N_a_m_e; _D_O_M_S_t_r_i_n_g _g_e_t_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name); void _s_e_t_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name, in _D_O_M_S_t_r_i_n_g value) raises(_D_O_M_E_x_c_e_p_t_i_o_n); void _r_e_m_o_v_e_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _A_t_t_r _g_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e(in _D_O_M_S_t_r_i_n_g name); _A_t_t_r _s_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e(in _A_t_t_r newAttr) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _A_t_t_r _r_e_m_o_v_e_A_t_t_r_i_b_u_t_e_N_o_d_e(in _A_t_t_r oldAttr) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e(in _D_O_M_S_t_r_i_n_g name); // Introduced in DOM Level 2: _D_O_M_S_t_r_i_n_g _g_e_t_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: void _s_e_t_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName, in _D_O_M_S_t_r_i_n_g value) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: void _r_e_m_o_v_e_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _A_t_t_r _g_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _A_t_t_r _s_e_t_A_t_t_r_i_b_u_t_e_N_o_d_e_N_S(in _A_t_t_r newAttr) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: boolean _h_a_s_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name); // Introduced in DOM Level 2: boolean _h_a_s_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: readonly attribute _T_y_p_e_I_n_f_o _s_c_h_e_m_a_T_y_p_e_I_n_f_o; // Introduced in DOM Level 3: void _s_e_t_I_d_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name, in boolean isId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: void _s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName, in boolean isId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: void _s_e_t_I_d_A_t_t_r_i_b_u_t_e_N_o_d_e(in _A_t_t_r idAttr, in boolean isId) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; interface _T_e_x_t : _C_h_a_r_a_c_t_e_r_D_a_t_a { _T_e_x_t _s_p_l_i_t_T_e_x_t(in unsigned long offset) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: readonly attribute boolean _i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _w_h_o_l_e_T_e_x_t; // Introduced in DOM Level 3: _T_e_x_t _r_e_p_l_a_c_e_W_h_o_l_e_T_e_x_t(in _D_O_M_S_t_r_i_n_g content) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; interface _C_o_m_m_e_n_t : _C_h_a_r_a_c_t_e_r_D_a_t_a { }; // Introduced in DOM Level 3: interface _T_y_p_e_I_n_f_o { readonly attribute _D_O_M_S_t_r_i_n_g _t_y_p_e_N_a_m_e; readonly attribute _D_O_M_S_t_r_i_n_g _t_y_p_e_N_a_m_e_s_p_a_c_e; // DerivationMethods const unsigned long _D_E_R_I_V_A_T_I_O_N___R_E_S_T_R_I_C_T_I_O_N = 0x00000001; const unsigned long _D_E_R_I_V_A_T_I_O_N___E_X_T_E_N_S_I_O_N = 0x00000002; const unsigned long _D_E_R_I_V_A_T_I_O_N___U_N_I_O_N = 0x00000004; const unsigned long _D_E_R_I_V_A_T_I_O_N___L_I_S_T = 0x00000008; boolean _i_s_D_e_r_i_v_e_d_F_r_o_m(in _D_O_M_S_t_r_i_n_g typeNamespaceArg, in _D_O_M_S_t_r_i_n_g typeNameArg, in unsigned long derivationMethod); }; // Introduced in DOM Level 3: interface _U_s_e_r_D_a_t_a_H_a_n_d_l_e_r { // OperationType const unsigned short _N_O_D_E___C_L_O_N_E_D = 1; const unsigned short _N_O_D_E___I_M_P_O_R_T_E_D = 2; const unsigned short _N_O_D_E___D_E_L_E_T_E_D = 3; const unsigned short _N_O_D_E___R_E_N_A_M_E_D = 4; const unsigned short _N_O_D_E___A_D_O_P_T_E_D = 5; void _h_a_n_d_l_e(in unsigned short operation, in _D_O_M_S_t_r_i_n_g key, in _D_O_M_U_s_e_r_D_a_t_a data, in _N_o_d_e src, in _N_o_d_e dst); }; // Introduced in DOM Level 3: interface _D_O_M_E_r_r_o_r { // ErrorSeverity const unsigned short _S_E_V_E_R_I_T_Y___W_A_R_N_I_N_G = 1; const unsigned short _S_E_V_E_R_I_T_Y___E_R_R_O_R = 2; const unsigned short _S_E_V_E_R_I_T_Y___F_A_T_A_L___E_R_R_O_R = 3; readonly attribute unsigned short _s_e_v_e_r_i_t_y; readonly attribute _D_O_M_S_t_r_i_n_g _m_e_s_s_a_g_e; readonly attribute _D_O_M_S_t_r_i_n_g _t_y_p_e; readonly attribute _D_O_M_O_b_j_e_c_t _r_e_l_a_t_e_d_E_x_c_e_p_t_i_o_n; readonly attribute _D_O_M_O_b_j_e_c_t _r_e_l_a_t_e_d_D_a_t_a; readonly attribute _D_O_M_L_o_c_a_t_o_r _l_o_c_a_t_i_o_n; }; // Introduced in DOM Level 3: interface _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r { boolean _h_a_n_d_l_e_E_r_r_o_r(in _D_O_M_E_r_r_o_r error); }; // Introduced in DOM Level 3: interface _D_O_M_L_o_c_a_t_o_r { readonly attribute long _l_i_n_e_N_u_m_b_e_r; readonly attribute long _c_o_l_u_m_n_N_u_m_b_e_r; readonly attribute long _b_y_t_e_O_f_f_s_e_t; readonly attribute long _u_t_f_1_6_O_f_f_s_e_t; readonly attribute _N_o_d_e _r_e_l_a_t_e_d_N_o_d_e; readonly attribute _D_O_M_S_t_r_i_n_g _u_r_i; }; // Introduced in DOM Level 3: interface _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n { void _s_e_t_P_a_r_a_m_e_t_e_r(in _D_O_M_S_t_r_i_n_g name, in _D_O_M_U_s_e_r_D_a_t_a value) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _D_O_M_U_s_e_r_D_a_t_a _g_e_t_P_a_r_a_m_e_t_e_r(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); boolean _c_a_n_S_e_t_P_a_r_a_m_e_t_e_r(in _D_O_M_S_t_r_i_n_g name, in _D_O_M_U_s_e_r_D_a_t_a value); readonly attribute _D_O_M_S_t_r_i_n_g_L_i_s_t _p_a_r_a_m_e_t_e_r_N_a_m_e_s; }; interface _C_D_A_T_A_S_e_c_t_i_o_n : _T_e_x_t { }; interface _D_o_c_u_m_e_n_t_T_y_p_e : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _n_a_m_e; readonly attribute _N_a_m_e_d_N_o_d_e_M_a_p _e_n_t_i_t_i_e_s; readonly attribute _N_a_m_e_d_N_o_d_e_M_a_p _n_o_t_a_t_i_o_n_s; // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _p_u_b_l_i_c_I_d; // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _s_y_s_t_e_m_I_d; // Introduced in DOM Level 2: readonly attribute _D_O_M_S_t_r_i_n_g _i_n_t_e_r_n_a_l_S_u_b_s_e_t; }; interface _N_o_t_a_t_i_o_n : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _p_u_b_l_i_c_I_d; readonly attribute _D_O_M_S_t_r_i_n_g _s_y_s_t_e_m_I_d; }; interface _E_n_t_i_t_y : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _p_u_b_l_i_c_I_d; readonly attribute _D_O_M_S_t_r_i_n_g _s_y_s_t_e_m_I_d; readonly attribute _D_O_M_S_t_r_i_n_g _n_o_t_a_t_i_o_n_N_a_m_e; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _i_n_p_u_t_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _x_m_l_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _x_m_l_V_e_r_s_i_o_n; }; interface _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e : _N_o_d_e { }; interface _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n : _N_o_d_e { readonly attribute _D_O_M_S_t_r_i_n_g _t_a_r_g_e_t; attribute _D_O_M_S_t_r_i_n_g _d_a_t_a; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting }; interface _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t : _N_o_d_e { }; interface _D_o_c_u_m_e_n_t : _N_o_d_e { // Modified in DOM Level 3: readonly attribute _D_o_c_u_m_e_n_t_T_y_p_e _d_o_c_t_y_p_e; readonly attribute _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n _i_m_p_l_e_m_e_n_t_a_t_i_o_n; readonly attribute _E_l_e_m_e_n_t _d_o_c_u_m_e_n_t_E_l_e_m_e_n_t; _E_l_e_m_e_n_t _c_r_e_a_t_e_E_l_e_m_e_n_t(in _D_O_M_S_t_r_i_n_g tagName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t _c_r_e_a_t_e_D_o_c_u_m_e_n_t_F_r_a_g_m_e_n_t(); _T_e_x_t _c_r_e_a_t_e_T_e_x_t_N_o_d_e(in _D_O_M_S_t_r_i_n_g data); _C_o_m_m_e_n_t _c_r_e_a_t_e_C_o_m_m_e_n_t(in _D_O_M_S_t_r_i_n_g data); _C_D_A_T_A_S_e_c_t_i_o_n _c_r_e_a_t_e_C_D_A_T_A_S_e_c_t_i_o_n(in _D_O_M_S_t_r_i_n_g data) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n _c_r_e_a_t_e_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n(in _D_O_M_S_t_r_i_n_g target, in _D_O_M_S_t_r_i_n_g data) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _A_t_t_r _c_r_e_a_t_e_A_t_t_r_i_b_u_t_e(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e _c_r_e_a_t_e_E_n_t_i_t_y_R_e_f_e_r_e_n_c_e(in _D_O_M_S_t_r_i_n_g name) raises(_D_O_M_E_x_c_e_p_t_i_o_n); _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e(in _D_O_M_S_t_r_i_n_g tagname); // Introduced in DOM Level 2: _N_o_d_e _i_m_p_o_r_t_N_o_d_e(in _N_o_d_e importedNode, in boolean deep) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _E_l_e_m_e_n_t _c_r_e_a_t_e_E_l_e_m_e_n_t_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _A_t_t_r _c_r_e_a_t_e_A_t_t_r_i_b_u_t_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 2: _N_o_d_e_L_i_s_t _g_e_t_E_l_e_m_e_n_t_s_B_y_T_a_g_N_a_m_e_N_S(in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g localName); // Introduced in DOM Level 2: _E_l_e_m_e_n_t _g_e_t_E_l_e_m_e_n_t_B_y_I_d(in _D_O_M_S_t_r_i_n_g elementId); // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _i_n_p_u_t_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: readonly attribute _D_O_M_S_t_r_i_n_g _x_m_l_E_n_c_o_d_i_n_g; // Introduced in DOM Level 3: attribute boolean _x_m_l_S_t_a_n_d_a_l_o_n_e; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 3: attribute _D_O_M_S_t_r_i_n_g _x_m_l_V_e_r_s_i_o_n; // raises(_D_O_M_E_x_c_e_p_t_i_o_n) on setting // Introduced in DOM Level 3: attribute boolean _s_t_r_i_c_t_E_r_r_o_r_C_h_e_c_k_i_n_g; // Introduced in DOM Level 3: attribute _D_O_M_S_t_r_i_n_g _d_o_c_u_m_e_n_t_U_R_I; // Introduced in DOM Level 3: _N_o_d_e _a_d_o_p_t_N_o_d_e(in _N_o_d_e source) raises(_D_O_M_E_x_c_e_p_t_i_o_n); // Introduced in DOM Level 3: readonly attribute _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n _d_o_m_C_o_n_f_i_g; // Introduced in DOM Level 3: void _n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t(); // Introduced in DOM Level 3: _N_o_d_e _r_e_n_a_m_e_N_o_d_e(in _N_o_d_e n, in _D_O_M_S_t_r_i_n_g namespaceURI, in _D_O_M_S_t_r_i_n_g qualifiedName) raises(_D_O_M_E_x_c_e_p_t_i_o_n); }; }; #endif // _DOM_IDL_ 07 April 2004 ************ AAppppeennddiixx DD:: CCoonnffiigguurraattiioonn SSeettttiinnggss ************ Editor: Elena Litani, IBM ********** DD..11 CCoonnffiigguurraattiioonn SScceennaarriiooss ********** Using the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n users can change behavior of the DOMParser, DOMSerializer and _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_). If a DOM implementation supports XML Schemas and DTD validation, the table below defines behavior of such implementation following various parameter settings on the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n. Errors are effectively reported only if a _D_O_M_E_r_r_o_r_H_a_n_d_l_e_r object is attached to the "_e_r_r_o_r_-_h_a_n_d_l_e_r" parameter. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | | | |IInnssttaannccee | | | |""_ss_cc_hh_ee_mm_aa_-- | |""_vv_aa_ll_ii_dd_aa_tt_ee_--|sscchheemmaass,, | |OOtthheerr | |_tt_yy_pp_ee"" |""_vv_aa_ll_ii_dd_aa_tt_ee""|_ii_ff_--_ss_cc_hh_ee_mm_aa""|ii..ee.. tthhee |OOuuttccoommee |ppaarraammeetteerrss | | | | |ccuurrrreenntt | | | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ss_cc_hh_ee_mm_aa_ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |null |_t_r_u_e_ _ _ _ _ _ _|_f_a_l_s_e_ _ _ _ _ |DTD and XML|Implementation |The outcome of | | |false |true |Schema |dependent |setting the | | | | | | |"_d_a_t_a_t_y_p_e_- | | | | | | |_n_o_r_m_a_l_i_z_a_t_i_o_n",| | | | | | |"_e_l_e_m_e_n_t_- | | | | | | |_c_o_n_t_e_n_t_- | | | | | | |_w_h_i_t_e_s_p_a_c_e" or | | | | | | |"_n_a_m_e_s_p_a_c_e_s" | | | | | | |parameters to | | | | | | |true or false | | | | | | |is | | | | | | |implementation | | | | | | |dependent. | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |null |_t_r_u_e_ _ _ _ _ _ _|_f_a_l_s_e_ _ _ _ _ |none |_R_e_p_o_r_t_ _a_n_ _e_r_r_o_r|Setting the | | |false |true | |No error is |"_d_a_t_a_t_y_p_e_- | | | | | |reported |_n_o_r_m_a_l_i_z_a_t_i_o_n" | | | | | | |to true or | | | | | | |false has no | | | | | | |effect on the | | | | | | |DOM. | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |null |_t_r_u_e_ _ _ _ _ _ _|_f_a_l_s_e_ _ _ _ _ |DTD |Validate |Setting the | | |false |true | |against DTD |"_d_a_t_a_t_y_p_e_- | | | | | | |_n_o_r_m_a_l_i_z_a_t_i_o_n" | | | | | | |to true or | | | | | | |false has no | | | | | | |effect on the | | | | | | |DOM. | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |null |_t_r_u_e_ _ _ _ _ _ _|_f_a_l_s_e_ _ _ _ _ |XML Schema |Validate |The outcome of | | |false |true | |against XML |setting the | | | | | |Schema |"_n_a_m_e_s_p_a_c_e_s" to| | | | | | |false is | | | | | | |implementation | | | | | | |dependent | | | | | | |(likely to be | | | | | | |an error). | | | | | | |Setting the | | | | | | |"_e_l_e_m_e_n_t_- | | | | | | |_c_o_n_t_e_n_t_- | | | | | | |_w_h_i_t_e_s_p_a_c_e" to | | | | | | |false does not | | | | | | |have any effect| | | | | | |on the DOM. | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |"http:// |true |false |DTD or XML |If DTD is |Setting the | |www.w3.org/| | |Schema or |found, validate|"_d_a_t_a_t_y_p_e_- | |TR/REC-xml"| | |both |against DTD. |_n_o_r_m_a_l_i_z_a_t_i_o_n" | | | | | |Otherwise, |to true or | | | | | |report an |false has no | | |_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ | |_e_r_r_o_r_._ _ _ _ _ _ _ _ _ |effect on the | | |false |true | |If DTD is |DOM. | | | | | |found, validate| | | | | | |against DTD. | | | | | | | | | | | | | | | | | | | | | | | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |"http:// |true |false |DTD or XML |If XML Schema |Setting the | |www.w3.org/| | |Schema or |is found, |"_d_a_t_a_t_y_p_e_- | |2001/ | | |both |validate |_n_o_r_m_a_l_i_z_a_t_i_o_n" | |XMLSchema" | | | |against the |to true exposes| | | | | |schema. |XML Schema | | | | | |Otherwise, |_n_o_r_m_a_l_i_z_e_d | | | | | |report an |_v_a_l_u_e_s in the | | |_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ | |_e_r_r_o_r_._ _ _ _ _ _ _ _ _ |DOM. The | | |false |true | |If XML Schema |outcome of | | | | | |is found, |setting the | | | | | |validate |"_n_a_m_e_s_p_a_c_e_s" to| | | | | |against the |false is | | | | | |schema. |implementation | | | | | | |dependent | | | | | | |(likely to be | | | | | | |an error). | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |"http:// |false |false |DTD or XML |If XML Schema |Setting the | |www.w3.org/| | |Schema or |is found, it is|"_d_a_t_a_t_y_p_e_- | |2001/ | | |both |ignored. DOM |_n_o_r_m_a_l_i_z_a_t_i_o_n" | |XMLSchema" | | | |implementations|to true of | |or "http://| | | |_m_a_y use |false has no | |www.w3.org/| | | |information |effect on the | |TR/REC-xml"| | | |available in |DOM. | | | | | |the DTD to | | | | | | |perform _e_n_t_i_t_y | | |_ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _|_r_e_s_o_l_u_t_i_o_n_._ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | NNoottee:: If an error has to be reported, as specified in the "Outcome" column above, the _D_O_M_E_r_r_o_r_._t_y_p_e is "no-schema-available". 07 April 2004 ************ AAppppeennddiixx CC:: IInnffoosseett MMaappppiinngg ************ Editor: Philippe Le Hégaret, W3C ********** TTaabbllee ooff ccoonntteennttss ********** * _C_._1_ _D_o_c_u_m_e_n_t_ _N_o_d_e_ _M_a_p_p_i_n_g o _C_._1_._1_ _I_n_f_o_s_e_t_ _t_o_ _D_o_c_u_m_e_n_t_ _N_o_d_e o _C_._1_._2_ _D_o_c_u_m_e_n_t_ _N_o_d_e_ _t_o_ _I_n_f_o_s_e_t * _C_._2_ _E_l_e_m_e_n_t_ _N_o_d_e_ _M_a_p_p_i_n_g o _C_._2_._1_ _I_n_f_o_s_e_t_ _t_o_ _E_l_e_m_e_n_t_ _N_o_d_e o _C_._2_._2_ _E_l_e_m_e_n_t_ _N_o_d_e_ _t_o_ _I_n_f_o_s_e_t * _C_._3_ _A_t_t_r_ _N_o_d_e_ _M_a_p_p_i_n_g o _C_._3_._1_ _I_n_f_o_s_e_t_ _t_o_ _A_t_t_r_ _N_o_d_e o _C_._3_._2_ _A_t_t_r_ _N_o_d_e_ _t_o_ _I_n_f_o_s_e_t * _C_._4_ _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_ _N_o_d_e_ _M_a_p_p_i_n_g o _C_._4_._1_ _I_n_f_o_s_e_t_ _t_o_ _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_ _N_o_d_e o _C_._4_._2_ _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_ _N_o_d_e_ _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_f_o_s_e_t_ _t_o_ _N_o_t_a_t_i_o_n_ _N_o_d_e o _C_._1_0_._2_ _N_o_t_a_t_i_o_n_ _N_o_d_e_ _t_o_ _I_n_f_o_s_e_t This appendix contains the mappings between the XML Information Set [_X_M_L _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t] model and the Document Object Model. Starting from a _D_o_c_u_m_e_n_t node, each information item is mapped to its respective _N_o_d_e, and each _N_o_d_e is mapped to its respective information item. As used in the Infoset specification, the Infoset property names are shown in square brackets, [[tthhuuss]]. Unless specified, the Infoset to DOM node mapping makes no distinction between unknown and no value since both will be exposed as null (or false if the DOM attribute is of type boolean). ********** CC..11 DDooccuummeenntt NNooddee MMaappppiinngg ********** ******** CC..11..11 IInnffoosseett ttoo DDooccuummeenntt NNooddee ******** An document information item maps to a _D_o_c_u_m_e_n_t node. The attributes of the corresponding _D_o_c_u_m_e_n_t node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_"_#_d_o_c_u_m_e_n_t_"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _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n_t_._x_m_l_E_n_c_o_d_i_n_g_ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_._x_m_l_S_t_a_n_d_a_l_o_n_e |The [[ssttaannddaalloonnee]] property, or false if the | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_l_a_t_t_e_r_ _h_a_s_ _n_o_ _v_a_l_u_e_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n |The [[vveerrssiioonn]] property, or "1.0" if the latter | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_h_a_s_ _n_o_ _v_a_l_u_e_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_._s_t_r_i_c_t_E_r_r_o_r_C_h_e_c_k_i_n_g_|_t_r_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_._d_o_c_u_m_e_n_t_U_R_I_ _ _ _ _ _ _ _ _|_T_h_e_ _[[_bb_aa_ss_ee_ _UU_RR_II_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_._d_o_m_C_o_n_f_i_g |A _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n object whose parameters are | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_e_t_ _t_o_ _t_h_e_i_r_ _d_e_f_a_u_l_t_ _v_a_l_u_e_s_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | The [[nnoottaattiioonnss]], [[uunnppaarrsseedd eennttiittiieess]] properties are being exposed in the _D_o_c_u_m_e_n_t_T_y_p_e node. NNoottee:: The [[aallll ddeeccllaarraattiioonnss pprroocceesssseedd]] property is not exposed through the _D_o_c_u_m_e_n_t node. ******** CC..11..22 DDooccuummeenntt NNooddee ttoo IInnffoosseett ******** A _D_o_c_u_m_e_n_t node maps to an document information item. _D_o_c_u_m_e_n_t nodes with no namespace URI (_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I equals to null) cannot be represented using the Infoset. The properties of the corresponding document information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_cc_hh_ii_ll_dd_rr_ee_nn_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._c_h_i_l_d_N_o_d_e_s_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_dd_oo_cc_uu_mm_ee_nn_tt_ _ee_ll_ee_mm_ee_nn_tt_]]_ _ _ _ _ _ _ _ _ _ _|_D_o_c_u_m_e_n_t_._d_o_c_u_m_e_n_t_E_l_e_m_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 _|_D_o_c_u_m_e_n_t_._x_m_l_V_e_r_s_i_o_n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_aa_ll_ll_ _dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn_ss_ _pp_rr_oo_cc_ee_ss_ss_ee_dd_]]_|_T_h_e_ _v_a_l_u_e_ _i_s_ _i_m_p_l_e_m_e_n_t_a_t_i_o_n_ _d_e_p_e_n_d_e_n_t_ _ _ _ _ _ _ _ _ _ _ | ********** CC..22 EElleemmeenntt NNooddee MMaappppiinngg ********** ******** CC..22..11 IInnffoosseett ttoo EElleemmeenntt NNooddee ******** An element information item maps to a _E_l_e_m_e_n_t node. The attributes of the corresponding _E_l_e_m_e_n_t node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _E_l_e_m_e_n_t_._t_a_g_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _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a_i_n_e_d_ _i_n_ _t_h_e_ _[[_pp_aa_rr_ee_nn_tt_]]_ _p_r_o_p_e_r_t_y| |_N_o_d_e_._n_e_x_t_S_i_b_l_i_n_g |The information item following the current one on the | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_[[_cc_hh_ii_ll_dd_rr_ee_nn_]]_ _p_r_o_p_e_r_t_y_ _c_o_n_t_a_i_n_e_d_ _i_n_ _t_h_e_ _[[_pp_aa_rr_ee_nn_tt_]]_ _p_r_o_p_e_r_t_y| |_N_o_d_e_._a_t_t_r_i_b_u_t_e_s |The information items contained in the [[aattttrriibbuutteess]] | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_a_n_d_ _[[_nn_aa_mm_ee_ss_pp_aa_cc_ee_ _aa_tt_tt_rr_ii_bb_uu_tt_ee_ss_]]_ _p_r_o_p_e_r_t_i_e_s_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_ _ _ _ _|_T_h_e_ _d_o_c_u_m_e_n_t_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _ _ _|_T_h_e_ _[[_nn_aa_mm_ee_ss_pp_aa_cc_ee_ _nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _ _ _|_T_h_e_ _[[_pp_rr_ee_ff_ii_xx_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _ _ _|_T_h_e_ _[[_ll_oo_cc_aa_ll_ _nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _ _ _|_T_h_e_ _[[_bb_aa_ss_ee_ _UU_RR_II_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t |Concatenation of the _N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t attribute value | | |of every child node, excluding COMMENT_NODE and | | |PROCESSING_INSTRUCTION_NODE nodes. This is the empty | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_t_r_i_n_g_ _i_f_ _t_h_e_ _n_o_d_e_ _h_a_s_ _n_o_ _c_h_i_l_d_r_e_n_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_E_l_e_m_e_n_t_._t_a_g_N_a_m_e |If the [[pprreeffiixx]] property has no value, this contains | | |the [[llooccaall nnaammee]] property. Otherwise, this contains | | |the concatenation of the [[pprreeffiixx]] property, the colon | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_'_:_'_ _c_h_a_r_a_c_t_e_r_,_ _a_n_d_ _t_h_e_ _[[_ll_oo_cc_aa_ll_ _nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_._ _ _ _ _ _ _ _ _ | |_E_l_e_m_e_n_t_._s_c_h_e_m_a_T_y_p_e_I_n_f_o|A _T_y_p_e_I_n_f_o object whose _T_y_p_e_I_n_f_o_._t_y_p_e_N_a_m_e_s_p_a_c_e and | | |_T_y_p_e_I_n_f_o_._t_y_p_e_N_a_m_e are inferred from the schema in use | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_i_f_ _a_v_a_i_l_a_b_l_e_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | NNoottee:: The [[iinn--ssccooppee nnaammeessppaacceess]] property is not exposed through the _E_l_e_m_e_n_t node. ******** CC..22..22 EElleemmeenntt NNooddee ttoo IInnffoosseett ******** An _E_l_e_m_e_n_t node maps to an element information item. Because the Infoset only represents unexpanded entity references, non-empty _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes contained in _N_o_d_e_._c_h_i_l_d_N_o_d_e_s need to be replaced by their content. DOM applications could use the _D_o_c_u_m_e_n_t_._n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t_(_) method for that effect with the "_e_n_t_i_t_i_e_s" parameter set to false. The properties of the corresponding element information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_aa_mm_ee_ss_pp_aa_cc_ee_ _nn_aa_mm_ee_]]_ _ _ _ _ _ _|_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_ll_oo_cc_aa_ll_ _nn_aa_mm_ee_]]_ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_rr_ee_ff_ii_xx_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[cchhiillddrreenn]] |_N_o_d_e_._c_h_i_l_d_N_o_d_e_s, whose expanded entity references | | |(_E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes with children) have been | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_r_e_p_l_a_c_e_d_ _w_i_t_h_ _t_h_e_i_r_ _c_o_n_t_e_n_t_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[aattttrriibbuutteess]] |The nodes contained in _N_o_d_e_._a_t_t_r_i_b_u_t_e_s, whose | | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I value is different from "http:// | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_w_w_w_._w_3_._o_r_g_/_2_0_0_0_/_x_m_l_n_s_/_"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[nnaammeessppaaccee aattttrriibbuutteess]]|The nodes contained in _N_o_d_e_._a_t_t_r_i_b_u_t_e_s, whose | | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I value is "http://www.w3.org/2000/ | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_x_m_l_n_s_/_"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[iinn--ssccooppee nnaammeessppaacceess]] |The namespace information items computed using the | | |[[nnaammeessppaaccee aattttrriibbuutteess]] properties of this node and its| | |ancestors. If the [_D_O_M_ _L_e_v_e_l_ _3_ _X_P_a_t_h] module is | | |supported, the namespace information items can also be| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_c_o_m_p_u_t_e_d_ _f_r_o_m_ _t_h_e_ _X_P_a_t_h_N_a_m_e_s_p_a_c_e_ _n_o_d_e_s_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_bb_aa_ss_ee_ _UU_RR_II_]]_ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_aa_rr_ee_nn_tt_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..33 AAttttrr NNooddee MMaappppiinngg ********** ******** CC..33..11 IInnffoosseett ttoo AAttttrr NNooddee ******** An attribute information item map to a _A_t_t_r node. The attributes of the corresponding _A_t_t_r node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_//_MM_ee_tt_hh_oo_dd_ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _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_ _ _ _|_T_h_e_ _[[_pp_rr_ee_ff_ii_xx_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _|_T_h_e_ _[[_ll_oo_cc_aa_ll_ _nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t |the value of _N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t of the _T_e_x_t child. same as| | |_N_o_d_e_._n_o_d_e_V_a_l_u_e (since this attribute node only contains | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_o_n_e_ _T_e_x_t_ _n_o_d_e_)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_A_t_t_r_._n_a_m_e |If the [[pprreeffiixx]] property has no value, this contains the| | |[[llooccaall nnaammee]] property. Otherwise, this contains the | | |concatenation of the [[pprreeffiixx]] property, the colon ': | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_'_ _c_h_a_r_a_c_t_e_r_,_ _a_n_d_ _t_h_e_ _[[_ll_oo_cc_aa_ll_ _nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_._ _ _ _ _ _ _ _ _ _ _ _ _ | |_A_t_t_r_._s_p_e_c_i_f_i_e_d_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..22 AAttttrr NNooddee ttoo IInnffoosseett ******** An _A_t_t_r node maps to an attribute information item. _A_t_t_r nodes with no namespace URI (_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I equals to null) cannot be represented using the Infoset. The properties of the corresponding attribute information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_aa_mm_ee_ss_pp_aa_cc_ee_ _nn_aa_mm_ee_]]_ _ _|_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_ll_oo_cc_aa_ll_ _nn_aa_mm_ee_]]_ _ _ _ _ _ _|_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_rr_ee_ff_ii_xx_]]_ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_oo_rr_mm_aa_ll_ii_zz_ee_dd_ _vv_aa_ll_uu_ee_]]_|_A_t_t_r_._v_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_ss_pp_ee_cc_ii_ff_ii_ee_dd_]]_ _ _ _ _ _ _ _|_A_t_t_r_._s_p_e_c_i_f_i_e_d_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[aattttrriibbuuttee ttyyppee]] |Using the _T_y_p_e_I_n_f_o object referenced from | | |_A_t_t_r_._s_c_h_e_m_a_T_y_p_e_I_n_f_o, the value of _T_y_p_e_I_n_f_o_._t_y_p_e_N_a_m_e if | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_T_y_p_e_I_n_f_o_._t_y_p_e_N_a_m_e_s_p_a_c_e_ _i_s_ _"_h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_T_R_/_R_E_C_-_x_m_l_"_.| |[[rreeffeerreenncceess]] |if the computed [[aattttrriibbuuttee ttyyppee]] property is IDREF, | | |IDREFS, ENTITY, ENTITIES, or NOTATION, the value of this | | |property is an ordered list of the element, unparsed | | |entity, or notation information items referred to in the | | |attribute value, in the order that they appear there. The| | |ordered list is computed using | | |Node.ownerDocument.getElementById, | | |Node.ownerDocument.doctype.entities, and | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_._d_o_c_t_y_p_e_._n_o_t_a_t_i_o_n_s_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_oo_ww_nn_ee_rr_ _ee_ll_ee_mm_ee_nn_tt_]]_ _ _ _|_A_t_t_r_._o_w_n_e_r_E_l_e_m_e_n_t_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..44 PPrroocceessssiinnggIInnssttrruuccttiioonn NNooddee MMaappppiinngg ********** ******** CC..44..11 IInnffoosseett ttoo PPrroocceessssiinnggIInnssttrruuccttiioonn NNooddee ******** A processing instruction information item map to a _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n node. The attributes of the corresponding _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._t_a_r_g_e_t_ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._d_a_t_a_ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_T_y_p_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._P_R_O_C_E_S_S_I_N_G___I_N_S_T_R_U_C_T_I_O_N___N_O_D_E_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |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 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_ _ _ _ _ _ _ _ _ _ _|_T_h_e_ _d_o_c_u_m_e_n_t_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._b_a_s_e_U_R_I |The [[bbaassee UURRII]] property of the parent element if| | |any. The [[bbaassee UURRII]] property of the processing | | |instruction information item is not exposed | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_t_h_r_o_u_g_h_ _t_h_e_ _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_ _n_o_d_e_._ _ _ _ _ _ _ _ _ | |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t_ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._t_a_r_g_e_t_|_T_h_e_ _[[_tt_aa_rr_gg_ee_tt_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._d_a_t_a_ _ _|_T_h_e_ _[[_cc_oo_nn_tt_ee_nn_tt_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ******** CC..44..22 PPrroocceessssiinnggIInnssttrruuccttiioonn NNooddee ttoo IInnffoosseett ******** A _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n node maps to an processing instruction information item. The properties of the corresponding processing instruction information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_tt_aa_rr_gg_ee_tt_]]_ _ _|_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._t_a_r_g_e_t_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_cc_oo_nn_tt_ee_nn_tt_]]_ _|_P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n_._d_a_t_a_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[bbaassee UURRII]]|_N_o_d_e_._b_a_s_e_U_R_I (which is equivalent to the base URI of its parent| |_ _ _ _ _ _ _ _ _ _ _|_e_l_e_m_e_n_t_ _i_f_ _a_n_y_)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[nnoottaattiioonn]]|The _N_o_t_a_t_i_o_n node named by the target and if available from | |_ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_._d_o_c_t_y_p_e_._n_o_t_a_t_i_o_n_s_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_aa_rr_ee_nn_tt_]]_ _ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..55 EEnnttiittyyRReeffeerreennccee NNooddee MMaappppiinngg ********** ******** CC..55..11 IInnffoosseett ttoo EEnnttiittyyRReeffeerreennccee NNooddee ******** An unexpanded entity reference information item maps to a _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node. The attributes of the corresponding _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _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_g_ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._a_t_t_r_i_b_u_t_e_s_ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_ _ _|_T_h_e_ _d_o_c_u_m_e_n_t_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_ _ _ _ _ _ | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _|_T_h_e_ _[[_dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn_ _bb_aa_ss_ee_ _UU_RR_II_]]_ _p_r_o_p_e_r_t_y| |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t_ _ _ _ _|_n_u_l_l_ _(_t_h_e_ _n_o_d_e_ _h_a_s_ _n_o_ _c_h_i_l_d_r_e_n_)_ _ _ _ | NNoottee:: The [[ssyysstteemm iiddeennttiiffiieerr]] and [[ppuubblliicc iiddeennttiiffiieerr]] properties are not exposed through the _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node, but through the _E_n_t_i_t_y node reference from this _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node, if any. ******** CC..55..22 EEnnttiittyyRReeffeerreennccee NNooddee ttoo IInnffoosseett ******** An _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e node maps to an unexpanded entity reference information item. _E_n_t_i_t_y_R_e_f_e_r_e_n_c_e nodes with children (_N_o_d_e_._c_h_i_l_d_N_o_d_e_s contains a non-empty list) cannot be represented using the Infoset. The properties of the corresponding unexpanded entity reference information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_aa_mm_ee_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[ssyysstteemm iiddeennttiiffiieerr]] |The _E_n_t_i_t_y_._s_y_s_t_e_m_I_d value of the _E_n_t_i_t_y node available| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_f_r_o_m_ _N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_._d_o_c_t_y_p_e_._e_n_t_i_t_i_e_s_ _i_f_ _a_v_a_i_l_a_b_l_e_ | |[[ppuubblliicc iiddeennttiiffiieerr]] |The _E_n_t_i_t_y_._p_u_b_l_i_c_I_d value of the _E_n_t_i_t_y node available| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_f_r_o_m_ _N_o_d_e_._o_w_n_e_r_D_o_c_u_m_e_n_t_._d_o_c_t_y_p_e_._e_n_t_i_t_i_e_s_ _i_f_ _a_v_a_i_l_a_b_l_e_ | |_[[_dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn_ _bb_aa_ss_ee_ _UU_RR_II_]]_|_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_aa_rr_ee_nn_tt_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..66 TTeexxtt aanndd CCDDAATTAASSeeccttiioonn NNooddeess MMaappppiinngg ********** Since the [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t] doesn't represent the boundaries of CDATA marked sections, _C_D_A_T_A_S_e_c_t_i_o_n nodes cannot occur from an infoset mapping. ******** CC..66..11 IInnffoosseett ttoo TTeexxtt NNooddee ******** Consecutive character information items map to a _T_e_x_t node. The attributes of the corresponding _T_e_x_t node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_//_MM_ee_tt_hh_oo_dd_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _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_ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a |A _D_O_M_S_t_r_i_n_g including all [[cchhaarraacctteerr ccooddee]] | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_c_o_n_t_a_i_n_e_d_ _i_n_ _t_h_e_ _c_h_a_r_a_c_t_e_r_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_s_ | |_C_h_a_r_a_c_t_e_r_D_a_t_a_._l_e_n_g_t_h |The number of 16-bit units needed to encode | | |all ISO 10646 character code contained in the| | |character information items using the UTF-16 | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_e_n_c_o_d_i_n_g_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e_|_T_h_e_ _[[_ee_ll_ee_mm_ee_nn_tt_ _cc_oo_nn_tt_ee_nn_tt_ _ww_hh_ii_tt_ee_ss_pp_aa_cc_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ | |_T_e_x_t_._w_h_o_l_e_T_e_x_t_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | NNoottee:: By construction, the values of the [[ppaarreenntt]] and [[eelleemmeenntt ccoonntteenntt wwhhiitteessppaaccee]] properties are necessarily the sames for all consecutive character information items. ******** CC..66..22 TTeexxtt aanndd CCDDAATTAASSeeccttiioonn NNooddeess ttoo IInnffoosseett ******** The text content of a _T_e_x_t or a _C_D_A_T_A_S_e_c_t_i_o_n node maps to a sequence of character information items. The number of items is less or equal to _C_h_a_r_a_c_t_e_r_D_a_t_a_._l_e_n_g_t_h. Text nodes contained in _A_t_t_r nodes are mapped to the Infoset using the _A_t_t_r_._v_a_l_u_e attribute. Text nodes contained in _D_o_c_u_m_e_n_t nodes cannot be represented using the Infoset. The properties of the corresponding character information items are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[cchhaarraacctteerr ccooddee]] |The ISO 10646 character code produced using one| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_o_r_ _t_w_o_ _1_6_-_b_i_t_ _u_n_i_t_s_ _f_r_o_m_ _C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a_ _ _ _ | |_[[_ee_ll_ee_mm_ee_nn_tt_ _cc_oo_nn_tt_ee_nn_tt_ _ww_hh_ii_tt_ee_ss_pp_aa_cc_ee_]]_|_T_e_x_t_._i_s_E_l_e_m_e_n_t_C_o_n_t_e_n_t_W_h_i_t_e_s_p_a_c_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_aa_rr_ee_nn_tt_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..77 CCoommmmeenntt NNooddee MMaappppiinngg ********** ******** CC..77..11 IInnffoosseett ttoo CCoommmmeenntt NNooddee ******** A comment information item maps to a _C_o_m_m_e_n_t node. The attributes of the corresponding _C_o_m_m_e_n_t node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _|_"_#_c_o_m_m_e_n_t_"_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _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 _ _ | |_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t_ _ _ _ _|_s_a_m_e_ _a_s_ _N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a |The [[ccoonntteenntt]] property encoded using the UTF-16 | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_e_n_c_o_d_i_n_g_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_C_h_a_r_a_c_t_e_r_D_a_t_a_._l_e_n_g_t_h|The number of 16-bit units needed to encode all ISO | | |character code contained in the [[ccoonntteenntt]] property using| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_t_h_e_ _U_T_F_-_1_6_ _e_n_c_o_d_i_n_g_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ******** CC..77..22 CCoommmmeenntt NNooddee ttoo IInnffoosseett ******** A _C_o_m_m_e_n_t maps to a comment information item. The properties of the corresponding comment information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_cc_oo_nn_tt_ee_nn_tt_]]_|_C_h_a_r_a_c_t_e_r_D_a_t_a_._d_a_t_a| |_[[_pp_aa_rr_ee_nn_tt_]]_ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ | ********** CC..88 DDooccuummeennttTTyyppee NNooddee MMaappppiinngg ********** ******** CC..88..11 IInnffoosseett ttoo DDooccuummeennttTTyyppee NNooddee ******** A document type declaration information item maps to a _D_o_c_u_m_e_n_t_T_y_p_e node. The attributes of the corresponding _D_o_c_u_m_e_n_t_T_y_p_e node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_s_a_m_e_ _a_s_ _D_o_c_u_m_e_n_t_T_y_p_e_._n_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_T_y_p_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._D_O_C_U_M_E_N_T___T_Y_P_E___N_O_D_E_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_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 _t_h_e_ _d_o_c_u_m_e_n_t_ _e_l_e_m_e_n_t_._ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_T_y_p_e_._e_n_t_i_t_i_e_s |The [[uunnppaarrsseedd eennttiittiieess]] property available from| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_t_h_e_ _d_o_c_u_m_e_n_t_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_T_y_p_e_._n_o_t_a_t_i_o_n_s |The [[nnoottaattiioonnss]] property available from the | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_d_o_c_u_m_e_n_t_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_T_y_p_e_._p_u_b_l_i_c_I_d_ _ _ _ _ _ _|_T_h_e_ _[[_pp_uu_bb_ll_ii_cc_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_T_y_p_e_._s_y_s_t_e_m_I_d_ _ _ _ _ _ _|_T_h_e_ _[[_ss_yy_ss_tt_ee_mm_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_D_o_c_u_m_e_n_t_T_y_p_e_._i_n_t_e_r_n_a_l_S_u_b_s_e_t_|_T_h_e_ _v_a_l_u_e_ _i_s_ _i_m_p_l_e_m_e_n_t_a_t_i_o_n_ _d_e_p_e_n_d_e_n_t_ _ _ _ _ _ _ _ _ _ | NNoottee:: The [[cchhiillddrreenn]] property is not exposed through the _D_o_c_u_m_e_n_t_T_y_p_e node. ******** CC..88..22 DDooccuummeennttTTyyppee NNooddee ttoo IInnffoosseett ******** A _D_o_c_u_m_e_n_t_T_y_p_e maps to a document type declaration information item. The properties of the corresponding document type declaration information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_ss_yy_ss_tt_ee_mm_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_|_D_o_c_u_m_e_n_t_T_y_p_e_._s_y_s_t_e_m_I_d_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_uu_bb_ll_ii_cc_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_|_D_o_c_u_m_e_n_t_T_y_p_e_._p_u_b_l_i_c_I_d_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_cc_hh_ii_ll_dd_rr_ee_nn_]]_ _ _ _ _ _ _ _ _ _|_T_h_e_ _v_a_l_u_e_ _o_f_ _t_h_i_s_ _p_r_o_p_e_r_t_y_ _i_s_ _i_m_p_l_e_m_e_n_t_a_t_i_o_n_ _d_e_p_e_n_d_e_n_t| |_[[_pp_aa_rr_ee_nn_tt_]]_ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..99 EEnnttiittyy NNooddee MMaappppiinngg ********** ******** CC..99..11 IInnffoosseett ttoo EEnnttiittyy NNooddee ******** An unparsed entity information item maps to a _E_n_t_i_t_y node. The attributes of the corresponding _E_n_t_i_t_y node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _|_T_h_e_ _[[_nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_T_y_p_e_ _ _ _ _ _ _ _|_N_o_d_e_._E_N_T_I_T_Y___N_O_D_E_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._c_h_i_l_d_N_o_d_e_s_ _ _ _ _ _|_E_m_p_t_y_ _N_o_d_e_L_i_s_t_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e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ttiittyy NNooddee ttoo IInnffoosseett ******** An _E_n_t_i_t_y node maps to an unparsed entity information item. _E_n_t_i_t_y nodes with children (_N_o_d_e_._c_h_i_l_d_N_o_d_e_s contains a non-empty list) cannot be represented using the Infoset. The properties of the corresponding unparsed entity information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_aa_mm_ee_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_ss_yy_ss_tt_ee_mm_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_ _ _ _|_E_n_t_i_t_y_._s_y_s_t_e_m_I_d_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_pp_uu_bb_ll_ii_cc_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_ _ _ _|_E_n_t_i_t_y_._p_u_b_l_i_c_I_d_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn_ _bb_aa_ss_ee_ _UU_RR_II_]]_|_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_oo_tt_aa_tt_ii_oo_nn_ _nn_aa_mm_ee_]]_ _ _ _ _ _ _ _|_E_n_t_i_t_y_._n_o_t_a_t_i_o_n_N_a_m_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |[[nnoottaattiioonn]] |The _N_o_t_a_t_i_o_n node referenced from | | |_D_o_c_u_m_e_n_t_T_y_p_e_._n_o_t_a_t_i_o_n_s whose name is the [[nnoottaattiioonn| |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | ********** CC..1100 NNoottaattiioonn NNooddee MMaappppiinngg ********** ******** CC..1100..11 IInnffoosseett ttoo NNoottaattiioonn NNooddee ******** A notation information item maps to a _N_o_t_a_t_i_o_n node. The attributes of the corresponding _N_o_t_a_t_i_o_n node are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_AA_tt_tt_rr_ii_bb_uu_tt_ee_ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ _ _ _ _|_T_h_e_ _[[_nn_aa_mm_ee_]]_ _p_r_o_p_e_r_t_y_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._n_o_d_e_V_a_l_u_e_ _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_T_h_e_ _d_o_c_u_m_e_n_t_ _i_n_f_o_r_m_a_t_i_o_n_ _i_t_e_m_ _ _ _ _ _ | |_N_o_d_e_._n_a_m_e_s_p_a_c_e_U_R_I_ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._p_r_e_f_i_x_ _ _ _ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._l_o_c_a_l_N_a_m_e_ _ _ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_d_e_._b_a_s_e_U_R_I_ _ _ _ _ _ _ _ _|_T_h_e_ _[[_dd_ee_cc_ll_aa_rr_aa_tt_ii_oo_nn_ _bb_aa_ss_ee_ _UU_RR_II_]]_ _p_r_o_p_e_r_t_y| |_N_o_d_e_._t_e_x_t_C_o_n_t_e_n_t_ _ _ _ _|_n_u_l_l_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_N_o_t_a_t_i_o_n_._p_u_b_l_i_c_I_d_ _ _ _|_T_h_e_ _[[_pp_uu_bb_ll_ii_cc_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_ _p_r_o_p_e_r_t_y_ _ _ | |_N_o_t_a_t_i_o_n_._s_y_s_t_e_m_I_d_ _ _ _|_T_h_e_ _[[_ss_yy_ss_tt_ee_mm_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_ _p_r_o_p_e_r_t_y_ _ _ | ******** CC..1100..22 NNoottaattiioonn NNooddee ttoo IInnffoosseett ******** A _N_o_t_a_t_i_o_n maps to a notation information item. The properties of the corresponding notation information item are constructed as follows: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_PP_rr_oo_pp_ee_rr_tt_yy_ _ _ _ _ _ _ _ _ _ _ _|_VV_aa_ll_uu_ee_ _ _ _ _ _ _ _ _ _ _ _ | |_[[_nn_aa_mm_ee_]]_ _ _ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._n_o_d_e_N_a_m_e_ _ _ _ | |_[[_ss_yy_ss_tt_ee_mm_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_|_N_o_t_a_t_i_o_n_._s_y_s_t_e_m_I_d| |_[[_pp_uu_bb_ll_ii_cc_ _ii_dd_ee_nn_tt_ii_ff_ii_ee_rr_]]_|_N_o_t_a_t_i_o_n_._p_u_b_l_i_c_I_d| |_[[_pp_aa_rr_ee_nn_tt_]]_ _ _ _ _ _ _ _ _ _ _ _|_N_o_d_e_._p_a_r_e_n_t_N_o_d_e_ _ | 07 April 2004 ************ AAppppeennddiixx GG:: JJaavvaa LLaanngguuaaggee BBiinnddiinngg ************ This appendix contains the complete Java [_J_a_v_a] bindings for the Level 3 Document Object Model Core. The Java files are also available as _h_t_t_p_:_/_/_w_w_w_._w_3_._o_r_g_/_T_R_/_2_0_0_4_/_R_E_C_-_D_O_M_-_L_e_v_e_l_-_3_- _C_o_r_e_-_2_0_0_4_0_4_0_7_/_j_a_v_a_-_b_i_n_d_i_n_g_._z_i_p ********** GG..11 JJaavvaa BBiinnddiinngg EExxtteennssiioonn ********** NNoottee:: This section is informative. This section defines the DOMImplementationRegistry object, discussed in _B_o_o_t_s_t_r_a_p_p_i_n_g, for Java. The DOMImplementationRegistry 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 _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e interface. ******** oorrgg//ww33cc//ddoomm//bboooottssttrraapp//DDOOMMIImmpplleemmeennttaattiioonnRReeggiissttrryy..jjaavvaa:: ******** package org.w3c.dom.bootstrap; import java.util.StringTokenizer; import java.util.Vector; import org.w3c.dom.DOMImplementationSource; import org.w3c.dom.DOMImplementationList; import org.w3c.dom.DOMImplementation; import java.io.InputStream; import java.io.BufferedReader; import java.io.InputStreamReader; import java.security.AccessController; import java.security.PrivilegedAction; /** * A factory that enables applications to obtain instances of * DOMImplementation. * *

* Example: *

* *
 *  // get an instance of the DOMImplementation registry
 *  DOMImplementationRegistry registry =
 *       DOMImplementationRegistry.newInstance();
 *  // get a DOM implementation the Level 3 XML module
 *  DOMImplementation domImpl =
 *       registry.getDOMImplementation("XML 3.0");
 * 
* *

* This provides an application with an implementation-independent starting * point. DOM implementations may modify this class to meet new security * standards or to provide *additional* fallbacks for the list of * DOMImplementationSources. *

* * @see DOMImplementation * @see DOMImplementationSource * @since DOM Level 3 */ public final class DOMImplementationRegistry { /** * The system property to specify the * DOMImplementationSource class names. */ public static final String PROPERTY = "org.w3c.dom.DOMImplementationSourceList"; /** * Default columns per line. */ private static final int DEFAULT_LINE_LENGTH = 80; /** * The list of DOMImplementationSources. */ private Vector sources; /** * Private constructor. * @param srcs Vector List of DOMImplementationSources */ private DOMImplementationRegistry(final Vector srcs) { sources = srcs; } /** * Obtain a new instance of a DOMImplementationRegistry. * * The DOMImplementationRegistry is initialized by the * application or the implementation, depending on the context, by * first checking the value of the Java system property * org.w3c.dom.DOMImplementationSourceList and * the the service provider whose contents are at * "META_INF/services/org.w3c.dom.DOMImplementationSourceList" * The value of this property is a white-space separated list of * names of availables classes implementing the * DOMImplementationSource interface. Each class listed * in the class name list is instantiated and any exceptions * encountered are thrown to the application. * * @return an initialized instance of DOMImplementationRegistry * @throws ClassNotFoundException * If any specified class can not be found * @throws InstantiationException * If any specified class is an interface or abstract class * @throws IllegalAccessException * If the default constructor of a specified class is not accessible * @throws ClassCastException * If any specified class does not implement * DOMImplementationSource */ public static DOMImplementationRegistry newInstance() throws ClassNotFoundException, InstantiationException, IllegalAccessException, ClassCastException { Vector sources = new Vector(); ClassLoader classLoader = getClassLoader(); // fetch system property: String p = getSystemProperty(PROPERTY); // // if property is not specified then use contents of // META_INF/org.w3c.dom.DOMImplementationSourceList from classpath if (p == null) { p = getServiceValue(classLoader); } if (p == null) { // // DOM Implementations can modify here to add *additional* fallback // mechanisms to access a list of default DOMImplementationSources. } 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... Class sourceClass = null; if (classLoader != null) { sourceClass = classLoader.loadClass(sourceName); } else { sourceClass = Class.forName(sourceName); } DOMImplementationSource source = (DOMImplementationSource) sourceClass.newInstance(); sources.addElement(source); } } return new DOMImplementationRegistry(sources); } /** * Return the first 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 null if none found. */ public DOMImplementation getDOMImplementation(final String features) { int size = sources.size(); String name = null; for (int i = 0; i < size; i++) { DOMImplementationSource source = (DOMImplementationSource) sources.elementAt(i); DOMImplementation impl = source.getDOMImplementation(features); if (impl != null) { return impl; } } return null; } /** * Return a list of implementations that support the * desired features. * * @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 A list of DOMImplementations that support the desired features. */ public DOMImplementationList getDOMImplementationList(final String features) { final Vector implementations = new Vector(); int size = sources.size(); for (int i = 0; i < size; i++) { DOMImplementationSource source = (DOMImplementationSource) sources.elementAt(i); DOMImplementationList impls = source.getDOMImplementationList(features); for (int j = 0; j < impls.getLength(); j++) { DOMImplementation impl = impls.item(j); implementations.addElement(impl); } } return new DOMImplementationList() { public DOMImplementation item(final int index) { if (index >= 0 && index < implementations.size()) { try { return (DOMImplementation) implementations.elementAt(index); } catch (ArrayIndexOutOfBoundsException e) { return null; } } return null; } public int getLength() { return implementations.size(); } }; } /** * Register an implementation. * * @param s The source to be registered, may not be null */ public void addSource(final DOMImplementationSource s) { if (s == null) { throw new NullPointerException(); } if (!sources.contains(s)) { sources.addElement(s); } } /** * * Gets a class loader. * * @return A class loader, possibly null */ private static ClassLoader getClassLoader() { try { ClassLoader contextClassLoader = getContextClassLoader(); if (contextClassLoader != null) { return contextClassLoader; } } catch (Exception e) { // Assume that the DOM application is in a JRE 1.1, use the // current ClassLoader return DOMImplementationRegistry.class.getClassLoader(); } return DOMImplementationRegistry.class.getClassLoader(); } /** * This method attempts to return the first line of the resource * META_INF/services/org.w3c.dom.DOMImplementationSourceList * from the provided ClassLoader. * * @param classLoader classLoader, may not be null. * @return first line of resource, or null */ private static String getServiceValue(final ClassLoader classLoader) { String serviceId = "META-INF/services/" + PROPERTY; // try to find services in CLASSPATH try { InputStream is = getResourceAsStream(classLoader, serviceId); if (is != null) { BufferedReader rd; try { rd = new BufferedReader(new InputStreamReader(is, "UTF-8"), DEFAULT_LINE_LENGTH); } catch (java.io.UnsupportedEncodingException e) { rd = new BufferedReader(new InputStreamReader(is), DEFAULT_LINE_LENGTH); } String serviceValue = rd.readLine(); rd.close(); if (serviceValue != null && serviceValue.length() > 0) { return serviceValue; } } } catch (Exception ex) { return null; } return null; } /** * A simple JRE (Java Runtime Environment) 1.1 test * * @return true if JRE 1.1 */ private static boolean isJRE11() { try { Class c = Class.forName("java.security.AccessController"); // java.security.AccessController existed since 1.2 so, if no // exception was thrown, the DOM application is running in a JRE // 1.2 or higher return false; } catch (Exception ex) { // ignore } return true; } /** * This method returns the ContextClassLoader or null if * running in a JRE 1.1 * * @return The Context Classloader */ private static ClassLoader getContextClassLoader() { return isJRE11() ? null : (ClassLoader) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { ClassLoader classLoader = null; try { classLoader = Thread.currentThread().getContextClassLoader(); } catch (SecurityException ex) { } return classLoader; } }); } /** * This method returns the system property indicated by the specified name * after checking access control privileges. For a JRE 1.1, this check is * not done. * * @param name the name of the system property * @return the system property */ private static String getSystemProperty(final String name) { return isJRE11() ? (String) System.getProperty(name) : (String) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return System.getProperty(name); } }); } /** * This method returns an Inputstream for the reading resource * META_INF/services/org.w3c.dom.DOMImplementationSourceList after checking * access control privileges. For a JRE 1.1, this check is not done. * * @param classLoader classLoader * @param name the resource * @return an Inputstream for the resource specified */ private static InputStream getResourceAsStream(final ClassLoader classLoader, final String name) { if (isJRE11()) { InputStream ris; if (classLoader == null) { ris = ClassLoader.getSystemResourceAsStream(name); } else { ris = classLoader.getResourceAsStream(name); } return ris; } else { return (InputStream) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { InputStream ris; if (classLoader == null) { ris = ClassLoader.getSystemResourceAsStream (name); } else { ris = classLoader.getResourceAsStream(name); } return ris; } }); } } } ********** GG..22 OOtthheerr CCoorree iinntteerrffaacceess ********** ******** oorrgg//ww33cc//ddoomm//DDOOMMEExxcceeppttiioonn..jjaavvaa:: ******** package org.w3c.dom; public class DOMException extends RuntimeException { public DOMException(short code, String message) { super(message); this.code = code; } public short code; // ExceptionCode public static final short INDEX_SIZE_ERR = 1; public static final short DOMSTRING_SIZE_ERR = 2; public static final short HIERARCHY_REQUEST_ERR = 3; public static final short WRONG_DOCUMENT_ERR = 4; public static final short INVALID_CHARACTER_ERR = 5; public static final short NO_DATA_ALLOWED_ERR = 6; public static final short NO_MODIFICATION_ALLOWED_ERR = 7; public static final short NOT_FOUND_ERR = 8; public static final short NOT_SUPPORTED_ERR = 9; public static final short INUSE_ATTRIBUTE_ERR = 10; public static final short INVALID_STATE_ERR = 11; public static final short SYNTAX_ERR = 12; public static final short INVALID_MODIFICATION_ERR = 13; public static final short NAMESPACE_ERR = 14; public static final short INVALID_ACCESS_ERR = 15; public static final short VALIDATION_ERR = 16; public static final short TYPE_MISMATCH_ERR = 17; } ******** oorrgg//ww33cc//ddoomm//DDOOMMSSttrriinnggLLiisstt..jjaavvaa:: ******** package org.w3c.dom; public interface DOMStringList { public String item(int index); public int getLength(); public boolean contains(String str); } ******** oorrgg//ww33cc//ddoomm//NNaammeeLLiisstt..jjaavvaa:: ******** package org.w3c.dom; public interface NameList { public String getName(int index); public String getNamespaceURI(int index); public int getLength(); public boolean contains(String str); public boolean containsNS(String namespaceURI, String name); } ******** oorrgg//ww33cc//ddoomm//DDOOMMIImmpplleemmeennttaattiioonnLLiisstt..jjaavvaa:: ******** package org.w3c.dom; public interface DOMImplementationList { public DOMImplementation item(int index); public int getLength(); } ******** oorrgg//ww33cc//ddoomm//DDOOMMIImmpplleemmeennttaattiioonnSSoouurrccee..jjaavvaa:: ******** package org.w3c.dom; public interface DOMImplementationSource { public DOMImplementation getDOMImplementation(String features); public DOMImplementationList getDOMImplementationList(String features); } ******** oorrgg//ww33cc//ddoomm//DDOOMMIImmpplleemmeennttaattiioonn..jjaavvaa:: ******** package org.w3c.dom; public interface DOMImplementation { public boolean hasFeature(String feature, String version); public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException; public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException; public Object getFeature(String feature, String version); } ******** oorrgg//ww33cc//ddoomm//DDooccuummeennttFFrraaggmmeenntt..jjaavvaa:: ******** package org.w3c.dom; public interface DocumentFragment extends Node { } ******** oorrgg//ww33cc//ddoomm//DDooccuummeenntt..jjaavvaa:: ******** package org.w3c.dom; public interface Document extends Node { public DocumentType getDoctype(); public DOMImplementation getImplementation(); public Element getDocumentElement(); public Element createElement(String tagName) throws DOMException; public DocumentFragment createDocumentFragment(); public Text createTextNode(String data); public Comment createComment(String data); public CDATASection createCDATASection(String data) throws DOMException; public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException; public Attr createAttribute(String name) throws DOMException; public EntityReference createEntityReference(String name) throws DOMException; public NodeList getElementsByTagName(String tagname); public Node importNode(Node importedNode, boolean deep) throws DOMException; public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException; public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException; public NodeList getElementsByTagNameNS(String namespaceURI, String localName); public Element getElementById(String elementId); public String getInputEncoding(); public String getXmlEncoding(); public boolean getXmlStandalone(); public void setXmlStandalone(boolean xmlStandalone) throws DOMException; public String getXmlVersion(); public void setXmlVersion(String xmlVersion) throws DOMException; public boolean getStrictErrorChecking(); public void setStrictErrorChecking(boolean strictErrorChecking); public String getDocumentURI(); public void setDocumentURI(String documentURI); public Node adoptNode(Node source) throws DOMException; public DOMConfiguration getDomConfig(); public void normalizeDocument(); public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException; } ******** oorrgg//ww33cc//ddoomm//NNooddee..jjaavvaa:: ******** package org.w3c.dom; public interface Node { // NodeType public static final short ELEMENT_NODE = 1; public static final short ATTRIBUTE_NODE = 2; public static final short TEXT_NODE = 3; public static final short CDATA_SECTION_NODE = 4; public static final short ENTITY_REFERENCE_NODE = 5; public static final short ENTITY_NODE = 6; public static final short PROCESSING_INSTRUCTION_NODE = 7; public static final short COMMENT_NODE = 8; public static final short DOCUMENT_NODE = 9; public static final short DOCUMENT_TYPE_NODE = 10; public static final short DOCUMENT_FRAGMENT_NODE = 11; public static final short NOTATION_NODE = 12; public String getNodeName(); public String getNodeValue() throws DOMException; public void setNodeValue(String nodeValue) throws DOMException; public short getNodeType(); public Node getParentNode(); public NodeList getChildNodes(); public Node getFirstChild(); public Node getLastChild(); public Node getPreviousSibling(); public Node getNextSibling(); public NamedNodeMap getAttributes(); public Document getOwnerDocument(); public Node insertBefore(Node newChild, Node refChild) throws DOMException; public Node replaceChild(Node newChild, Node oldChild) throws DOMException; public Node removeChild(Node oldChild) throws DOMException; public Node appendChild(Node newChild) throws DOMException; public boolean hasChildNodes(); public Node cloneNode(boolean deep); public void normalize(); public boolean isSupported(String feature, String version); public String getNamespaceURI(); public String getPrefix(); public void setPrefix(String prefix) throws DOMException; public String getLocalName(); public boolean hasAttributes(); public String getBaseURI(); // DocumentPosition public static final short DOCUMENT_POSITION_DISCONNECTED = 0x01; public static final short DOCUMENT_POSITION_PRECEDING = 0x02; public static final short DOCUMENT_POSITION_FOLLOWING = 0x04; public static final short DOCUMENT_POSITION_CONTAINS = 0x08; public static final short DOCUMENT_POSITION_CONTAINED_BY = 0x10; public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; public short compareDocumentPosition(Node other) throws DOMException; public String getTextContent() throws DOMException; public void setTextContent(String textContent) throws DOMException; public boolean isSameNode(Node other); public String lookupPrefix(String namespaceURI); public boolean isDefaultNamespace(String namespaceURI); public String lookupNamespaceURI(String prefix); public boolean isEqualNode(Node arg); public Object getFeature(String feature, String version); public Object setUserData(String key, Object data, UserDataHandler handler); public Object getUserData(String key); } ******** oorrgg//ww33cc//ddoomm//NNooddeeLLiisstt..jjaavvaa:: ******** package org.w3c.dom; public interface NodeList { public Node item(int index); public int getLength(); } ******** oorrgg//ww33cc//ddoomm//NNaammeeddNNooddeeMMaapp..jjaavvaa:: ******** package org.w3c.dom; public interface NamedNodeMap { public Node getNamedItem(String name); public Node setNamedItem(Node arg) throws DOMException; public Node removeNamedItem(String name) throws DOMException; public Node item(int index); public int getLength(); public Node getNamedItemNS(String namespaceURI, String localName) throws DOMException; public Node setNamedItemNS(Node arg) throws DOMException; public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException; } ******** oorrgg//ww33cc//ddoomm//CChhaarraacctteerrDDaattaa..jjaavvaa:: ******** package org.w3c.dom; public interface CharacterData extends Node { public String getData() throws DOMException; public void setData(String data) throws DOMException; public int getLength(); public String substringData(int offset, int count) throws DOMException; public void appendData(String arg) throws DOMException; public void insertData(int offset, String arg) throws DOMException; public void deleteData(int offset, int count) throws DOMException; public void replaceData(int offset, int count, String arg) throws DOMException; } ******** oorrgg//ww33cc//ddoomm//AAttttrr..jjaavvaa:: ******** package org.w3c.dom; public interface Attr extends Node { public String getName(); public boolean getSpecified(); public String getValue(); public void setValue(String value) throws DOMException; public Element getOwnerElement(); public TypeInfo getSchemaTypeInfo(); public boolean isId(); } ******** oorrgg//ww33cc//ddoomm//EElleemmeenntt..jjaavvaa:: ******** package org.w3c.dom; public interface Element extends Node { public String getTagName(); public String getAttribute(String name); public void setAttribute(String name, String value) throws DOMException; public void removeAttribute(String name) throws DOMException; public Attr getAttributeNode(String name); public Attr setAttributeNode(Attr newAttr) throws DOMException; public Attr removeAttributeNode(Attr oldAttr) throws DOMException; public NodeList getElementsByTagName(String name); public String getAttributeNS(String namespaceURI, String localName) throws DOMException; public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException; public void removeAttributeNS(String namespaceURI, String localName) throws DOMException; public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException; public Attr setAttributeNodeNS(Attr newAttr) throws DOMException; public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException; public boolean hasAttribute(String name); public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException; public TypeInfo getSchemaTypeInfo(); public void setIdAttribute(String name, boolean isId) throws DOMException; public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException; public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException; } ******** oorrgg//ww33cc//ddoomm//TTeexxtt..jjaavvaa:: ******** package org.w3c.dom; public interface Text extends CharacterData { public Text splitText(int offset) throws DOMException; public boolean isElementContentWhitespace(); public String getWholeText(); public Text replaceWholeText(String content) throws DOMException; } ******** oorrgg//ww33cc//ddoomm//CCoommmmeenntt..jjaavvaa:: ******** package org.w3c.dom; public interface Comment extends CharacterData { } ******** oorrgg//ww33cc//ddoomm//TTyyppeeIInnffoo..jjaavvaa:: ******** package org.w3c.dom; public interface TypeInfo { public String getTypeName(); public String getTypeNamespace(); // DerivationMethods public static final int DERIVATION_RESTRICTION = 0x00000001; public static final int DERIVATION_EXTENSION = 0x00000002; public static final int DERIVATION_UNION = 0x00000004; public static final int DERIVATION_LIST = 0x00000008; public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod); } ******** oorrgg//ww33cc//ddoomm//UUsseerrDDaattaaHHaannddlleerr..jjaavvaa:: ******** package org.w3c.dom; public interface UserDataHandler { // OperationType public static final short NODE_CLONED = 1; public static final short NODE_IMPORTED = 2; public static final short NODE_DELETED = 3; public static final short NODE_RENAMED = 4; public static final short NODE_ADOPTED = 5; public void handle(short operation, String key, Object data, Node src, Node dst); } ******** oorrgg//ww33cc//ddoomm//DDOOMMEErrrroorr..jjaavvaa:: ******** package org.w3c.dom; public interface DOMError { // ErrorSeverity public static final short SEVERITY_WARNING = 1; public static final short SEVERITY_ERROR = 2; public static final short SEVERITY_FATAL_ERROR = 3; public short getSeverity(); public String getMessage(); public String getType(); public Object getRelatedException(); public Object getRelatedData(); public DOMLocator getLocation(); } ******** oorrgg//ww33cc//ddoomm//DDOOMMEErrrroorrHHaannddlleerr..jjaavvaa:: ******** package org.w3c.dom; public interface DOMErrorHandler { public boolean handleError(DOMError error); } ******** oorrgg//ww33cc//ddoomm//DDOOMMLLooccaattoorr..jjaavvaa:: ******** package org.w3c.dom; public interface DOMLocator { public int getLineNumber(); public int getColumnNumber(); public int getByteOffset(); public int getUtf16Offset(); public Node getRelatedNode(); public String getUri(); } ******** oorrgg//ww33cc//ddoomm//DDOOMMCCoonnffiigguurraattiioonn..jjaavvaa:: ******** package org.w3c.dom; public interface DOMConfiguration { public void setParameter(String name, Object value) throws DOMException; public Object getParameter(String name) throws DOMException; public boolean canSetParameter(String name, Object value); public DOMStringList getParameterNames(); } ******** oorrgg//ww33cc//ddoomm//CCDDAATTAASSeeccttiioonn..jjaavvaa:: ******** package org.w3c.dom; public interface CDATASection extends Text { } ******** oorrgg//ww33cc//ddoomm//DDooccuummeennttTTyyppee..jjaavvaa:: ******** package org.w3c.dom; public interface DocumentType extends Node { public String getName(); public NamedNodeMap getEntities(); public NamedNodeMap getNotations(); public String getPublicId(); public String getSystemId(); public String getInternalSubset(); } ******** oorrgg//ww33cc//ddoomm//NNoottaattiioonn..jjaavvaa:: ******** package org.w3c.dom; public interface Notation extends Node { public String getPublicId(); public String getSystemId(); } ******** oorrgg//ww33cc//ddoomm//EEnnttiittyy..jjaavvaa:: ******** package org.w3c.dom; public interface Entity extends Node { public String getPublicId(); public String getSystemId(); public String getNotationName(); public String getInputEncoding(); public String getXmlEncoding(); public String getXmlVersion(); } ******** oorrgg//ww33cc//ddoomm//EEnnttiittyyRReeffeerreennccee..jjaavvaa:: ******** package org.w3c.dom; public interface EntityReference extends Node { } ******** oorrgg//ww33cc//ddoomm//PPrroocceessssiinnggIInnssttrruuccttiioonn..jjaavvaa:: ******** package org.w3c.dom; public interface ProcessingInstruction extends Node { public String getTarget(); public String getData(); public void setData(String data) throws DOMException; } 07 April 2004 ************ AAppppeennddiixx HH:: EECCMMAASSccrriipptt LLaanngguuaaggee BBiinnddiinngg ************ This appendix contains the complete ECMAScript [_E_C_M_A_S_c_r_i_p_t] binding for the Level 3 Document Object Model Core definitions. ********** HH..11 EECCMMAASSccrriipptt BBiinnddiinngg EExxtteennssiioonn ********** This section defines the DOMImplementationRegistry object, discussed in _B_o_o_t_s_t_r_a_p_p_i_n_g, for ECMAScript. Objects that implements the DOMImplementationRegistry interface DOMImplementationRegistry is a global variable which has the following functions: getDOMImplementation(features) This method returns the first registered object that implements the DDOOMMIImmpplleemmeennttaattiioonn interface and has the desired features, or nnuullll if none is found. The ffeeaattuurreess parameter is a SSttrriinngg. See also _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e_._g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_(_). getDOMImplementationList(features) This method returns a _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t list of registered object that implements the DDOOMMIImmpplleemmeennttaattiioonn interface and has the desired features. The ffeeaattuurreess parameter is a SSttrriinngg. See also _D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_S_o_u_r_c_e_._g_e_t_D_O_M_I_m_p_l_e_m_e_n_t_a_t_i_o_n_L_i_s_t_(_). ********** HH..22 OOtthheerr CCoorree iinntteerrffaacceess ********** Properties of the DDOOMMEExxcceeppttiioonn Constructor function: DDOOMMEExxcceeppttiioonn..IINNDDEEXX__SSIIZZEE__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..IINNDDEEXX__SSIIZZEE__EERRRR is 11. DDOOMMEExxcceeppttiioonn..DDOOMMSSTTRRIINNGG__SSIIZZEE__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..DDOOMMSSTTRRIINNGG__SSIIZZEE__EERRRR is 22. DDOOMMEExxcceeppttiioonn..HHIIEERRAARRCCHHYY__RREEQQUUEESSTT__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..HHIIEERRAARRCCHHYY__RREEQQUUEESSTT__EERRRR is 33. DDOOMMEExxcceeppttiioonn..WWRROONNGG__DDOOCCUUMMEENNTT__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..WWRROONNGG__DDOOCCUUMMEENNTT__EERRRR is 44. DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__CCHHAARRAACCTTEERR__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__CCHHAARRAACCTTEERR__EERRRR is 55. DDOOMMEExxcceeppttiioonn..NNOO__DDAATTAA__AALLLLOOWWEEDD__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..NNOO__DDAATTAA__AALLLLOOWWEEDD__EERRRR is 66. DDOOMMEExxcceeppttiioonn..NNOO__MMOODDIIFFIICCAATTIIOONN__AALLLLOOWWEEDD__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..NNOO__MMOODDIIFFIICCAATTIIOONN__AALLLLOOWWEEDD__EERRRR is 77. DDOOMMEExxcceeppttiioonn..NNOOTT__FFOOUUNNDD__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..NNOOTT__FFOOUUNNDD__EERRRR is 88. DDOOMMEExxcceeppttiioonn..NNOOTT__SSUUPPPPOORRTTEEDD__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..NNOOTT__SSUUPPPPOORRTTEEDD__EERRRR is 99. DDOOMMEExxcceeppttiioonn..IINNUUSSEE__AATTTTRRIIBBUUTTEE__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..IINNUUSSEE__AATTTTRRIIBBUUTTEE__EERRRR is 1100. DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__SSTTAATTEE__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__SSTTAATTEE__EERRRR is 1111. DDOOMMEExxcceeppttiioonn..SSYYNNTTAAXX__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..SSYYNNTTAAXX__EERRRR is 1122. DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__MMOODDIIFFIICCAATTIIOONN__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__MMOODDIIFFIICCAATTIIOONN__EERRRR is 1133. DDOOMMEExxcceeppttiioonn..NNAAMMEESSPPAACCEE__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..NNAAMMEESSPPAACCEE__EERRRR is 1144. DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__AACCCCEESSSS__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..IINNVVAALLIIDD__AACCCCEESSSS__EERRRR is 1155. DDOOMMEExxcceeppttiioonn..VVAALLIIDDAATTIIOONN__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..VVAALLIIDDAATTIIOONN__EERRRR is 1166. DDOOMMEExxcceeppttiioonn..TTYYPPEE__MMIISSMMAATTCCHH__EERRRR The value of the constant DDOOMMEExxcceeppttiioonn..TTYYPPEE__MMIISSMMAATTCCHH__EERRRR is 1177. Objects that implement the DDOOMMEExxcceeppttiioonn interface: Properties of objects that implement the DDOOMMEExxcceeppttiioonn interface: ccooddee This property is a NNuummbbeerr. Objects that implement the DDOOMMSSttrriinnggLLiisstt interface: Properties of objects that implement the DDOOMMSSttrriinnggLLiisstt interface: lleennggtthh This read-only property is a NNuummbbeerr. Functions of objects that implement the DDOOMMSSttrriinnggLLiisstt interface: iitteemm((iinnddeexx)) This function returns a SSttrriinngg. The iinnddeexx parameter is a NNuummbbeerr. NNoottee:: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer iinnddeexx is equivalent to invoking the iitteemm function with that index. ccoonnttaaiinnss((ssttrr)) This function returns a BBoooolleeaann. The ssttrr parameter is a SSttrriinngg. Objects that implement the NNaammeeLLiisstt interface: Properties of objects that implement the NNaammeeLLiisstt interface: lleennggtthh This read-only property is a NNuummbbeerr. Functions of objects that implement the NNaammeeLLiisstt interface: ggeettNNaammee((iinnddeexx)) This function returns a SSttrriinngg. The iinnddeexx parameter is a NNuummbbeerr. ggeettNNaammeessppaacceeUURRII((iinnddeexx)) This function returns a SSttrriinngg. The iinnddeexx parameter is a NNuummbbeerr. ccoonnttaaiinnss((ssttrr)) This function returns a BBoooolleeaann. The ssttrr parameter is a SSttrriinngg. ccoonnttaaiinnssNNSS((nnaammeessppaacceeUURRII,, nnaammee)) This function returns a BBoooolleeaann. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The nnaammee parameter is a SSttrriinngg. Objects that implement the DDOOMMIImmpplleemmeennttaattiioonnLLiisstt interface: Properties of objects that implement the DDOOMMIImmpplleemmeennttaattiioonnLLiisstt interface: lleennggtthh This read-only property is a NNuummbbeerr. Functions of objects that implement the DDOOMMIImmpplleemmeennttaattiioonnLLiisstt interface: iitteemm((iinnddeexx)) This function returns an object that implements the DDOOMMIImmpplleemmeennttaattiioonn interface. The iinnddeexx parameter is a NNuummbbeerr. NNoottee:: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer iinnddeexx is equivalent to invoking the iitteemm function with that index. Objects that implement the DDOOMMIImmpplleemmeennttaattiioonnSSoouurrccee interface: Functions of objects that implement the DDOOMMIImmpplleemmeennttaattiioonnSSoouurrccee interface: ggeettDDOOMMIImmpplleemmeennttaattiioonn((ffeeaattuurreess)) This function returns an object that implements the DDOOMMIImmpplleemmeennttaattiioonn interface. The ffeeaattuurreess parameter is a SSttrriinngg. ggeettDDOOMMIImmpplleemmeennttaattiioonnLLiisstt((ffeeaattuurreess)) This function returns an object that implements the DDOOMMIImmpplleemmeennttaattiioonnLLiisstt interface. The ffeeaattuurreess parameter is a SSttrriinngg. Objects that implement the DDOOMMIImmpplleemmeennttaattiioonn interface: Functions of objects that implement the DDOOMMIImmpplleemmeennttaattiioonn interface: hhaassFFeeaattuurree((ffeeaattuurree,, vveerrssiioonn)) This function returns a BBoooolleeaann. The ffeeaattuurree parameter is a SSttrriinngg. The vveerrssiioonn parameter is a SSttrriinngg. ccrreeaatteeDDooccuummeennttTTyyppee((qquuaalliiffiieeddNNaammee,, ppuubblliiccIIdd,, ssyysstteemmIIdd)) This function returns an object that implements the DDooccuummeennttTTyyppee interface. The qquuaalliiffiieeddNNaammee parameter is a SSttrriinngg. The ppuubblliiccIIdd parameter is a SSttrriinngg. The ssyysstteemmIIdd parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteeDDooccuummeenntt((nnaammeessppaacceeUURRII,, qquuaalliiffiieeddNNaammee,, ddooccttyyppee)) This function returns an object that implements the DDooccuummeenntt interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The qquuaalliiffiieeddNNaammee parameter is a SSttrriinngg. The ddooccttyyppee parameter is an object that implements the DDooccuummeennttTTyyppee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettFFeeaattuurree((ffeeaattuurree,, vveerrssiioonn)) This function returns an object that implements the OObbjjeecctt interface. The ffeeaattuurree parameter is a SSttrriinngg. The vveerrssiioonn parameter is a SSttrriinngg. Objects that implement the DDooccuummeennttFFrraaggmmeenntt interface: Objects that implement the DDooccuummeennttFFrraaggmmeenntt interface have all properties and functions of the NNooddee interface. Objects that implement the DDooccuummeenntt interface: Objects that implement the DDooccuummeenntt interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the DDooccuummeenntt interface: ddooccttyyppee This read-only property is an object that implements the DDooccuummeennttTTyyppee interface. iimmpplleemmeennttaattiioonn This read-only property is an object that implements the DDOOMMIImmpplleemmeennttaattiioonn interface. ddooccuummeennttEElleemmeenntt This read-only property is an object that implements the EElleemmeenntt interface. iinnppuuttEEnnccooddiinngg This read-only property is a SSttrriinngg. xxmmllEEnnccooddiinngg This read-only property is a SSttrriinngg. xxmmllSSttaannddaalloonnee This property is a BBoooolleeaann and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting. xxmmllVVeerrssiioonn This property is a SSttrriinngg and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting. ssttrriiccttEErrrroorrCChheecckkiinngg This property is a BBoooolleeaann. ddooccuummeennttUURRII This property is a SSttrriinngg. ddoommCCoonnffiigg This read-only property is an object that implements the DDOOMMCCoonnffiigguurraattiioonn interface. Functions of objects that implement the DDooccuummeenntt interface: ccrreeaatteeEElleemmeenntt((ttaaggNNaammee)) This function returns an object that implements the EElleemmeenntt interface. The ttaaggNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteeDDooccuummeennttFFrraaggmmeenntt(()) This function returns an object that implements the DDooccuummeennttFFrraaggmmeenntt interface. ccrreeaatteeTTeexxttNNooddee((ddaattaa)) This function returns an object that implements the TTeexxtt interface. The ddaattaa parameter is a SSttrriinngg. ccrreeaatteeCCoommmmeenntt((ddaattaa)) This function returns an object that implements the CCoommmmeenntt interface. The ddaattaa parameter is a SSttrriinngg. ccrreeaatteeCCDDAATTAASSeeccttiioonn((ddaattaa)) This function returns an object that implements the CCDDAATTAASSeeccttiioonn interface. The ddaattaa parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteePPrroocceessssiinnggIInnssttrruuccttiioonn((ttaarrggeett,, ddaattaa)) This function returns an object that implements the PPrroocceessssiinnggIInnssttrruuccttiioonn interface. The ttaarrggeett parameter is a SSttrriinngg. The ddaattaa parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteeAAttttrriibbuuttee((nnaammee)) This function returns an object that implements the AAttttrr interface. The nnaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteeEEnnttiittyyRReeffeerreennccee((nnaammee)) This function returns an object that implements the EEnnttiittyyRReeffeerreennccee interface. The nnaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettEElleemmeennttssBByyTTaaggNNaammee((ttaaggnnaammee)) This function returns an object that implements the NNooddeeLLiisstt interface. The ttaaggnnaammee parameter is a SSttrriinngg. iimmppoorrttNNooddee((iimmppoorrtteeddNNooddee,, ddeeeepp)) This function returns an object that implements the NNooddee interface. The iimmppoorrtteeddNNooddee parameter is an object that implements the NNooddee interface. The ddeeeepp parameter is a BBoooolleeaann. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteeEElleemmeennttNNSS((nnaammeessppaacceeUURRII,, qquuaalliiffiieeddNNaammee)) This function returns an object that implements the EElleemmeenntt interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The qquuaalliiffiieeddNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccrreeaatteeAAttttrriibbuutteeNNSS((nnaammeessppaacceeUURRII,, qquuaalliiffiieeddNNaammee)) This function returns an object that implements the AAttttrr interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The qquuaalliiffiieeddNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettEElleemmeennttssBByyTTaaggNNaammeeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns an object that implements the NNooddeeLLiisstt interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. ggeettEElleemmeennttBByyIIdd((eelleemmeennttIIdd)) This function returns an object that implements the EElleemmeenntt interface. The eelleemmeennttIIdd parameter is a SSttrriinngg. aaddooppttNNooddee((ssoouurrccee)) This function returns an object that implements the NNooddee interface. The ssoouurrccee parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. nnoorrmmaalliizzeeDDooccuummeenntt(()) This function has no return value. rreennaammeeNNooddee((nn,, nnaammeessppaacceeUURRII,, qquuaalliiffiieeddNNaammee)) This function returns an object that implements the NNooddee interface. The nn parameter is an object that implements the NNooddee interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The qquuaalliiffiieeddNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. Properties of the NNooddee Constructor function: NNooddee..EELLEEMMEENNTT__NNOODDEE The value of the constant NNooddee..EELLEEMMEENNTT__NNOODDEE is 11. NNooddee..AATTTTRRIIBBUUTTEE__NNOODDEE The value of the constant NNooddee..AATTTTRRIIBBUUTTEE__NNOODDEE is 22. NNooddee..TTEEXXTT__NNOODDEE The value of the constant NNooddee..TTEEXXTT__NNOODDEE is 33. NNooddee..CCDDAATTAA__SSEECCTTIIOONN__NNOODDEE The value of the constant NNooddee..CCDDAATTAA__SSEECCTTIIOONN__NNOODDEE is 44. NNooddee..EENNTTIITTYY__RREEFFEERREENNCCEE__NNOODDEE The value of the constant NNooddee..EENNTTIITTYY__RREEFFEERREENNCCEE__NNOODDEE is 55. NNooddee..EENNTTIITTYY__NNOODDEE The value of the constant NNooddee..EENNTTIITTYY__NNOODDEE is 66. NNooddee..PPRROOCCEESSSSIINNGG__IINNSSTTRRUUCCTTIIOONN__NNOODDEE The value of the constant NNooddee..PPRROOCCEESSSSIINNGG__IINNSSTTRRUUCCTTIIOONN__NNOODDEE is 77. NNooddee..CCOOMMMMEENNTT__NNOODDEE The value of the constant NNooddee..CCOOMMMMEENNTT__NNOODDEE is 88. NNooddee..DDOOCCUUMMEENNTT__NNOODDEE The value of the constant NNooddee..DDOOCCUUMMEENNTT__NNOODDEE is 99. NNooddee..DDOOCCUUMMEENNTT__TTYYPPEE__NNOODDEE The value of the constant NNooddee..DDOOCCUUMMEENNTT__TTYYPPEE__NNOODDEE is 1100. NNooddee..DDOOCCUUMMEENNTT__FFRRAAGGMMEENNTT__NNOODDEE The value of the constant NNooddee..DDOOCCUUMMEENNTT__FFRRAAGGMMEENNTT__NNOODDEE is 1111. NNooddee..NNOOTTAATTIIOONN__NNOODDEE The value of the constant NNooddee..NNOOTTAATTIIOONN__NNOODDEE is 1122. NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__DDIISSCCOONNNNEECCTTEEDD The value of the constant NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__DDIISSCCOONNNNEECCTTEEDD is 00xx0011. NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__PPRREECCEEDDIINNGG The value of the constant NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__PPRREECCEEDDIINNGG is 00xx0022. NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__FFOOLLLLOOWWIINNGG The value of the constant NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__FFOOLLLLOOWWIINNGG is 00xx0044. NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__CCOONNTTAAIINNSS The value of the constant NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__CCOONNTTAAIINNSS is 00xx0088. NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__CCOONNTTAAIINNEEDD__BBYY The value of the constant NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__CCOONNTTAAIINNEEDD__BBYY is 00xx1100. NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__IIMMPPLLEEMMEENNTTAATTIIOONN__SSPPEECCIIFFIICC The value of the constant NNooddee..DDOOCCUUMMEENNTT__PPOOSSIITTIIOONN__IIMMPPLLEEMMEENNTTAATTIIOONN__SSPPEECCIIFFIICC is 00xx2200. Objects that implement the NNooddee interface: Properties of objects that implement the NNooddee interface: nnooddeeNNaammee This read-only property is a SSttrriinngg. nnooddeeVVaalluuee This property is a SSttrriinngg, can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on retrieval. nnooddeeTTyyppee This read-only property is a NNuummbbeerr. ppaarreennttNNooddee This read-only property is an object that implements the NNooddee interface. cchhiillddNNooddeess This read-only property is an object that implements the NNooddeeLLiisstt interface. ffiirrssttCChhiilldd This read-only property is an object that implements the NNooddee interface. llaassttCChhiilldd This read-only property is an object that implements the NNooddee interface. pprreevviioouussSSiibblliinngg This read-only property is an object that implements the NNooddee interface. nneexxttSSiibblliinngg This read-only property is an object that implements the NNooddee interface. aattttrriibbuutteess This read-only property is an object that implements the NNaammeeddNNooddeeMMaapp interface. oowwnneerrDDooccuummeenntt This read-only property is an object that implements the DDooccuummeenntt interface. nnaammeessppaacceeUURRII This read-only property is a SSttrriinngg. pprreeffiixx This property is a SSttrriinngg and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting. llooccaallNNaammee This read-only property is a SSttrriinngg. bbaasseeUURRII This read-only property is a SSttrriinngg. tteexxttCCoonntteenntt This property is a SSttrriinngg, can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on retrieval. Functions of objects that implement the NNooddee interface: iinnsseerrttBBeeffoorree((nneewwCChhiilldd,, rreeffCChhiilldd)) This function returns an object that implements the NNooddee interface. The nneewwCChhiilldd parameter is an object that implements the NNooddee interface. The rreeffCChhiilldd parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreeppllaacceeCChhiilldd((nneewwCChhiilldd,, oollddCChhiilldd)) This function returns an object that implements the NNooddee interface. The nneewwCChhiilldd parameter is an object that implements the NNooddee interface. The oollddCChhiilldd parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreemmoovveeCChhiilldd((oollddCChhiilldd)) This function returns an object that implements the NNooddee interface. The oollddCChhiilldd parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. aappppeennddCChhiilldd((nneewwCChhiilldd)) This function returns an object that implements the NNooddee interface. The nneewwCChhiilldd parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. hhaassCChhiillddNNooddeess(()) This function returns a BBoooolleeaann. cclloonneeNNooddee((ddeeeepp)) This function returns an object that implements the NNooddee interface. The ddeeeepp parameter is a BBoooolleeaann. nnoorrmmaalliizzee(()) This function has no return value. iissSSuuppppoorrtteedd((ffeeaattuurree,, vveerrssiioonn)) This function returns a BBoooolleeaann. The ffeeaattuurree parameter is a SSttrriinngg. The vveerrssiioonn parameter is a SSttrriinngg. hhaassAAttttrriibbuutteess(()) This function returns a BBoooolleeaann. ccoommppaarreeDDooccuummeennttPPoossiittiioonn((ootthheerr)) This function returns a NNuummbbeerr. The ootthheerr parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. iissSSaammeeNNooddee((ootthheerr)) This function returns a BBoooolleeaann. The ootthheerr parameter is an object that implements the NNooddee interface. llooookkuuppPPrreeffiixx((nnaammeessppaacceeUURRII)) This function returns a SSttrriinngg. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. iissDDeeffaauullttNNaammeessppaaccee((nnaammeessppaacceeUURRII)) This function returns a BBoooolleeaann. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. llooookkuuppNNaammeessppaacceeUURRII((pprreeffiixx)) This function returns a SSttrriinngg. The pprreeffiixx parameter is a SSttrriinngg. iissEEqquuaallNNooddee((aarrgg)) This function returns a BBoooolleeaann. The aarrgg parameter is an object that implements the NNooddee interface. ggeettFFeeaattuurree((ffeeaattuurree,, vveerrssiioonn)) This function returns an object that implements the OObbjjeecctt interface. The ffeeaattuurree parameter is a SSttrriinngg. The vveerrssiioonn parameter is a SSttrriinngg. sseettUUsseerrDDaattaa((kkeeyy,, ddaattaa,, hhaannddlleerr)) This function returns an object that implements the aannyy ttyyppee interface. The kkeeyy parameter is a SSttrriinngg. The ddaattaa parameter is an object that implements the aannyy ttyyppee interface. The hhaannddlleerr parameter is an object that implements the UUsseerrDDaattaaHHaannddlleerr interface. ggeettUUsseerrDDaattaa((kkeeyy)) This function returns an object that implements the aannyy ttyyppee interface. The kkeeyy parameter is a SSttrriinngg. Objects that implement the NNooddeeLLiisstt interface: Properties of objects that implement the NNooddeeLLiisstt interface: lleennggtthh This read-only property is a NNuummbbeerr. Functions of objects that implement the NNooddeeLLiisstt interface: iitteemm((iinnddeexx)) This function returns an object that implements the NNooddee interface. The iinnddeexx parameter is a NNuummbbeerr. NNoottee:: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer iinnddeexx is equivalent to invoking the iitteemm function with that index. Objects that implement the NNaammeeddNNooddeeMMaapp interface: Properties of objects that implement the NNaammeeddNNooddeeMMaapp interface: lleennggtthh This read-only property is a NNuummbbeerr. Functions of objects that implement the NNaammeeddNNooddeeMMaapp interface: ggeettNNaammeeddIItteemm((nnaammee)) This function returns an object that implements the NNooddee interface. The nnaammee parameter is a SSttrriinngg. sseettNNaammeeddIItteemm((aarrgg)) This function returns an object that implements the NNooddee interface. The aarrgg parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreemmoovveeNNaammeeddIItteemm((nnaammee)) This function returns an object that implements the NNooddee interface. The nnaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. iitteemm((iinnddeexx)) This function returns an object that implements the NNooddee interface. The iinnddeexx parameter is a NNuummbbeerr. NNoottee:: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer iinnddeexx is equivalent to invoking the iitteemm function with that index. ggeettNNaammeeddIItteemmNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns an object that implements the NNooddee interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. sseettNNaammeeddIItteemmNNSS((aarrgg)) This function returns an object that implements the NNooddee interface. The aarrgg parameter is an object that implements the NNooddee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreemmoovveeNNaammeeddIItteemmNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns an object that implements the NNooddee interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. Objects that implement the CChhaarraacctteerrDDaattaa interface: Objects that implement the CChhaarraacctteerrDDaattaa interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the CChhaarraacctteerrDDaattaa interface: ddaattaa This property is a SSttrriinngg, can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on retrieval. lleennggtthh This read-only property is a NNuummbbeerr. Functions of objects that implement the CChhaarraacctteerrDDaattaa interface: ssuubbssttrriinnggDDaattaa((ooffffsseett,, ccoouunntt)) This function returns a SSttrriinngg. The ooffffsseett parameter is a NNuummbbeerr. The ccoouunntt parameter is a NNuummbbeerr. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. aappppeennddDDaattaa((aarrgg)) This function has no return value. The aarrgg parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. iinnsseerrttDDaattaa((ooffffsseett,, aarrgg)) This function has no return value. The ooffffsseett parameter is a NNuummbbeerr. The aarrgg parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ddeelleetteeDDaattaa((ooffffsseett,, ccoouunntt)) This function has no return value. The ooffffsseett parameter is a NNuummbbeerr. The ccoouunntt parameter is a NNuummbbeerr. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreeppllaacceeDDaattaa((ooffffsseett,, ccoouunntt,, aarrgg)) This function has no return value. The ooffffsseett parameter is a NNuummbbeerr. The ccoouunntt parameter is a NNuummbbeerr. The aarrgg parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. Objects that implement the AAttttrr interface: Objects that implement the AAttttrr interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the AAttttrr interface: nnaammee This read-only property is a SSttrriinngg. ssppeecciiffiieedd This read-only property is a BBoooolleeaann. vvaalluuee This property is a SSttrriinngg and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting. oowwnneerrEElleemmeenntt This read-only property is an object that implements the EElleemmeenntt interface. sscchheemmaaTTyyppeeIInnffoo This read-only property is an object that implements the TTyyppeeIInnffoo interface. iissIIdd This read-only property is a BBoooolleeaann. Objects that implement the EElleemmeenntt interface: Objects that implement the EElleemmeenntt interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the EElleemmeenntt interface: ttaaggNNaammee This read-only property is a SSttrriinngg. sscchheemmaaTTyyppeeIInnffoo This read-only property is an object that implements the TTyyppeeIInnffoo interface. Functions of objects that implement the EElleemmeenntt interface: ggeettAAttttrriibbuuttee((nnaammee)) This function returns a SSttrriinngg. The nnaammee parameter is a SSttrriinngg. sseettAAttttrriibbuuttee((nnaammee,, vvaalluuee)) This function has no return value. The nnaammee parameter is a SSttrriinngg. The vvaalluuee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreemmoovveeAAttttrriibbuuttee((nnaammee)) This function has no return value. The nnaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettAAttttrriibbuutteeNNooddee((nnaammee)) This function returns an object that implements the AAttttrr interface. The nnaammee parameter is a SSttrriinngg. sseettAAttttrriibbuutteeNNooddee((nneewwAAttttrr)) This function returns an object that implements the AAttttrr interface. The nneewwAAttttrr parameter is an object that implements the AAttttrr interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreemmoovveeAAttttrriibbuutteeNNooddee((oollddAAttttrr)) This function returns an object that implements the AAttttrr interface. The oollddAAttttrr parameter is an object that implements the AAttttrr interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettEElleemmeennttssBByyTTaaggNNaammee((nnaammee)) This function returns an object that implements the NNooddeeLLiisstt interface. The nnaammee parameter is a SSttrriinngg. ggeettAAttttrriibbuutteeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns a SSttrriinngg. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. sseettAAttttrriibbuutteeNNSS((nnaammeessppaacceeUURRII,, qquuaalliiffiieeddNNaammee,, vvaalluuee)) This function has no return value. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The qquuaalliiffiieeddNNaammee parameter is a SSttrriinngg. The vvaalluuee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreemmoovveeAAttttrriibbuutteeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function has no return value. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettAAttttrriibbuutteeNNooddeeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns an object that implements the AAttttrr interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. sseettAAttttrriibbuutteeNNooddeeNNSS((nneewwAAttttrr)) This function returns an object that implements the AAttttrr interface. The nneewwAAttttrr parameter is an object that implements the AAttttrr interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettEElleemmeennttssBByyTTaaggNNaammeeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns an object that implements the NNooddeeLLiisstt interface. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. hhaassAAttttrriibbuuttee((nnaammee)) This function returns a BBoooolleeaann. The nnaammee parameter is a SSttrriinngg. hhaassAAttttrriibbuutteeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee)) This function returns a BBoooolleeaann. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. sseettIIddAAttttrriibbuuttee((nnaammee,, iissIIdd)) This function has no return value. The nnaammee parameter is a SSttrriinngg. The iissIIdd parameter is a BBoooolleeaann. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. sseettIIddAAttttrriibbuutteeNNSS((nnaammeessppaacceeUURRII,, llooccaallNNaammee,, iissIIdd)) This function has no return value. The nnaammeessppaacceeUURRII parameter is a SSttrriinngg. The llooccaallNNaammee parameter is a SSttrriinngg. The iissIIdd parameter is a BBoooolleeaann. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. sseettIIddAAttttrriibbuutteeNNooddee((iiddAAttttrr,, iissIIdd)) This function has no return value. The iiddAAttttrr parameter is an object that implements the AAttttrr interface. The iissIIdd parameter is a BBoooolleeaann. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. Objects that implement the TTeexxtt interface: Objects that implement the TTeexxtt interface have all properties and functions of the CChhaarraacctteerrDDaattaa interface as well as the properties and functions defined below. Properties of objects that implement the TTeexxtt interface: iissEElleemmeennttCCoonntteennttWWhhiitteessppaaccee This read-only property is a BBoooolleeaann. wwhhoolleeTTeexxtt This read-only property is a SSttrriinngg. Functions of objects that implement the TTeexxtt interface: sspplliittTTeexxtt((ooffffsseett)) This function returns an object that implements the TTeexxtt interface. The ooffffsseett parameter is a NNuummbbeerr. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. rreeppllaacceeWWhhoolleeTTeexxtt((ccoonntteenntt)) This function returns an object that implements the TTeexxtt interface. The ccoonntteenntt parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. Objects that implement the CCoommmmeenntt interface: Objects that implement the CCoommmmeenntt interface have all properties and functions of the CChhaarraacctteerrDDaattaa interface. Properties of the TTyyppeeIInnffoo Constructor function: TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__RREESSTTRRIICCTTIIOONN The value of the constant TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__RREESSTTRRIICCTTIIOONN is 00xx0000000000000011. TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__EEXXTTEENNSSIIOONN The value of the constant TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__EEXXTTEENNSSIIOONN is 00xx0000000000000022. TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__UUNNIIOONN The value of the constant TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__UUNNIIOONN is 00xx0000000000000044. TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__LLIISSTT The value of the constant TTyyppeeIInnffoo..DDEERRIIVVAATTIIOONN__LLIISSTT is 00xx0000000000000088. Objects that implement the TTyyppeeIInnffoo interface: Properties of objects that implement the TTyyppeeIInnffoo interface: ttyyppeeNNaammee This read-only property is a SSttrriinngg. ttyyppeeNNaammeessppaaccee This read-only property is a SSttrriinngg. Functions of objects that implement the TTyyppeeIInnffoo interface: iissDDeerriivveeddFFrroomm((ttyyppeeNNaammeessppaacceeAArrgg,, ttyyppeeNNaammeeAArrgg,, ddeerriivvaattiioonnMMeetthhoodd)) This function returns a BBoooolleeaann. The ttyyppeeNNaammeessppaacceeAArrgg parameter is a SSttrriinngg. The ttyyppeeNNaammeeAArrgg parameter is a SSttrriinngg. The ddeerriivvaattiioonnMMeetthhoodd parameter is a NNuummbbeerr. Properties of the UUsseerrDDaattaaHHaannddlleerr Constructor function: UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__CCLLOONNEEDD The value of the constant UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__CCLLOONNEEDD is 11. UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__IIMMPPOORRTTEEDD The value of the constant UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__IIMMPPOORRTTEEDD is 22. UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__DDEELLEETTEEDD The value of the constant UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__DDEELLEETTEEDD is 33. UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__RREENNAAMMEEDD The value of the constant UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__RREENNAAMMEEDD is 44. UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__AADDOOPPTTEEDD The value of the constant UUsseerrDDaattaaHHaannddlleerr..NNOODDEE__AADDOOPPTTEEDD is 55. UUsseerrDDaattaaHHaannddlleerr function: This function has no return value. The first parameter is a NNuummbbeerr. The second parameter is a SSttrriinngg. The third parameter is an object that implements the aannyy ttyyppee interface. The fourth parameter is an object that implements the NNooddee interface. The fifth parameter is an object that implements the NNooddee interface. Properties of the DDOOMMEErrrroorr Constructor function: DDOOMMEErrrroorr..SSEEVVEERRIITTYY__WWAARRNNIINNGG The value of the constant DDOOMMEErrrroorr..SSEEVVEERRIITTYY__WWAARRNNIINNGG is 11. DDOOMMEErrrroorr..SSEEVVEERRIITTYY__EERRRROORR The value of the constant DDOOMMEErrrroorr..SSEEVVEERRIITTYY__EERRRROORR is 22. DDOOMMEErrrroorr..SSEEVVEERRIITTYY__FFAATTAALL__EERRRROORR The value of the constant DDOOMMEErrrroorr..SSEEVVEERRIITTYY__FFAATTAALL__EERRRROORR is 33. Objects that implement the DDOOMMEErrrroorr interface: Properties of objects that implement the DDOOMMEErrrroorr interface: sseevveerriittyy This read-only property is a NNuummbbeerr. mmeessssaaggee This read-only property is a SSttrriinngg. ttyyppee This read-only property is a SSttrriinngg. rreellaatteeddEExxcceeppttiioonn This read-only property is an object that implements the OObbjjeecctt interface. rreellaatteeddDDaattaa This read-only property is an object that implements the OObbjjeecctt interface. llooccaattiioonn This read-only property is an object that implements the DDOOMMLLooccaattoorr interface. DDOOMMEErrrroorrHHaannddlleerr function: This function returns a BBoooolleeaann. The parameter is an object that implements the DDOOMMEErrrroorr interface. Objects that implement the DDOOMMLLooccaattoorr interface: Properties of objects that implement the DDOOMMLLooccaattoorr interface: lliinneeNNuummbbeerr This read-only property is a NNuummbbeerr. ccoolluummnnNNuummbbeerr This read-only property is a NNuummbbeerr. bbyytteeOOffffsseett This read-only property is a NNuummbbeerr. uuttff1166OOffffsseett This read-only property is a NNuummbbeerr. rreellaatteeddNNooddee This read-only property is an object that implements the NNooddee interface. uurrii This read-only property is a SSttrriinngg. Objects that implement the DDOOMMCCoonnffiigguurraattiioonn interface: Properties of objects that implement the DDOOMMCCoonnffiigguurraattiioonn interface: ppaarraammeetteerrNNaammeess This read-only property is an object that implements the DDOOMMSSttrriinnggLLiisstt interface. Functions of objects that implement the DDOOMMCCoonnffiigguurraattiioonn interface: sseettPPaarraammeetteerr((nnaammee,, vvaalluuee)) This function has no return value. The nnaammee parameter is a SSttrriinngg. The vvaalluuee parameter is an object that implements the aannyy ttyyppee interface. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ggeettPPaarraammeetteerr((nnaammee)) This function returns an object that implements the aannyy ttyyppee interface. The nnaammee parameter is a SSttrriinngg. This function can raise an object that implements the DDOOMMEExxcceeppttiioonn interface. ccaannSSeettPPaarraammeetteerr((nnaammee,, vvaalluuee)) This function returns a BBoooolleeaann. The nnaammee parameter is a SSttrriinngg. The vvaalluuee parameter is an object that implements the aannyy ttyyppee interface. Objects that implement the CCDDAATTAASSeeccttiioonn interface: Objects that implement the CCDDAATTAASSeeccttiioonn interface have all properties and functions of the TTeexxtt interface. Objects that implement the DDooccuummeennttTTyyppee interface: Objects that implement the DDooccuummeennttTTyyppee interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the DDooccuummeennttTTyyppee interface: nnaammee This read-only property is a SSttrriinngg. eennttiittiieess This read-only property is an object that implements the NNaammeeddNNooddeeMMaapp interface. nnoottaattiioonnss This read-only property is an object that implements the NNaammeeddNNooddeeMMaapp interface. ppuubblliiccIIdd This read-only property is a SSttrriinngg. ssyysstteemmIIdd This read-only property is a SSttrriinngg. iinntteerrnnaallSSuubbsseett This read-only property is a SSttrriinngg. Objects that implement the NNoottaattiioonn interface: Objects that implement the NNoottaattiioonn interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the NNoottaattiioonn interface: ppuubblliiccIIdd This read-only property is a SSttrriinngg. ssyysstteemmIIdd This read-only property is a SSttrriinngg. Objects that implement the EEnnttiittyy interface: Objects that implement the EEnnttiittyy interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the EEnnttiittyy interface: ppuubblliiccIIdd This read-only property is a SSttrriinngg. ssyysstteemmIIdd This read-only property is a SSttrriinngg. nnoottaattiioonnNNaammee This read-only property is a SSttrriinngg. iinnppuuttEEnnccooddiinngg This read-only property is a SSttrriinngg. xxmmllEEnnccooddiinngg This read-only property is a SSttrriinngg. xxmmllVVeerrssiioonn This read-only property is a SSttrriinngg. Objects that implement the EEnnttiittyyRReeffeerreennccee interface: Objects that implement the EEnnttiittyyRReeffeerreennccee interface have all properties and functions of the NNooddee interface. Objects that implement the PPrroocceessssiinnggIInnssttrruuccttiioonn interface: Objects that implement the PPrroocceessssiinnggIInnssttrruuccttiioonn interface have all properties and functions of the NNooddee interface as well as the properties and functions defined below. Properties of objects that implement the PPrroocceessssiinnggIInnssttrruuccttiioonn interface: ttaarrggeett This read-only property is a SSttrriinngg. ddaattaa This property is a SSttrriinngg and can raise an object that implements the DDOOMMEExxcceeppttiioonn interface on setting. NNoottee:: In addition of having _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n parameters exposed to the application using the setParameter and getParameter, those parameters are also exposed as ECMAScript properties on the _D_O_M_C_o_n_f_i_g_u_r_a_t_i_o_n object. The name of the parameter is converted into a property name using a camel-case convention: the character '-' (HYPHEN-MINUS) is removed and the following character is being replaced by its uppercase equivalent. 07 April 2004 ************ AAppppeennddiixx II:: AAcckknnoowwlleeddggeemmeennttss ************ Many people contributed to the DOM specifications (Level 1, 2 or 3), including participants of the DOM Working Group and the DOM Interest Group. We especially thank the following: 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 and invited expert), 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., ffoorrmmeerr CChhaaiirr), 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, WW33CC TTeeaamm CCoonnttaacctt aanndd ffoorrmmeerr CChhaaiirr), Ramesh Lekshmynarayanan (Merrill Lynch), Ray Whitmer (iMall, Excite@Home, and Netscape/AOL, CChhaaiirr), 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). Thanks to all those who have helped to improve this specification by sending suggestions and corrections (Please, keep bugging us with your issues!). Many thanks to Andrew Clover, Petteri Stenius, Curt Arnold, Glenn A. Adams, Christopher Aillon, Scott Nichol, François Yergeau, Anjana Manian, Susan Lesch, and Jeffery B. Rancier for their review and comments of this document. Special thanks to the _D_O_M_ _C_o_n_f_o_r_m_a_n_c_e_ _T_e_s_t_ _S_u_i_t_e_s contributors: Fred Drake, Mary Brady (NIST), Rick Rivello (NIST), Robert Clary (Netscape), with a special mention to Curt Arnold. ********** II..11 PPrroodduuccttiioonn SSyysstteemmss ********** This specification was written in XML. The HTML, OMG IDL, Java and ECMAScript bindings were all produced automatically. Thanks to Joe English, author of _c_o_s_t, 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. After DOM Level 1, we used _X_e_r_c_e_s as the basis DOM implementation and wish to thank the authors. Philippe Le Hégaret and Arnaud Le Hors wrote the _J_a_v_a _p_r_o_g_r_a_m_s which are the DOM application. Thanks also to Jan Kärrman, author of _h_t_m_l_2_p_s, which we use in creating the PostScript version of the specification. 07 April 2004 ************ GGlloossssaarryy ************ Editors: Arnaud Le Hors, W3C Robert S. Sutor, IBM Research (for DOM Level 1) Some 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. 1166--bbiitt uunniitt The base unit of a _D_O_M_S_t_r_i_n_g. This indicates that indexing on a _D_O_M_S_t_r_i_n_g occurs in units of 16 bits. This must not be misunderstood to mean that a _D_O_M_S_t_r_i_n_g can store arbitrary 16-bit units. A _D_O_M_S_t_r_i_n_g 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. aanncceessttoorr An ancestor node of any node A is any node above A in a tree model, where "above" means "toward the root." AAPPII An API is an Application Programming Interface, a set of functions or methods used to access some functionality. aannoonnyymmoouuss ttyyppee nnaammee An anonymous type name is an implementation-defined, globally unique qualified name provided by the processor for every anonymous type declared in a _s_c_h_e_m_a. cchhiilldd A child is an immediate descendant node of a node. cclliieenntt aapppplliiccaattiioonn 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. CCOOMM COM is Microsoft's Component Object Model [_C_O_M], a technology for building applications from binary software components. ccoonnvveenniieennccee A convenience method 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 convenience property. ddaattaa mmooddeell A data model is a collection of descriptions of data structures and their contained fields, together with the operations or functions that manipulate them. ddeesscceennddaanntt A descendant node of any node A is any node below A in a tree model, where "below" means "away from the root." ddooccuummeenntt eelleemmeenntt There is only one document element in a _D_o_c_u_m_e_n_t. This element node is a child of the _D_o_c_u_m_e_n_t node. See _WW_ee_ll_ll_--_FF_oo_rr_mm_ee_dd_ _XX_MM_LL_ _DD_oo_cc_uu_mm_ee_nn_tt_ss in XML [_X_M_L _1_._0]. ddooccuummeenntt oorrddeerr There is an ordering, document order, 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 _d_o_c_u_m_e_n_t_ _e_l_e_m_e_n_t 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. EECCMMAASSccrriipptt The programming language defined by the ECMA-262 standard [_E_C_M_A_S_c_r_i_p_t]. As stated in the standard, the originating technology for ECMAScript was JavaScript [_J_a_v_a_S_c_r_i_p_t]. Note that in the ECMAScript binding, the word "property" is used in the same sense as the IDL term "attribute." eelleemmeenntt 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 _LL_oo_gg_ii_cc_aa_ll_ _SS_tt_rr_uu_cc_tt_uu_rr_ee_ss in XML [_X_M_L_ _1_._0]. iinnffoorrmmaattiioonn iitteemm An information item is an abstract representation of some component of an XML document. See the [_X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t] for details. llooggiiccaallllyy--aaddjjaacceenntt tteexxtt nnooddeess Logically-adjacent text nodes are _T_e_x_t or _C_D_A_T_A_S_e_c_t_i_o_n nodes that can be visited sequentially in _d_o_c_u_m_e_n_t_ _o_r_d_e_r or in reversed document order without entering, exiting, or passing over _E_l_e_m_e_n_t, _C_o_m_m_e_n_t, or _P_r_o_c_e_s_s_i_n_g_I_n_s_t_r_u_c_t_i_o_n nodes. hhoossttiinngg iimmpplleemmeennttaattiioonn 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. HHTTMMLL The HyperText Markup Language (HTML) 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. [_H_T_M_L_ _4_._0_1] iinnhheerriittaannccee 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 derived from B. B is said to be a base class (or interface) for D. Some programming languages allow for multiple inheritance, that is, inheritance from more than one class or interface. iinntteerrffaaccee An interface 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. llaanngguuaaggee bbiinnddiinngg A programming language binding 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. llooccaall nnaammee A local name is the local part of a qualified name. This is called the local part in Namespaces in XML [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. mmeetthhoodd A method is an operation or function that is associated with an object and is allowed to manipulate the object's data. mmooddeell A model 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. nnaammeessppaaccee pprreeffiixx A namespace prefix is a string that associates an element or attribute name with a namespace URI in XML. See namespace prefix in Namespaces in XML [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. nnaammeessppaaccee UURRII A namespace URI is a URI that identifies an XML namespace. This is called the namespace name in Namespaces in XML [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. See also sections 1.3.2 "_DD_OO_MM_ _UU_RR_II_ss" and 1.3.3 "_XX_MM_LL_ _NN_aa_mm_ee_ss_pp_aa_cc_ee_ss" regarding URIs and namespace URIs handling and comparison in the DOM APIs. nnaammeessppaaccee wweellll--ffoorrmmeedd A node is a namespace well-formed XML node if it is a _w_e_l_l_-_f_o_r_m_e_d node, and follows the productions and namespace constraints. If [_X_M_L_ _1_._0] is used, the constraints are defined in [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. If [_X_M_L_ _1_._1] is used, the constraints are defined in [_X_M_L_ _N_a_m_e_s_p_a_c_e_s_ _1_._1]. oobbjjeecctt mmooddeell An object model is a collection of descriptions of classes or interfaces, together with their member data, member functions, and class-static operations. ppaarreenntt A parent is an immediate ancestor node of a node. ppaarrttiiaallllyy vvaalliidd A node in a DOM tree is partially valid if it is _w_e_l_l_ _f_o_r_m_e_d (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 partially valid. qquuaalliiffiieedd nnaammee A qualified name is the name of an element or attribute defined as the concatenation of a local name (as defined in this specification), optionally preceded by a namespace prefix and colon character. See _QQ_uu_aa_ll_ii_ff_ii_ee_dd_ _NN_aa_mm_ee_ss in Namespaces in XML [_X_M_L_ _N_a_m_e_s_p_a_c_e_s]. rreeaadd oonnllyy nnooddee A read only node 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. rroooott nnooddee The root node is a node that is not a child of any other node. All other nodes are children or other descendants of the root node. sscchheemmaa A schema defines a set of structural and value constraints applicable to XML documents. Schemas can be expressed in schema languages, such as DTD, XML Schema, etc. ssiibblliinngg Two nodes are siblings if they have the same parent node. ssttrriinngg ccoommppaarriissoonn When string matching is required, it is to occur as though the comparison was between 2 sequences of code points from [_U_n_i_c_o_d_e]. ttookkeenn An information item such as an XML Name which has been _t_o_k_e_n_i_z_e_d. ttookkeenniizzeedd 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 tokenized type. wweellll--ffoorrmmeedd A node is a well-formed XML node if its serialized form, without doing any transformation during its serialization, matches its respective production in [_X_M_L_ _1_._0] or [_X_M_L_ _1_._1] (depending on the XML version in use) with all well-formedness constraints related to that production, and if the entities which are referenced within the node are also well- formed. If namespaces for XML are in use, the node must also be _n_a_m_e_s_p_a_c_e _w_e_l_l_-_f_o_r_m_e_d. XXMMLL Extensible Markup Language (XML) 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. [_X_M_L _1_._0] 07 April 2004 ************ RReeffeerreenncceess ************ For the latest version of any W3C specification please consult the list of _W_3_C _T_e_c_h_n_i_c_a_l_ _R_e_p_o_r_t_s available at http://www.w3.org/TR. ********** KK..11 NNoorrmmaattiivvee RReeffeerreenncceess ********** [[EECCMMAASSccrriipptt]] ECMAScript Language Specification, Third Edition. European Computer Manufacturers Association, Standard ECMA-262, December 1999. This version of the ECMAScript Language is available from http://www.ecma- international.org/. [[IISSOO//IIEECC 1100664466]] ISO/IEC 10646-2000 (E). Information technology - Universal Multiple-Octet Coded Character Set (UCS) - Part 1: Architecture and Basic Multilingual Plane, as, from time to time, amended, replaced by a new edition or expanded by the addition of new parts. [Geneva]: International Organization for Standardization, 2000. See also _I_n_t_e_r_n_a_t_i_o_n_a_l _O_r_g_a_n_i_z_a_t_i_o_n_ _f_o_r_ _S_t_a_n_d_a_r_d_i_z_a_t_i_o_n, available at http://www.iso.ch, for the latest version. [[JJaavvaa]] _T_h_e_ _J_a_v_a_ _L_a_n_g_u_a_g_e_ _S_p_e_c_i_f_i_c_a_t_i_o_n, J. Gosling, B. Joy, and G. Steele, Authors. Addison-Wesley, September 1996. Available at http:// java.sun.com/docs/books/jls [[OOMMGG IIDDLL]] "OMG IDL Syntax and Semantics"defined in_T_h_e_ _C_o_m_m_o_n_ _O_b_j_e_c_t_ _R_e_q_u_e_s_t_ _B_r_o_k_e_r_: _A_r_c_h_i_t_e_c_t_u_r_e_ _a_n_d_ _S_p_e_c_i_f_i_c_a_t_i_o_n_,_ _v_e_r_s_i_o_n_ _2, Object Management Group. The latest version of CORBA version 2.0 is available at http://www.omg.org/ technology/documents/formal/corba_2.htm. [[UUnniiccooddee]] The Unicode Standard, Version 4, ISBN 0-321-18578-1, as updated from time to time by the publication of new versions. The Unicode Consortium, 2000. See also _V_e_r_s_i_o_n_s_ _o_f_ _t_h_e_ _U_n_i_c_o_d_e_ _S_t_a_n_d_a_r_d, available at http:// www.unicode.org/unicode/standard/versions, for latest version and additional information on versions of the standard and of the Unicode Character Database. [[XXMMLL 11..00]] _E_x_t_e_n_s_i_b_l_e_ _M_a_r_k_u_p_ _L_a_n_g_u_a_g_e_ _(_X_M_L_)_ _1_._0_ _(_T_h_i_r_d_ _E_d_i_t_i_o_n_), T. Bray, J. Paoli, C. M. Sperberg-McQueen, E. Maler, and F. Yergeau, Editors. World Wide Web Consortium, 4 February 2004, revised 10 February 1998 and 6 October 2000. This version of the XML 1.0 Recommendation is http://www.w3.org/TR/2004/ REC-xml-20040204. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_M_L_ _1_._0 is available at http:// www.w3.org/TR/REC-xml. [[XXMMLL 11..11]] _X_M_L_ _1_._1, T. Bray, and al., Editors. World Wide Web Consortium, 4 February 2004. This version of the XML 1.1 Recommendation is http://www.w3.org/TR/ 2004/REC-xml11-20040204. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_M_L_ _1_._1 is available at http://www.w3.org/TR/xml11. [[XXMMLL BBaassee]] _X_M_L_ _B_a_s_e, 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 _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_M_L_ _B_a_s_e is available at http:// www.w3.org/TR/xmlbase. [[XXMMLL IInnffoorrmmaattiioonn SSeett]] _X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t_ _(_S_e_c_o_n_d_ _E_d_i_t_i_o_n_), J. Cowan and R. Tobin, Editors. World Wide Web Consortium, 4 February 2004, revised 24 October 2001. This version of the XML Information Set Recommendation is http://www.w3.org/ TR/2004/REC-xml-infoset-20040204. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_M_L_ _I_n_f_o_r_m_a_t_i_o_n _S_e_t is available at http://www.w3.org/TR/xml-infoset. [[XXMMLL NNaammeessppaacceess]] _N_a_m_e_s_p_a_c_e_s_ _i_n_ _X_M_L, T. Bray, D. Hollander, and A. Layman, Editors. World Wide Web Consortium, 14 January 1999. This version of the Namespaces in XML Recommendation is http://www.w3.org/TR/1999/REC-xml-names-19990114. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _N_a_m_e_s_p_a_c_e_s_ _i_n_ _X_M_L is available at http:// www.w3.org/TR/REC-xml-names. [[XXMMLL NNaammeessppaacceess 11..11]] _N_a_m_e_s_p_a_c_e_s_ _i_n_ _X_M_L_ _1_._1, T. Bray, D. Hollander, A. Layman, and R. Tobin, Editors. World Wide Web Consortium, 4 February 2004. This version of the Namespaces in XML 1.1 Recommendation is http://www.w3.org/TR/2004/REC- xml-names11-20040204. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _N_a_m_e_s_p_a_c_e_s_ _i_n_ _X_M_L_ _1_._1 is available at http://www.w3.org/TR/xml-names11/. [[XXMMLL SScchheemmaa PPaarrtt 11]] _X_M_L_ _S_c_h_e_m_a_ _P_a_r_t_ _1_:_ _S_t_r_u_c_t_u_r_e_s, 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 _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_M_L_ _S_c_h_e_m_a_ _P_a_r_t_ _1 is available at http://www.w3.org/TR/xmlschema-1. [[XXPPooiinntteerr]] _X_P_o_i_n_t_e_r_ _F_r_a_m_e_w_o_r_k, P. Grosso, E. Maler, J. Marsh, and N. Walsh., Editors. World Wide Web Consortium, 25 March 2003. This version of the XPointer Framework Recommendation is http://www.w3.org/TR/2003/REC-xptr- framework-20030325/. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_P_o_i_n_t_e_r_ _F_r_a_m_e_w_o_r_k is available at http://www.w3.org/TR/xptr-framework/. ********** KK..22 IInnffoorrmmaattiivvee RReeffeerreenncceess ********** [[CCaannoonniiccaall XXMMLL]] _C_a_n_o_n_i_c_a_l_ _X_M_L_ _V_e_r_s_i_o_n_ _1_._0, 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 _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f _C_a_n_o_n_i_c_a_l_ _X_M_L is available at http://www.w3.org/TR/xml-c14n. [[CCOOMM]] _T_h_e_ _M_i_c_r_o_s_o_f_t_ _C_o_m_p_o_n_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l, Microsoft Corporation. Available at http://www.microsoft.com/com. [[CCOORRBBAA]] _T_h_e_ _C_o_m_m_o_n_ _O_b_j_e_c_t_ _R_e_q_u_e_s_t_ _B_r_o_k_e_r_:_ _A_r_c_h_i_t_e_c_t_u_r_e_ _a_n_d_ _S_p_e_c_i_f_i_c_a_t_i_o_n_,_ _v_e_r_s_i_o_n _2. Object Management Group. The latest version of CORBA version 2.0 is available at http://www.omg.org/technology/documents/formal/corba_2.htm. [[DDOOMM LLeevveell 11]] _D_O_M_ _L_e_v_e_l_ _1_ _S_p_e_c_i_f_i_c_a_t_i_o_n, 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 _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _D_O_M_ _L_e_v_e_l_ _1 is available at http://www.w3.org/TR/REC- DOM-Level-1. [[DDOOMM LLeevveell 22 CCoorree]] _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _2_ _C_o_r_e_ _S_p_e_c_i_f_i_c_a_t_i_o_n, 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 _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _D_O_M_ _L_e_v_e_l_ _2_ _C_o_r_e is available at http://www.w3.org/TR/DOM-Level-2-Core. [[DDOOMM LLeevveell 33 EEvveennttss]] _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s_ _S_p_e_c_i_f_i_c_a_t_i_o_n, P. Le Hégaret, T. Pixley, Editors. World Wide Web Consortium, November 2003. This version of the Document Object Model Level 3 Events specification is http:// www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n _o_f_ _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _3_ _E_v_e_n_t_s is available at http:// www.w3.org/TR/DOM-Level-3-Events. [[DDOOMM LLeevveell 33 LLooaadd aanndd SSaavvee]] _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e_ _S_p_e_c_i_f_i_c_a_t_i_o_n, J. Stenback, A. Heninger, Editors. World Wide Web Consortium, 7 April 2004. This version of the DOM Level 3 Load and Save Recommendation is http:// www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _D_O_M _L_e_v_e_l_ _3_ _L_o_a_d_ _a_n_d_ _S_a_v_e is available at http://www.w3.org/TR/DOM-Level-3- LS. [[DDOOMM LLeevveell 22 HHTTMMLL]] _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _2_ _H_T_M_L_ _S_p_e_c_i_f_i_c_a_t_i_o_n, J. Stenback, et al., Editors. World Wide Web Consortium, 9 January 2003. This version of the Document Object Model Level 2 HTML Recommendation is http://www.w3.org/ TR/2003/REC-DOM-Level-2-HTML-20030109. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _D_o_c_u_m_e_n_t _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _2_ _H_T_M_L is available at http://www.w3.org/TR/DOM-Level- 2-HTML. [[DDOOMM LLeevveell 33 VVaalliiddaattiioonn]] _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _3_ _V_a_l_i_d_a_t_i_o_n_ _S_p_e_c_i_f_i_c_a_t_i_o_n, B. Chang, J. Kesselman, R. Rahman, Editors. World Wide Web Consortium, 27 January 2003. This version of the DOM Level 3 Validation Recommendation is http:/ /www.w3.org/TR/2004/REC-DOM-Level-3-Val-20040127/. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f _D_O_M_ _L_e_v_e_l_ _3_ _V_a_l_i_d_a_t_i_o_n is available at http://www.w3.org/TR/DOM-Level-3- Val. [[DDOOMM LLeevveell 33 XXPPaatthh]] _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t_ _M_o_d_e_l_ _L_e_v_e_l_ _3_ _X_P_a_t_h_ _S_p_e_c_i_f_i_c_a_t_i_o_n, R. Whitmer, Editor. World Wide Web Consortium, March 2003. This version of the Document Object Model Level 3 XPath specification is http://www.w3.org/TR/2004/ NOTE-DOM-Level-3-XPath-20040226. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _D_o_c_u_m_e_n_t_ _O_b_j_e_c_t _M_o_d_e_l_ _L_e_v_e_l_ _3_ _X_P_a_t_h is available at http://www.w3.org/TR/DOM-Level-3- XPath. [[HHTTMMLL 44..0011]] _H_T_M_L_ _4_._0_1_ _S_p_e_c_i_f_i_c_a_t_i_o_n, 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/1999/REC-html401-19991224. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f _H_T_M_L_ _4 is available at http://www.w3.org/TR/html4. [[JJaavvaa IIDDLL]] _J_a_v_a_ _I_D_L. Sun Microsystems. Available at http://java.sun.com/products/ jdk/idl/ [[JJaavvaaSSccrriipptt]] _J_a_v_a_S_c_r_i_p_t_ _R_e_s_o_u_r_c_e_s. Netscape Communications Corporation. Available at http://devedge.netscape.com/central/javascript/ [[JJSSccrriipptt]] _J_S_c_r_i_p_t_ _R_e_s_o_u_r_c_e_s. Microsoft. Available at http://msdn.microsoft.com/ library/en-us/script56/html/js56jslrfjscriptlanguagereference.asp [[MMaatthhMMLL 22..00]] _M_a_t_h_e_m_a_t_i_c_a_l_ _M_a_r_k_u_p_ _L_a_n_g_u_a_g_e_ _(_M_a_t_h_M_L_)_ _V_e_r_s_i_o_n_ _2_._0_ _(_S_e_c_o_n_d_ _E_d_i_t_i_o_n_), D. Carlisle, P. Ion, R. Miner, N. Poppelier, Editors. World Wide Web Consortium, 21 October 2001, revised 21 February 2001. This version of the Math 2.0 Recommendation is http://www.w3.org/TR/2003/REC-MathML2- 20031021. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _M_a_t_h_M_L_ _2_._0 is available at http:// www.w3.org/TR/MathML2. [[MMIIDDLL]] _M_I_D_L_ _L_a_n_g_u_a_g_e_ _R_e_f_e_r_e_n_c_e. Microsoft. Available at http:// msdn.microsoft.com/library/default.asp?url=/library/en-us/midl/midl/ midl_language_reference.asp. [[IIEETTFF RRFFCC 22339966]] _U_n_i_f_o_r_m_ _R_e_s_o_u_r_c_e_ _I_d_e_n_t_i_f_i_e_r_s_ _(_U_R_I_)_:_ _G_e_n_e_r_i_c_ _S_y_n_t_a_x, T. Berners-Lee, R. Fielding, L. Masinter, Authors. Internet Engineering Task Force, August 1998. Available at http://www.ietf.org/rfc/rfc2396.txt. [[SSAAXX]] _S_i_m_p_l_e_ _A_P_I_ _f_o_r_ _X_M_L, D. Megginson and D. Brownell, Maintainers. Available at http://www.saxproject.org/. [[SSVVGG 11..11]] _S_c_a_l_a_b_l_e_ _V_e_c_t_o_r_ _G_r_a_p_h_i_c_s_ _(_S_V_G_)_ _1_._1_ _S_p_e_c_i_f_i_c_a_t_i_o_n, J. Ferraiolo, ä¢ ó (FUJISAWA Jun), and D. Jackson, Editors. World Wide Web Consortium, 14 January 2003. This version of the SVG 1.1 Recommendation is http:// www.w3.org/TR/2003/REC-SVG11-20030114/. The _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _S_V_G_ _1_._1 is available at http://www.w3.org/TR/SVG. [[XXPPaatthh 11..00]] _X_M_L_ _P_a_t_h_ _L_a_n_g_u_a_g_e_ _(_X_P_a_t_h_)_ _V_e_r_s_i_o_n_ _1_._0, 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 _l_a_t_e_s_t_ _v_e_r_s_i_o_n_ _o_f_ _X_P_a_t_h_ _1_._0 is available at http://www.w3.org/TR/xpath. 07 April 2004 ************ IInnddeexx ************ _"_c_a_n_o_n_i_c_a_l_-_f_o_r_m_" _1, _2 _"_c_d_a_t_a_-_s_e_c_t_i_o_n_s_" _1, _2 _"_c_h_e_c_k_-_c_h_a_r_a_c_t_e_r_- _n_o_r_m_a_l_i_z_a_t_i_o_n_" _1, _2 _"_c_o_m_m_e_n_t_s_" _1, _2 _"_d_a_t_a_t_y_p_e_-_n_o_r_m_a_l_i_z_a_t_i_o_n_" _1, _2 _"_e_l_e_m_e_n_t_-_c_o_n_t_e_n_t_-_w_h_i_t_e_s_p_a_c_e_" _1, _2 _"_e_n_t_i_t_i_e_s_" _1, _2 _"_e_r_r_o_r_-_h_a_n_d_l_e_r_" _1, _2, _3, _4 _"_i_n_f_o_s_e_t_" _"_n_a_m_e_s_p_a_c_e_-_d_e_c_l_a_r_a_t_i_o_n_s_" _1, _2 _"_n_a_m_e_s_p_a_c_e_s_" _1, _2, _3, _4 _"_n_o_r_m_a_l_i_z_e_-_c_h_a_r_a_c_t_e_r_s_" _1, _2, _3, _4, _5 _"_s_c_h_e_m_a_-_l_o_c_a_t_i_o_n_" _"_s_c_h_e_m_a_-_t_y_p_e_"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_t_ _t_e_x_t_ _n_o_d_e_s _1, _2, _3 _l_o_o_k_u_p_N_a_m_e_s_p_a_c_e_U_R_I _l_o_o_k_u_p_P_r_e_f_i_x _M_a_t_h_M_L_ _2_._0 _1, _2 _m_e_s_s_a_g_e _m_e_t_h_o_d _1, _2 _M_I_D_L _1, _2 _m_o_d_e_l _1, _2 _n_a_m_e _1, _2 _N_a_m_e_d_N_o_d_e_M_a_p _N_a_m_e_L_i_s_t _n_a_m_e_s_p_a_c_e_ _U_R_I _1, _2, _3, _4, _5, _n_a_m_e_s_p_a_c_e_ _p_r_e_f_i_x _1, _2, _3, _4, _5, _6 _6, _7, _8, _9, _1_0, _1_1, _1_2, _1_3, _n_a_m_e_s_p_a_c_e_ _w_e_l_l_-_f_o_r_m_e_d _1, _2 _1_4, _1_5, _1_6, _1_7, _1_8, _1_9, _2_0, _2_1, _2_2 _N_A_M_E_S_P_A_C_E___E_R_R _n_a_m_e_s_p_a_c_e_U_R_I _n_e_x_t_S_i_b_l_i_n_g _N_O___D_A_T_A___A_L_L_O_W_E_D___E_R_R _N_O___M_O_D_I_F_I_C_A_T_I_O_N___A_L_L_O_W_E_D___E_R_R _N_o_d_e _N_O_D_E___A_D_O_P_T_E_D _N_O_D_E___C_L_O_N_E_D _N_O_D_E___D_E_L_E_T_E_D _N_O_D_E___I_M_P_O_R_T_E_D _N_O_D_E___R_E_N_A_M_E_D _N_o_d_e_L_i_s_t _n_o_d_e_N_a_m_e _n_o_d_e_T_y_p_e _n_o_d_e_V_a_l_u_e _n_o_r_m_a_l_i_z_e _n_o_r_m_a_l_i_z_e_D_o_c_u_m_e_n_t _N_O_T___F_O_U_N_D___E_R_R _N_O_T___S_U_P_P_O_R_T_E_D___E_R_R _N_o_t_a_t_i_o_n _N_O_T_A_T_I_O_N___N_O_D_E _n_o_t_a_t_i_o_n_N_a_m_e _n_o_t_a_t_i_o_n_s _o_b_j_e_c_t_ _m_o_d_e_l _1, _2, _3 _O_M_G_ _I_D_L _1, _2,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_X_M_L_ _1_._1 _1, _2, _3, _4, _5, _6, _7, _X_M_L _1, _2 _8, _9, _1_0, _1_1, _1_2, _1_3, _1_4, _1_5, _8, _9 _1_6, _1_7, _1_8, _1_9 _X_M_L_ _N_a_m_e_s_p_a_c_e_s _1, _2, _3, _4, _5, _X_M_L_ _B_a_s_e _1, _2 _X_M_L_ _I_n_f_o_r_m_a_t_i_o_n_ _S_e_t _1, _2, _3, _6, _7, _8, _9, _1_0, _1_1, _1_2, _1_3, _4, _5, _6, _7 _1_4, _1_5, _1_6, _1_7, _1_8, _1_9, _2_0, _2_1, _2_2, _2_3, _2_4, _2_5 _X_M_L_ _N_a_m_e_s_p_a_c_e_s_ _1_._1 _1, _2, _3, _4, _5 _X_M_L_ _S_c_h_e_m_a_ _P_a_r_t_ _1 _1, _2, _3, _4, _x_m_l_E_n_c_o_d_i_n_g _1, _2 _5, _6, _7, _8 _x_m_l_S_t_a_n_d_a_l_o_n_e _x_m_l_V_e_r_s_i_o_n _1, _2 _X_P_a_t_h_ _1_._0 _X_P_o_i_n_t_e_r _1, _2, _3