📄 xmldocument.html
字号:
<TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#isWellFormed()">isWellFormed</A></B>()</CODE><BR> Indicates if the document is well formed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#newAdapterNode(net.sourceforge.jsxe.dom.AdapterNode, org.w3c.dom.Node)">newAdapterNode</A></B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> parent, org.w3c.dom.Node node)</CODE><BR> Factory method that creates a new AdapterNode object wrapping the Node object and AdapterNode object wrapping the Node's parent Node object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#newAdapterNode(net.sourceforge.jsxe.dom.AdapterNode, java.lang.String, java.lang.String, short)">newAdapterNode</A></B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> parent, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value, short type)</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="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#removeText(int, int)">removeText</A></B>(int offset, int length)</CODE><BR> Removes text at the specifed character offset.</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="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#removeXMLDocumentListener(net.sourceforge.jsxe.dom.XMLDocumentListener)">removeXMLDocumentListener</A></B>(<A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocumentListener.html" title="interface in net.sourceforge.jsxe.dom">XMLDocumentListener</A> listener)</CODE><BR> Unregisters a change listener from this 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="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#serialize(java.io.OutputStream)">serialize</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A> out)</CODE><BR> Writes the XML document to the output stream specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#serializeNodeToString(net.sourceforge.jsxe.dom.AdapterNode)">serializeNodeToString</A></B>(<A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> node)</CODE><BR> Serializes a child node to a string using the properties specified in this XMLDocument object.</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="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#setEntityResolver(org.xml.sax.EntityResolver)">setEntityResolver</A></B>(org.xml.sax.EntityResolver resolver)</CODE><BR> Sets the EntityResolver object that is used when resolving external entities.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/sourceforge/jsxe/dom/XMLDocument.html#setProperty(java.lang.String, java.lang.String)">setProperty</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</CODE><BR> Sets a property of the XMLDocument</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="ENCODING"><!-- --></A><H3>ENCODING</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>ENCODING</B></PRE><DL><DD>The property key for the encoding of this XML document<P><DL></DL></DL><HR><A NAME="WS_IN_ELEMENT_CONTENT"><!-- --></A><H3>WS_IN_ELEMENT_CONTENT</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>WS_IN_ELEMENT_CONTENT</B></PRE><DL><DD>The property key for the boolean property specifying if whitespace is allowed in element content.<P><DL></DL></DL><HR><A NAME="FORMAT_XML"><!-- --></A><H3>FORMAT_XML</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>FORMAT_XML</B></PRE><DL><DD>The property key for the boolean property specifying that the XML text should be formatted to look pleasing to the eye.<P><DL></DL></DL><HR><A NAME="INDENT"><!-- --></A><H3>INDENT</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>INDENT</B></PRE><DL><DD>The property key for the property defining the size of a tab when the document is displayed as text or otherwise.<P><DL></DL></DL><HR><A NAME="IS_USING_SOFT_TABS"><!-- --></A><H3>IS_USING_SOFT_TABS</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>IS_USING_SOFT_TABS</B></PRE><DL><DD>The property key for the property defining whether to serialize using soft tabs (tabs replaced by spaces). Has a value of "true" if using soft tabs.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="checkWellFormedness()"><!-- --></A><H3>checkWellFormedness</H3><PRE>public boolean <B>checkWellFormedness</B>() throws org.xml.sax.SAXParseException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Checks the wellformedness of the document and throws appropriate exceptions based on the errors encountered during parsing.<P><DD><DL><DT><B>Returns:</B><DD>true if the document is well formed.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXParseException</CODE> - if there was a SAX error when parsing.<DD><CODE>org.xml.sax.SAXException</CODE> - if there was a problem with the SAX parser.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - if the parser is not configured properly<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if there was a problem reading the document</DL></DD></DL><HR><A NAME="setProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>setProperty</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>setProperty</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Sets a property of the XMLDocument<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to the property<DD><CODE>value</CODE> - the value of the property<DT><B>Returns:</B><DD>the old value of the property</DL></DD></DL><HR><A NAME="getProperties()"><!-- --></A><H3>getProperties</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> <B>getProperties</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getProperty(java.lang.String)"><!-- --></A><H3>getProperty</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getProperty</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key)</PRE><DL><DD>Gets a property for the key given.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to the properties list<DT><B>Returns:</B><DD>the value of the property for the given key.</DL></DD></DL><HR><A NAME="getProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>getProperty</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getProperty</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultValue)</PRE><DL><DD>Gets a property for the key given or returns the default value if there is no property for the given key.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to the properties list<DD><CODE>defaultValue</CODE> - the default value for the property requested<DT><B>Returns:</B><DD>the value of the property for the given key.</DL></DD></DL><HR><A NAME="getRootElementNode()"><!-- --></A><H3>getRootElementNode</H3><PRE>public <A HREF="../../../../net/sourceforge/jsxe/dom/AdapterNode.html" title="class in net.sourceforge.jsxe.dom">AdapterNode</A> <B>getRootElementNode</B>()</PRE><DL><DD><DL></DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -