document.html

来自「SUN公司官方J2EE中文帮助文档 应该不错 有兴趣的下来看看 html格式的」· HTML 代码 · 共 828 行 · 第 1/3 页

HTML
828
字号
 defines default attributes for this element name, those are assigned. 
 If the <code>importNode</code> <code>deep</code> parameter was set to 
 <code>true</code>, the descendants of the source element are 
 recursively imported and the resulting nodes reassembled to form the 
 corresponding subtree.</dd>
 <dt>ENTITY_NODE</dt>
 <dd><code>Entity</code> nodes can be 
 imported, however in the current release of the DOM the 
 <code>DocumentType</code> is readonly. Ability to add these imported 
 nodes to a <code>DocumentType</code> will be considered for addition 
 to a future release of the DOM.On import, the <code>publicId</code>, 
 <code>systemId</code>, and <code>notationName</code> attributes are 
 copied. If a <code>deep</code> import is requested, the descendants 
 of the the source <code>Entity</code> are recursively imported and 
 the resulting nodes reassembled to form the corresponding subtree.</dd>
 <dt>
 ENTITY_REFERENCE_NODE</dt>
 <dd>Only the <code>EntityReference</code> itself is 
 copied, even if a <code>deep</code> import is requested, since the 
 source and destination documents might have defined the entity 
 differently. If the document being imported into provides a 
 definition for this entity name, its value is assigned.</dd>
 <dt>NOTATION_NODE</dt>
 <dd>
 <code>Notation</code> nodes can be imported, however in the current 
 release of the DOM the <code>DocumentType</code> is readonly. Ability 
 to add these imported nodes to a <code>DocumentType</code> will be 
 considered for addition to a future release of the DOM.On import, the 
 <code>publicId</code> and <code>systemId</code> attributes are copied.
 Note that the <code>deep</code> parameter has no effect on 
 <code>Notation</code> nodes since they never have any children.</dd>
 <dt>
 PROCESSING_INSTRUCTION_NODE</dt>
 <dd>The imported node copies its 
 <code>target</code> and <code>data</code> values from those of the 
 source node.</dd>
 <dt>TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE</dt>
 <dd>These three 
 types of nodes inheriting from <code>CharacterData</code> copy their 
 <code>data</code> and <code>length</code> attributes from those of 
 the source node.</dd>
 </dl><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>importedNode</CODE> - The node to import.<DD><CODE>deep</CODE> - If <code>true</code>, recursively import the subtree under 
   the specified node; if <code>false</code>, import only the node 
   itself, as explained above. This has no effect on <code>Attr</code>
   , <code>EntityReference</code>, and <code>Notation</code> nodes.<DT><B>Returns:</B><DD>The imported node that belongs to this <code>Document</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/w3c/dom/DOMException.html">DOMException</A></CODE> - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not 
   supported.<DT><B>Since: </B><DD>DOM Level 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="createElementNS(java.lang.String, java.lang.String)"><!-- --></A><H3>
createElementNS</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/Element.html">Element</A> <B>createElementNS</B>(java.lang.String&nbsp;namespaceURI,
                               java.lang.String&nbsp;qualifiedName)
                        throws <A HREF="../../../org/w3c/dom/DOMException.html">DOMException</A></PRE>
<DL>
<DD>Creates an element of the given qualified name and namespace URI.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI of the element to create.<DD><CODE>qualifiedName</CODE> - The qualified name of the element type to 
   instantiate.<DT><B>Returns:</B><DD>A new <code>Element</code> object with the following 
   attributes:
 <table border='1'>
 <tr>
 <th>Attribute</th>
 <th>Value</th>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.nodeName</code></td>
 <td valign='top' rowspan='1' colspan='1'>
   <code>qualifiedName</code></td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.namespaceURI</code></td>
 <td valign='top' rowspan='1' colspan='1'>
   <code>namespaceURI</code></td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.prefix</code></td>
 <td valign='top' rowspan='1' colspan='1'>prefix, extracted 
   from <code>qualifiedName</code>, or <code>null</code> if there is 
   no prefix</td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.localName</code></td>
 <td valign='top' rowspan='1' colspan='1'>local name, extracted from 
   <code>qualifiedName</code></td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Element.tagName</code></td>
 <td valign='top' rowspan='1' colspan='1'>
   <code>qualifiedName</code></td>
 </tr>
 </table><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/w3c/dom/DOMException.html">DOMException</A></CODE> - INVALID_CHARACTER_ERR: Raised if the specified qualified name 
   contains an illegal character, per the XML 1.0 specification .
   <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is 
   malformed per the Namespaces in XML specification, if the 
   <code>qualifiedName</code> has a prefix and the 
   <code>namespaceURI</code> is <code>null</code>, or if the 
   <code>qualifiedName</code> has a prefix that is "xml" and the 
   <code>namespaceURI</code> is different from "
   http://www.w3.org/XML/1998/namespace" .
   <br>NOT_SUPPORTED_ERR: Always thrown if the current document does not 
   support the <code>"XML"</code> feature, since namespaces were 
   defined by XML.<DT><B>Since: </B><DD>DOM Level 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="createAttributeNS(java.lang.String, java.lang.String)"><!-- --></A><H3>
