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

📄 xmldocument.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</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>ATT_NAME</H3><PRE>public static final java.lang.String <B>ATT_NAME</B></PRE><DL><DD>the "name" attribute<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.ATT_NAME">Constant Field Values</A></DL></DL><HR><A NAME="VAL_YES"><!-- --></A><H3>VAL_YES</H3><PRE>public static final java.lang.String <B>VAL_YES</B></PRE><DL><DD>the value "yes"<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.VAL_YES">Constant Field Values</A></DL></DL><HR><A NAME="VAL_NO"><!-- --></A><H3>VAL_NO</H3><PRE>public static final java.lang.String <B>VAL_NO</B></PRE><DL><DD>the value "no"<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLDocument.VAL_NO">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="XMLDocument()"><!-- --></A><H3>XMLDocument</H3><PRE>public <B>XMLDocument</B>()            throws java.lang.Exception</PRE><DL><DD>initializes the factory with non-validating parser<P><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the construction fails</DL></DL><HR><A NAME="XMLDocument(java.lang.String)"><!-- --></A><H3>XMLDocument</H3><PRE>public <B>XMLDocument</B>(java.lang.String&nbsp;xml)            throws java.lang.Exception</PRE><DL><DD>Creates a new instance of XMLDocument<P><DL><DT><B>Parameters:</B><DD><CODE>xml</CODE> - the xml to parse (if "<?xml" is not found then it is considered a file)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the construction of the DocumentBuilder fails<DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLDocument.html#setValidating(boolean)"><CODE>setValidating(boolean)</CODE></A></DL></DL><HR><A NAME="XMLDocument(java.io.File)"><!-- --></A><H3>XMLDocument</H3><PRE>public <B>XMLDocument</B>(java.io.File&nbsp;file)            throws java.lang.Exception</PRE><DL><DD>Creates a new instance of XMLDocument<P><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the XML file to parse<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the construction of the DocumentBuilder fails<DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLDocument.html#setValidating(boolean)"><CODE>setValidating(boolean)</CODE></A></DL></DL><HR><A NAME="XMLDocument(java.io.InputStream)"><!-- --></A><H3>XMLDocument</H3><PRE>public <B>XMLDocument</B>(java.io.InputStream&nbsp;stream)            throws java.lang.Exception</PRE><DL><DD>Creates a new instance of XMLDocument<P><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - the XML stream to parse<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the construction of the DocumentBuilder fails<DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLDocument.html#setValidating(boolean)"><CODE>setValidating(boolean)</CODE></A></DL></DL><HR><A NAME="XMLDocument(java.io.Reader)"><!-- --></A><H3>XMLDocument</H3><PRE>public <B>XMLDocument</B>(java.io.Reader&nbsp;reader)            throws java.lang.Exception</PRE><DL><DD>Creates a new instance of XMLDocument<P><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the XML reader to parse<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the construction of the DocumentBuilder fails<DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLDocument.html#setValidating(boolean)"><CODE>setValidating(boolean)</CODE></A></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getFactory()"><!-- --></A><H3>getFactory</H3><PRE>public javax.xml.parsers.DocumentBuilderFactory <B>getFactory</B>()</PRE><DL><DD>returns the DocumentBuilderFactory<P><DD><DL><DT><B>Returns:</B><DD>the DocumentBuilderFactory</DL></DD></DL><HR><A NAME="getBuilder()"><!-- --></A><H3>getBuilder</H3><PRE>public javax.xml.parsers.DocumentBuilder <B>getBuilder</B>()</PRE><DL><DD>returns the DocumentBuilder<P><DD><DL><DT><B>Returns:</B><DD>the DocumentBuilder</DL></DD></DL><HR><A NAME="getValidating()"><!-- --></A><H3>getValidating</H3><PRE>public boolean <B>getValidating</B>()</PRE><DL><DD>returns whether a validating parser is used<P><DD><DL><DT><B>Returns:</B><DD>whether a validating parser is used</DL></DD></DL><HR><A NAME="setValidating(boolean)"><!-- --></A><H3>setValidating</H3><PRE>public void <B>setValidating</B>(boolean&nbsp;validating)                   throws java.lang.Exception</PRE><DL><DD>sets whether to use a validating parser or not.<br> Note: this does clear the current DOM document!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>validating</CODE> - whether to use a validating parser<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the instantiating of the DocumentBuilder fails</DL></DD></DL><HR><A NAME="getDocument()"><!-- --></A><H3>getDocument</H3><PRE>public org.w3c.dom.Document <B>getDocument</B>()</PRE><DL><DD>returns the parsed DOM document<P><DD><DL><DT><B>Returns:</B><DD>the parsed DOM document</DL></DD></DL><HR><A NAME="setDocument(org.w3c.dom.Document)"><!-- --></A><H3>setDocument</H3><PRE>public void <B>setDocument</B>(org.w3c.dom.Document&nbsp;newDocument)</PRE><DL><DD>sets the DOM document to use<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newDocument</CODE> - the DOM document to use</DL></DD></DL><HR><A NAME="setDocType(java.lang.String)"><!-- --></A><H3>setDocType</H3><PRE>public void <B>setDocType</B>(java.lang.String&nbsp;docType)</PRE><DL><DD>sets the DOCTYPE-String to use in the XML output. Performs NO checking! if it is <code>null</code> the DOCTYPE is omitted.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>docType</CODE> - the DOCTYPE definition to use in XML output</DL></DD></DL><HR><A NAME="getDocType()"><!-- --></A><H3>getDocType</H3><PRE>public java.lang.String <B>getDocType</B>()</PRE><DL><DD>returns the current DOCTYPE, can be <code>null</code><P><DD><DL><DT><B>Returns:</B><DD>the current DOCTYPE definition, can be <code>null</code></DL></DD></DL><HR><A NAME="setRootNode(java.lang.String)"><!-- --></A><H3>setRootNode</H3><PRE>public void <B>setRootNode</B>(java.lang.String&nbsp;rootNode)</PRE><DL><DD>sets the root node to use in the XML output. Performs NO checking with DOCTYPE!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rootNode</CODE> - the root node to use in the XML output</DL></DD></DL><HR><A NAME="getRootNode()"><!-- --></A><H3>getRootNode</H3><PRE>public java.lang.String <B>getRootNode</B>()</PRE><DL><DD>returns the current root node<P><DD><DL>

⌨️ 快捷键说明

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