| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:59 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Interface HTMLDocument
|
| </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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HTMLDocument.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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">
|
| <A HREF="../../../../org/w3c/dom/html/HTMLDListElement.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/w3c/dom/html/HTMLElement.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>
|
| <A HREF="HTMLDocument.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.w3c.dom.html</FONT>
|
| <BR>
|
| Interface HTMLDocument</H2>
|
| <HR>
|
| <DL>
|
| <DT>public interface <B>HTMLDocument</B><DT>extends <A HREF="../../../../org/w3c/dom/Document.html">Document</A></DL>
|
|
|
| <P>
|
| An <code>HTMLDocument</code> is the root of the HTML hierarchy andholds the |
| entire content. Beside providing access to the hierarchy, italso provides |
| some convenience methods for accessing certain sets ofinformation from the |
| document. |
| <p>The following properties have been deprecated in favor of the |
| corresponding ones for the BODY element:alinkColorbackgroundbgColorfgColor |
| linkColorvlinkColor
|
| <P>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
| <A NAME="fields_inherited_from_class_org.w3c.dom.Node"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Fields inherited from class org.w3c.dom.<A HREF="../../../../org/w3c/dom/Node.html">Node</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/w3c/dom/Node.html#ATTRIBUTE_NODE">ATTRIBUTE_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#CDATA_SECTION_NODE">CDATA_SECTION_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#COMMENT_NODE">COMMENT_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_FRAGMENT_NODE">DOCUMENT_FRAGMENT_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_NODE">DOCUMENT_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_CONTAINED_BY">DOCUMENT_POSITION_CONTAINED_BY</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_CONTAINS">DOCUMENT_POSITION_CONTAINS</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_DISCONNECTED">DOCUMENT_POSITION_DISCONNECTED</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_FOLLOWING">DOCUMENT_POSITION_FOLLOWING</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC">DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_POSITION_PRECEDING">DOCUMENT_POSITION_PRECEDING</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#DOCUMENT_TYPE_NODE">DOCUMENT_TYPE_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#ELEMENT_NODE">ELEMENT_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#ENTITY_NODE">ENTITY_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#ENTITY_REFERENCE_NODE">ENTITY_REFERENCE_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#NOTATION_NODE">NOTATION_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#PROCESSING_INSTRUCTION_NODE">PROCESSING_INSTRUCTION_NODE</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#TEXT_NODE">TEXT_NODE</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
|
| <!-- ========== METHOD SUMMARY =========== -->
|
|
|
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Method Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#close()">close</A></B>()</CODE>
|
|
|
| <BR>
|
| Closes a document stream opened by <code>open()</code>and forces |
| rendering.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getAnchors()">getAnchors</A></B>()</CODE>
|
|
|
| <BR>
|
| A collection of all the anchor (<code>A</code>) elements in a document |
| with a value for the <code>name</code> attribute.Note.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getApplets()">getApplets</A></B>()</CODE>
|
|
|
| <BR>
|
| A collection of all the <code>OBJECT</code> elements that includeapplets |
| and <code>APPLET</code> (deprecated) elements ina document.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/html/HTMLElement.html">HTMLElement</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getBody()">getBody</A></B>()</CODE>
|
|
|
| <BR>
|
| The element that contains the content for the document.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getCookie()">getCookie</A></B>()</CODE>
|
|
|
| <BR>
|
| The cookies associated with this document.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getDomain()">getDomain</A></B>()</CODE>
|
|
|
| <BR>
|
| The domain name of the server that served the document, or a nullstring |
| if the server cannot be identified by a domain name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/Element.html">Element</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getElementById(java.lang.String)">getElementById</A></B>(java.lang.String elementId)</CODE>
|
|
|
| <BR>
|
| Returns the Element whose <code>id</code> is given by elementId.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/NodeList.html">NodeList</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getElementsByName(java.lang.String)">getElementsByName</A></B>(java.lang.String elementName)</CODE>
|
|
|
| <BR>
|
| Returns the (possibly empty) collection of elements whose<code>name</code> |
| value is given by <code>elementName</code>.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getForms()">getForms</A></B>()</CODE>
|
|
|
| <BR>
|
| A collection of all the forms of a document.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getImages()">getImages</A></B>()</CODE>
|
|
|
| <BR>
|
| A collection of all the <code>IMG</code> elements in a document.The |
| behavior is limited to <code>IMG</code> elements forbackwards |
| compatibility.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getLinks()">getLinks</A></B>()</CODE>
|
|
|
| <BR>
|
| A collection of all <code>AREA</code> elements andanchor (<code>A</code>) |
| elements in a documentwith a value for the <code>href</code> attribute.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getReferrer()">getReferrer</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns the URI of the page that linked to this page.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getTitle()">getTitle</A></B>()</CODE>
|
|
|
| <BR>
|
| The title of a document as specified by the <code>TITLE</code>element in |
| the head of the document.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#getURL()">getURL</A></B>()</CODE>
|
|
|
| <BR>
|
| The complete URI of the document.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#open()">open</A></B>()</CODE>
|
|
|
| <BR>
|
| Note.This method and the ones following allow a user to add to or replace |
| the structuremodel of a document using strings of unparsed HTML.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#setBody(org.w3c.dom.html.HTMLElement)">setBody</A></B>(<A HREF="../../../../org/w3c/dom/html/HTMLElement.html">HTMLElement</A> body)</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#setCookie(java.lang.String)">setCookie</A></B>(java.lang.String cookie)</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#setTitle(java.lang.String)">setTitle</A></B>(java.lang.String title)</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#write(java.lang.String)">write</A></B>(java.lang.String text)</CODE>
|
|
|
| <BR>
|
| Write a string of text to a document stream opened by<code>open()</code>.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/html/HTMLDocument.html#writeln(java.lang.String)">writeln</A></B>(java.lang.String text)</CODE>
|
|
|
| <BR>
|
| Write a string of text followed by a newline character to a document |
| stream opened by <code>open()</code>.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.w3c.dom.Document"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from interface org.w3c.dom.<A HREF="../../../../org/w3c/dom/Document.html">Document</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/w3c/dom/Document.html#adoptNode(org.w3c.dom.Node)">adoptNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createAttribute(java.lang.String)">createAttribute</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createAttributeNS(java.lang.String, java.lang.String)">createAttributeNS</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createCDATASection(java.lang.String)">createCDATASection</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createComment(java.lang.String)">createComment</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createDocumentFragment()">createDocumentFragment</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createElement(java.lang.String)">createElement</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createElementNS(java.lang.String, java.lang.String)">createElementNS</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createEntityReference(java.lang.String)">createEntityReference</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createProcessingInstruction(java.lang.String, java.lang.String)">createProcessingInstruction</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#createTextNode(java.lang.String)">createTextNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getDoctype()">getDoctype</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getDocumentElement()">getDocumentElement</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getDocumentURI()">getDocumentURI</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getDomConfig()">getDomConfig</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getElementsByTagName(java.lang.String)">getElementsByTagName</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getElementsByTagNameNS(java.lang.String, java.lang.String)">getElementsByTagNameNS</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getImplementation()">getImplementation</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getInputEncoding()">getInputEncoding</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getStrictErrorChecking()">getStrictErrorChecking</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getXmlEncoding()">getXmlEncoding</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getXmlStandalone()">getXmlStandalone</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#getXmlVersion()">getXmlVersion</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#importNode(org.w3c.dom.Node, boolean)">importNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#normalizeDocument()">normalizeDocument</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String)">renameNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#setDocumentURI(java.lang.String)">setDocumentURI</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#setStrictErrorChecking(boolean)">setStrictErrorChecking</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#setXmlStandalone(boolean)">setXmlStandalone</A>,
|
| <A HREF="../../../../org/w3c/dom/Document.html#setXmlVersion(java.lang.String)">setXmlVersion</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.w3c.dom.Node"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from interface org.w3c.dom.<A HREF="../../../../org/w3c/dom/Node.html">Node</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../org/w3c/dom/Node.html#appendChild(org.w3c.dom.Node)">appendChild</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#cloneNode(boolean)">cloneNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#compareDocumentPosition(org.w3c.dom.Node)">compareDocumentPosition</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getAttributes()">getAttributes</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getBaseURI()">getBaseURI</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getChildNodes()">getChildNodes</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getFeature(java.lang.String, java.lang.String)">getFeature</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getFirstChild()">getFirstChild</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getLastChild()">getLastChild</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getLocalName()">getLocalName</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getNamespaceURI()">getNamespaceURI</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getNextSibling()">getNextSibling</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getNodeName()">getNodeName</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getNodeType()">getNodeType</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getNodeValue()">getNodeValue</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getOwnerDocument()">getOwnerDocument</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getParentNode()">getParentNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getPrefix()">getPrefix</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getPreviousSibling()">getPreviousSibling</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getTextContent()">getTextContent</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#getUserData(java.lang.String)">getUserData</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#hasAttributes()">hasAttributes</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#hasChildNodes()">hasChildNodes</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)">insertBefore</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#isDefaultNamespace(java.lang.String)">isDefaultNamespace</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#isEqualNode(org.w3c.dom.Node)">isEqualNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#isSameNode(org.w3c.dom.Node)">isSameNode</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#isSupported(java.lang.String, java.lang.String)">isSupported</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#lookupNamespaceURI(java.lang.String)">lookupNamespaceURI</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#lookupPrefix(java.lang.String)">lookupPrefix</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#normalize()">normalize</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#removeChild(org.w3c.dom.Node)">removeChild</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)">replaceChild</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#setNodeValue(java.lang.String)">setNodeValue</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#setPrefix(java.lang.String)">setPrefix</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#setTextContent(java.lang.String)">setTextContent</A>,
|
| <A HREF="../../../../org/w3c/dom/Node.html#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)">setUserData</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
|
| <!-- ============ METHOD DETAIL ========== -->
|
|
|
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Method Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="getTitle()"><!-- --></A><H3>
|
| getTitle</H3>
|
| <PRE>
|
| public java.lang.String <B>getTitle</B>()</PRE>
|
| <DL>
|
| <DD>The title of a document as specified by the <code>TITLE</code>element in |
| the head of the document.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setTitle(java.lang.String)"><!-- --></A><H3>
|
| setTitle</H3>
|
| <PRE>
|
| public void <B>setTitle</B>(java.lang.String title)</PRE>
|
| <DL>
|
| <DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getReferrer()"><!-- --></A><H3>
|
| getReferrer</H3>
|
| <PRE>
|
| public java.lang.String <B>getReferrer</B>()</PRE>
|
| <DL>
|
| <DD>Returns the URI of the page that linked to this page. The value isan |
| empty string if the user navigated to the page directly (notthrough a |
| link, but, for example, via a bookmark).<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getDomain()"><!-- --></A><H3>
|
| getDomain</H3>
|
| <PRE>
|
| public java.lang.String <B>getDomain</B>()</PRE>
|
| <DL>
|
| <DD>The domain name of the server that served the document, or a nullstring |
| if the server cannot be identified by a domain name.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getURL()"><!-- --></A><H3>
|
| getURL</H3>
|
| <PRE>
|
| public java.lang.String <B>getURL</B>()</PRE>
|
| <DL>
|
| <DD>The complete URI of the document.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getBody()"><!-- --></A><H3>
|
| getBody</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/html/HTMLElement.html">HTMLElement</A> <B>getBody</B>()</PRE>
|
| <DL>
|
| <DD>The element that contains the content for the document. In documentswith |
| <code>BODY</code> contents, returns the <code>BODY</code>element, and in |
| frameset documents, this returns the outermost<code>FRAMESET</code> |
| element.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setBody(org.w3c.dom.html.HTMLElement)"><!-- --></A><H3>
|
| setBody</H3>
|
| <PRE>
|
| public void <B>setBody</B>(<A HREF="../../../../org/w3c/dom/html/HTMLElement.html">HTMLElement</A> body)</PRE>
|
| <DL>
|
| <DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getImages()"><!-- --></A><H3>
|
| getImages</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A> <B>getImages</B>()</PRE>
|
| <DL>
|
| <DD>A collection of all the <code>IMG</code> elements in a document.The |
| behavior is limited to <code>IMG</code> elements forbackwards |
| compatibility.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getApplets()"><!-- --></A><H3>
|
| getApplets</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A> <B>getApplets</B>()</PRE>
|
| <DL>
|
| <DD>A collection of all the <code>OBJECT</code> elements that includeapplets |
| and <code>APPLET</code> (deprecated) elements ina document.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getLinks()"><!-- --></A><H3>
|
| getLinks</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A> <B>getLinks</B>()</PRE>
|
| <DL>
|
| <DD>A collection of all <code>AREA</code> elements andanchor (<code>A</code>) |
| elements in a documentwith a value for the <code>href</code> attribute.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getForms()"><!-- --></A><H3>
|
| getForms</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A> <B>getForms</B>()</PRE>
|
| <DL>
|
| <DD>A collection of all the forms of a document.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getAnchors()"><!-- --></A><H3>
|
| getAnchors</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/html/HTMLCollection.html">HTMLCollection</A> <B>getAnchors</B>()</PRE>
|
| <DL>
|
| <DD>A collection of all the anchor (<code>A</code>) elements in a document |
| with a value for the <code>name</code> attribute.Note. For reasons of |
| backwardscompatibility, the returned set of anchors only contains those |
| anchors created with the <code>name</code> attribute, not those created |
| with the <code>id</code> attribute.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getCookie()"><!-- --></A><H3>
|
| getCookie</H3>
|
| <PRE>
|
| public java.lang.String <B>getCookie</B>()</PRE>
|
| <DL>
|
| <DD>The cookies associated with this document. If there are none, thevalue is |
| an empty string. Otherwise, the value is a string: asemicolon-delimited |
| list of "name, value" pairs for all the cookiesassociated with the page. |
| For example, <code>name=value;expires=date</code>.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setCookie(java.lang.String)"><!-- --></A><H3>
|
| setCookie</H3>
|
| <PRE>
|
| public void <B>setCookie</B>(java.lang.String cookie)</PRE>
|
| <DL>
|
| <DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="open()"><!-- --></A><H3>
|
| open</H3>
|
| <PRE>
|
| public void <B>open</B>()</PRE>
|
| <DL>
|
| <DD>Note.This method and the ones following allow a user to add to or replace |
| the structuremodel of a document using strings of unparsed HTML. At the |
| time of writing alternate methods for providing similar functionality |
| for both HTML and XML documents were being considered. The following |
| methodsmay be deprecated at some point in the future in favor of a more |
| general-purpose mechanism. |
| <br>Open a document stream for writing. If a document exists in the |
| target, this method clears it.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="close()"><!-- --></A><H3>
|
| close</H3>
|
| <PRE>
|
| public void <B>close</B>()</PRE>
|
| <DL>
|
| <DD>Closes a document stream opened by <code>open()</code>and forces |
| rendering.<DD><DL>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="write(java.lang.String)"><!-- --></A><H3>
|
| write</H3>
|
| <PRE>
|
| public void <B>write</B>(java.lang.String text)</PRE>
|
| <DL>
|
| <DD>Write a string of text to a document stream opened by<code>open()</code>. |
| The text is parsed into the document's structuremodel.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>text</CODE> - The string to be parsed into some structure in the document |
| structuremodel.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="writeln(java.lang.String)"><!-- --></A><H3>
|
| writeln</H3>
|
| <PRE>
|
| public void <B>writeln</B>(java.lang.String text)</PRE>
|
| <DL>
|
| <DD>Write a string of text followed by a newline character to a document |
| stream opened by <code>open()</code>. The text is parsed into the |
| document's structure model.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>text</CODE> - The string to be parsed into some structure in the document |
| structuremodel.</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 elementId)</PRE>
|
| <DL>
|
| <DD>Returns the Element whose <code>id</code> is given by elementId. If no |
| such element exists, returns <code>null</code>. Behavior is not defined |
| if more than one element has this <code>id</code>.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../org/w3c/dom/Document.html#getElementById(java.lang.String)">getElementById</A> in interface <A HREF="../../../../org/w3c/dom/Document.html">Document</A><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.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getElementsByName(java.lang.String)"><!-- --></A><H3>
|
| getElementsByName</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/NodeList.html">NodeList</A> <B>getElementsByName</B>(java.lang.String elementName)</PRE>
|
| <DL>
|
| <DD>Returns the (possibly empty) collection of elements whose<code>name</code> |
| value is given by <code>elementName</code>.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>elementName</CODE> - The <code>name</code> attribute value for an element.<DT><B>Returns:</B><DD>The matching elements.</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> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HTMLDocument.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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">
|
| <A HREF="../../../../org/w3c/dom/html/HTMLDListElement.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/w3c/dom/html/HTMLElement.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>
|
| <A HREF="HTMLDocument.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|