📄 node.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Wed Oct 31 22:26:19 PST 2001 --><TITLE>Java API for XML Processing Specification 1.1: Uses of Interface org.w3c.dom.Node</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/w3c/dom/Node.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Node.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><CENTER><H2><B>Uses of Interface<br>org.w3c.dom.Node</B></H2></CENTER><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Packages that use <A HREF="../../../../org/w3c/dom/Node.html">Node</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="#org.w3c.dom"><B>org.w3c.dom</B></A></TD><TD> </TD></TR></TABLE> <P><A NAME="org.w3c.dom"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../org/w3c/dom/Node.html">Node</A> in <A HREF="../../../../org/w3c/dom/package-summary.html">org.w3c.dom</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Subinterfaces of <A HREF="../../../../org/w3c/dom/Node.html">Node</A> in <A HREF="../../../../org/w3c/dom/package-summary.html">org.w3c.dom</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Attr.html">Attr</A></B></CODE><BR> The <code>Attr</code> interface represents an attribute in an <code>Element</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/CDATASection.html">CDATASection</A></B></CODE><BR> CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/CharacterData.html">CharacterData</A></B></CODE><BR> The <code>CharacterData</code> interface extends Node with a set of attributes and methods for accessing character data in the DOM.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Comment.html">Comment</A></B></CODE><BR> This interface inherits from <code>CharacterData</code> and represents the content of a comment, i.e., all the characters between the starting ' <code><!--</code>' and ending '<code>--></code>'.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Document.html">Document</A></B></CODE><BR> The <code>Document</code> interface represents the entire HTML or XML document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/DocumentFragment.html">DocumentFragment</A></B></CODE><BR> <code>DocumentFragment</code> is a "lightweight" or "minimal" <code>Document</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/DocumentType.html">DocumentType</A></B></CODE><BR> Each <code>Document</code> has a <code>doctype</code> attribute whose value is either <code>null</code> or a <code>DocumentType</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Element.html">Element</A></B></CODE><BR> The <code>Element</code> interface represents an element in an HTML or XML document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Entity.html">Entity</A></B></CODE><BR> This interface represents an entity, either parsed or unparsed, in an XML document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/EntityReference.html">EntityReference</A></B></CODE><BR> <code>EntityReference</code> objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Notation.html">Notation</A></B></CODE><BR> This interface represents a notation declared in the DTD.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/ProcessingInstruction.html">ProcessingInstruction</A></B></CODE><BR> The <code>ProcessingInstruction</code> interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/w3c/dom/Text.html">Text</A></B></CODE><BR> The <code>Text</code> interface inherits from <code>CharacterData</code> and represents the textual content (termed character data in XML) of an <code>Element</code> or <code>Attr</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../org/w3c/dom/package-summary.html">org.w3c.dom</A> that return <A HREF="../../../../org/w3c/dom/Node.html">Node</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD><TD><CODE><B>NodeList.</B><B><A HREF="../../../../org/w3c/dom/NodeList.html#item(int)">item</A></B>(int index)</CODE><BR> Returns the <code>index</code>th item in the collection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD><TD><CODE><B>NamedNodeMap.</B><B><A HREF="../../../../org/w3c/dom/NamedNodeMap.html#getNamedItem(java.lang.String)">getNamedItem</A></B>(java.lang.String name)</CODE><BR> Retrieves a node specified by name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD><TD><CODE><B>NamedNodeMap.</B><B><A HREF="../../../../org/w3c/dom/NamedNodeMap.html#setNamedItem(org.w3c.dom.Node)">setNamedItem</A></B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> arg)</CODE><BR> Adds a node using its <code>nodeName</code> attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD><TD><CODE><B>NamedNodeMap.</B><B><A HREF="../../../../org/w3c/dom/NamedNodeMap.html#removeNamedItem(java.lang.String)">removeNamedItem</A></B>(java.lang.String name)</CODE><BR> Removes a node specified by name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD><TD><CODE><B>NamedNodeMap.</B><B><A HREF="../../../../org/w3c/dom/NamedNodeMap.html#item(int)">item</A></B>(int index)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -