xmldocument.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,537 行 · 第 1/4 页
HTML
1,537 行
<BR> returns the text between the opening and closing tag of a node (performs a <code>trim()</code> on the result).</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="../../../weka/core/xml/XMLDocument.html#getDocType()">getDocType</A></B>()</CODE><BR> returns the current DOCTYPE, can be <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getDocument()">getDocument</A></B>()</CODE><BR> returns the parsed DOM document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> javax.xml.parsers.DocumentBuilderFactory</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getFactory()">getFactory</A></B>()</CODE><BR> returns the DocumentBuilderFactory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Node</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getNode(java.lang.String)">getNode</A></B>(java.lang.String xpath)</CODE><BR> Returns the node represented by the XPath expression.</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="../../../weka/core/xml/XMLDocument.html#getRevision()">getRevision</A></B>()</CODE><BR> Returns the revision string.</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="../../../weka/core/xml/XMLDocument.html#getRootNode()">getRootNode</A></B>()</CODE><BR> returns the current root node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getValidating()">getValidating</A></B>()</CODE><BR> returns whether a validating parser is used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE><BR> for testing only.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#newDocument(java.lang.String, java.lang.String)">newDocument</A></B>(java.lang.String docType, java.lang.String rootNode)</CODE><BR> creates a new Document with the given information.</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="../../../weka/core/xml/XMLDocument.html#print()">print</A></B>()</CODE><BR> prints the current DOM document to standard out.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#read(java.io.File)">read</A></B>(java.io.File file)</CODE><BR> parses the given file and returns a DOM document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#read(java.io.InputStream)">read</A></B>(java.io.InputStream stream)</CODE><BR> parses the given stream and returns a DOM document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#read(java.io.Reader)">read</A></B>(java.io.Reader reader)</CODE><BR> parses the given reader and returns a DOM document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#read(java.lang.String)">read</A></B>(java.lang.String xml)</CODE><BR> parses the given XML string (can be XML or a filename) and returns a DOM 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="../../../weka/core/xml/XMLDocument.html#setDocType(java.lang.String)">setDocType</A></B>(java.lang.String docType)</CODE><BR> sets the DOCTYPE-String to use in the XML output.</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="../../../weka/core/xml/XMLDocument.html#setDocument(org.w3c.dom.Document)">setDocument</A></B>(org.w3c.dom.Document newDocument)</CODE><BR> sets the DOM document to use.</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="../../../weka/core/xml/XMLDocument.html#setRootNode(java.lang.String)">setRootNode</A></B>(java.lang.String rootNode)</CODE><BR> sets the root node to use in the XML output.</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="../../../weka/core/xml/XMLDocument.html#setValidating(boolean)">setValidating</A></B>(boolean validating)</CODE><BR> sets whether to use a validating parser or not.<br> Note: this does clear the current DOM 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="../../../weka/core/xml/XMLDocument.html#toString()">toString</A></B>()</CODE><BR> returns the current DOM document as XML-string.</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="../../../weka/core/xml/XMLDocument.html#write(java.io.File)">write</A></B>(java.io.File file)</CODE><BR> writes the current DOM document into the given file.</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="../../../weka/core/xml/XMLDocument.html#write(java.io.OutputStream)">write</A></B>(java.io.OutputStream stream)</CODE><BR> writes the current DOM document into the given stream.</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="../../../weka/core/xml/XMLDocument.html#write(java.lang.String)">write</A></B>(java.lang.String file)</CODE><BR> writes the current DOM document into the given file.</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="../../../weka/core/xml/XMLDocument.html#write(java.io.Writer)">write</A></B>(java.io.Writer writer)</CODE><BR> writes the current DOM document into the given writer.</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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="PI"><!-- --></A><H3>PI</H3><PRE>public static final java.lang.String <B>PI</B></PRE><DL><DD>the parsing instructions "<?xml version=\"1.0\" encoding=\"utf-8\"?>" (may not show up in Javadoc due to tags!).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.PI">Constant Field Values</A></DL></DL><HR><A NAME="DTD_DOCTYPE"><!-- --></A><H3>DTD_DOCTYPE</H3><PRE>public static final java.lang.String <B>DTD_DOCTYPE</B></PRE><DL><DD>the DocType definition.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_DOCTYPE">Constant Field Values</A></DL></DL><HR><A NAME="DTD_ELEMENT"><!-- --></A><H3>DTD_ELEMENT</H3><PRE>public static final java.lang.String <B>DTD_ELEMENT</B></PRE><DL><DD>the Element definition.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_ELEMENT">Constant Field Values</A></DL></DL><HR><A NAME="DTD_ATTLIST"><!-- --></A><H3>DTD_ATTLIST</H3><PRE>public static final java.lang.String <B>DTD_ATTLIST</B></PRE><DL><DD>the AttList definition.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_ATTLIST">Constant Field Values</A></DL></DL><HR><A NAME="DTD_OPTIONAL"><!-- --></A><H3>DTD_OPTIONAL</H3><PRE>public static final java.lang.String <B>DTD_OPTIONAL</B></PRE><DL><DD>the optional marker.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_OPTIONAL">Constant Field Values</A></DL></DL><HR><A NAME="DTD_AT_LEAST_ONE"><!-- --></A><H3>DTD_AT_LEAST_ONE</H3><PRE>public static final java.lang.String <B>DTD_AT_LEAST_ONE</B></PRE><DL><DD>the at least one marker.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_AT_LEAST_ONE">Constant Field Values</A></DL></DL><HR><A NAME="DTD_ZERO_OR_MORE"><!-- --></A><H3>DTD_ZERO_OR_MORE</H3><PRE>public static final java.lang.String <B>DTD_ZERO_OR_MORE</B></PRE><DL><DD>the zero or more marker.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_ZERO_OR_MORE">Constant Field Values</A></DL></DL><HR><A NAME="DTD_SEPARATOR"><!-- --></A><H3>DTD_SEPARATOR</H3><PRE>public static final java.lang.String <B>DTD_SEPARATOR</B></PRE><DL><DD>the option separator.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_SEPARATOR">Constant Field Values</A></DL></DL><HR><A NAME="DTD_CDATA"><!-- --></A><H3>DTD_CDATA</H3><PRE>public static final java.lang.String <B>DTD_CDATA</B></PRE><DL><DD>the CDATA placeholder.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_CDATA">Constant Field Values</A></DL></DL><HR><A NAME="DTD_ANY"><!-- --></A><H3>DTD_ANY</H3><PRE>public static final java.lang.String <B>DTD_ANY</B></PRE><DL><DD>the ANY placeholder.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_ANY">Constant Field Values</A></DL></DL><HR><A NAME="DTD_PCDATA"><!-- --></A><H3>DTD_PCDATA</H3><PRE>public static final java.lang.String <B>DTD_PCDATA</B></PRE><DL><DD>the #PCDATA placeholder.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_PCDATA">Constant Field Values</A></DL></DL><HR><A NAME="DTD_IMPLIED"><!-- --></A><H3>DTD_IMPLIED</H3><PRE>public static final java.lang.String <B>DTD_IMPLIED</B></PRE><DL><DD>the #IMPLIED placeholder.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_IMPLIED">Constant Field Values</A></DL></DL><HR><A NAME="DTD_REQUIRED"><!-- --></A><H3>DTD_REQUIRED</H3><PRE>public static final java.lang.String <B>DTD_REQUIRED</B></PRE><DL><DD>the #REQUIRED placeholder.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.DTD_REQUIRED">Constant Field Values</A></DL></DL><HR><A NAME="ATT_VERSION"><!-- --></A><H3>ATT_VERSION</H3><PRE>public static final java.lang.String <B>ATT_VERSION</B></PRE><DL><DD>the "version" attribute.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.ATT_VERSION">Constant Field Values</A></DL></DL><HR><A NAME="ATT_NAME"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?