⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmldocument.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getChildTags(org.w3c.dom.Node)">getChildTags</A></B>(org.w3c.dom.Node&nbsp;parent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns all non tag-children from the given node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getChildTags(org.w3c.dom.Node, java.lang.String)">getChildTags</A></B>(org.w3c.dom.Node&nbsp;parent,             java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns all non tag-children from the given node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getContent(org.w3c.dom.Element)">getContent</A></B>(org.w3c.dom.Element&nbsp;node)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getDocType()">getDocType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;org.w3c.dom.Document</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getDocument()">getDocument</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the parsed DOM document</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;javax.xml.parsers.DocumentBuilderFactory</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getFactory()">getFactory</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the DocumentBuilderFactory</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getRootNode()">getRootNode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the current root node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#getValidating()">getValidating</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for testing only.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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&nbsp;docType,            java.lang.String&nbsp;rootNode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#print()">print</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;file)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;stream)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;reader)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;xml)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#setDocType(java.lang.String)">setDocType</A></B>(java.lang.String&nbsp;docType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;newDocument)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the DOM document to use</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#setRootNode(java.lang.String)">setRootNode</A></B>(java.lang.String&nbsp;rootNode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#setValidating(boolean)">setValidating</A></B>(boolean&nbsp;validating)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#write(java.io.File)">write</A></B>(java.io.File&nbsp;file)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#write(java.io.OutputStream)">write</A></B>(java.io.OutputStream&nbsp;stream)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#write(java.lang.String)">write</A></B>(java.lang.String&nbsp;file)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/xml/XMLDocument.html#write(java.io.Writer)">write</A></B>(java.io.Writer&nbsp;writer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;writes the current DOM document into the given writer</TD></TR></TABLE>&nbsp;<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>&nbsp;<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 "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"  (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>

⌨️ 快捷键说明

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