createAttributeNS</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/Attr.html">Attr</A> <B>createAttributeNS</B>(java.lang.String&nbsp;namespaceURI,
                              java.lang.String&nbsp;qualifiedName)
                       throws <A HREF="../../../org/w3c/dom/DOMException.html">DOMException</A></PRE>
<DL>
<DD>Creates an attribute of the given qualified name and namespace URI.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI of the attribute to create.<DD><CODE>qualifiedName</CODE> - The qualified name of the attribute to 
   instantiate.<DT><B>Returns:</B><DD>A new <code>Attr</code> object with the following attributes:
 <table border='1'>
 <tr>
 <th>
   Attribute</th>
 <th>Value</th>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.nodeName</code></td>
 <td valign='top' rowspan='1' colspan='1'>qualifiedName</td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'>
   <code>Node.namespaceURI</code></td>
 <td valign='top' rowspan='1' colspan='1'><code>namespaceURI</code></td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'>
   <code>Node.prefix</code></td>
 <td valign='top' rowspan='1' colspan='1'>prefix, extracted from 
   <code>qualifiedName</code>, or <code>null</code> if there is no 
   prefix</td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.localName</code></td>
 <td valign='top' rowspan='1' colspan='1'>local name, extracted from 
   <code>qualifiedName</code></td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Attr.name</code></td>
 <td valign='top' rowspan='1' colspan='1'>
   <code>qualifiedName</code></td>
 </tr>
 <tr>
 <td valign='top' rowspan='1' colspan='1'><code>Node.nodeValue</code></td>
 <td valign='top' rowspan='1' colspan='1'>the empty 
   string</td>
 </tr>
 </table><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/w3c/dom/DOMException.html">DOMException</A></CODE> - INVALID_CHARACTER_ERR: Raised if the specified qualified name 
   contains an illegal character, per the XML 1.0 specification .
   <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is 
   malformed per the Namespaces in XML specification, if the 
   <code>qualifiedName</code> has a prefix and the 
   <code>namespaceURI</code> is <code>null</code>, if the 
   <code>qualifiedName</code> has a prefix that is "xml" and the 
   <code>namespaceURI</code> is different from "
   http://www.w3.org/XML/1998/namespace", or if the 
   <code>qualifiedName</code>, or its prefix, is "xmlns" and the 
   <code>namespaceURI</code> is different from "
   http://www.w3.org/2000/xmlns/".
   <br>NOT_SUPPORTED_ERR: Always thrown if the current document does not 
   support the <code>"XML"</code> feature, since namespaces were 
   defined by XML.<DT><B>Since: </B><DD>DOM Level 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getElementsByTagNameNS(java.lang.String, java.lang.String)"><!-- --></A><H3>
getElementsByTagNameNS</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/NodeList.html">NodeList</A> <B>getElementsByTagNameNS</B>(java.lang.String&nbsp;namespaceURI,
                                       java.lang.String&nbsp;localName)</PRE>
<DL>
<DD>Returns a <code>NodeList</code> of all the <code>Elements</code> with a 
 given local name and namespace URI in the order in which they are 
 encountered in a preorder traversal of the <code>Document</code> tree.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI of the elements to match on. The 
   special value "*" matches all namespaces.<DD><CODE>localName</CODE> - The local name of the elements to match on. The 
   special value "*" matches all local names.<DT><B>Returns:</B><DD>A new <code>NodeList</code> object containing all the matched 
   <code>Elements</code>.<DT><B>Since: </B><DD>DOM Level 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getElementById(java.lang.String)"><!-- --></A><H3>
getElementById</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/Element.html">Element</A> <B>getElementById</B>(java.lang.String&nbsp;elementId)</PRE>
<DL>
<DD>Returns the <code>Element</code> whose <code>ID</code> is given by 
 <code>elementId</code>. If no such element exists, returns 
 <code>null</code>. Behavior is not defined if more than one element 
 has this <code>ID</code>. The DOM implementation must have 
 information that says which attributes are of type ID. Attributes 
 with the name "ID" are not of type ID unless so defined. 
 Implementations that do not know whether attributes are of type ID or 
 not are expected to return <code>null</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elementId</CODE> - The unique <code>id</code> value for an element.<DT><B>Returns:</B><DD>The matching element.<DT><B>Since: </B><DD>DOM Level 2</DD>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/w3c/dom/Comment.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/w3c/dom/DocumentFragment.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Document.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?