xmlutil.html

来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 1,144 行 · 第 1/5 页

HTML
1,144
字号
<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></CODE></DL></DD></DL><HR><A NAME="selectAsString(org.w3c.dom.Node, java.lang.String, org.w3c.dom.Node)"><!-- --></A><H3>selectAsString</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>selectAsString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;node,                                    <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;xpath,                                    <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;namespaceNode)                             throws <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></CODE></DL></DD></DL><HR><A NAME="selectAsNodes(org.w3c.dom.Node, java.lang.String)"><!-- --></A><H3>selectAsNodes</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>[] <B>selectAsNodes</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;node,                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;xpath)                            throws <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></CODE></DL></DD></DL><HR><A NAME="selectAsNodes(org.w3c.dom.Node, java.lang.String, org.w3c.dom.Node)"><!-- --></A><H3>selectAsNodes</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>[] <B>selectAsNodes</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;node,                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;xpath,                                   <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;namespaceNode)                            throws <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></CODE></DL></DD></DL><HR><A NAME="select(org.w3c.dom.Node, java.lang.String, org.w3c.dom.Node)"><!-- --></A><H3>select</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathResult.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathResult</A> <B>select</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;contextNode,                                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;xpath,                                                   <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;namespaceNode)                                            throws <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathException.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathException</A></CODE></DL></DD></DL><HR><A NAME="convertToString(org.w3c.dom.xpath.XPathResult, boolean)"><!-- --></A><H3>convertToString</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>convertToString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathResult.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathResult</A>&nbsp;xpathResult,                                     boolean&nbsp;prettyPrint)</PRE><DL><DD>Convert an XPathResult object to String.<P><DD><DL></DL></DD></DL><HR><A NAME="convertToNodes(org.w3c.dom.xpath.XPathResult)"><!-- --></A><H3>convertToNodes</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>[] <B>convertToNodes</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/xpath.XPathResult.html" title="class or interface in org.w3c.dom">org.w3c.dom.xpath.XPathResult</A>&nbsp;xpathResult)</PRE><DL><DD>Convert an XPathResult to an array of Nodes.<P><DD><DL></DL></DD></DL><HR><A NAME="toString(org.w3c.dom.Node, boolean)"><!-- --></A><H3>toString</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A>&nbsp;node,                              boolean&nbsp;prettyPrint)</PRE><DL><DD>Convert a Node to a String.<P><DD><DL></DL></DD></DL><HR><A NAME="getXercesVersion()"><!-- --></A><H3>getXercesVersion</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getXercesVersion</B>()</PRE><DL><DD>Get the Xerces version being used.<P><DD><DL><DT><B>Returns:</B><DD>Xerces version being used</DL></DD></DL><HR><A NAME="getXercesVersionNumberString()"><!-- --></A><H3>getXercesVersionNumberString</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getXercesVersionNumberString</B>()</PRE><DL><DD>Get the number part of the Xerces Version string.<P><DD><DL><DT><B>Returns:</B><DD>number part of the Xerces Version string</DL></DD></DL><HR><A NAME="getXercesVersionNumbers()"><!-- --></A><H3>getXercesVersionNumbers</H3><PRE>public static int[] <B>getXercesVersionNumbers</B>()</PRE><DL><DD>Gets the Xerces version numbers as a three part array of ints where the first element is the major release number, the second is the minor release number, and the third is the patch number.<P><DD><DL><DT><B>Returns:</B><DD>Xerces version number as int array</DL></DD></DL><HR><A NAME="supportsValidation()"><!-- --></A><H3>supportsValidation</H3><PRE>public static boolean <B>supportsValidation</B>()</PRE><DL><DD>Returns whether the XML parser supports validation. <p>I could not get validation to work with Xerces 2.2 so I put in this check. If you want to test on an earlier version of Xerces simply define the above property:   "mondrian.xml.always.attempt.validation", to true.<P><DD><DL><DT><B>Returns:</B><DD>whether the XML parser supports validation</DL></DD></DL><HR><A NAME="validate(org.w3c.dom.Document, java.lang.String, org.xml.sax.EntityResolver)"><!-- --></A><H3>validate</H3><PRE>public static void <B>validate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A>&nbsp;doc,                            <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;schemaLocationPropertyValue,                            <A HREF="http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html" title="class or interface in org.xml.sax">EntityResolver</A>&nbsp;resolver)                     throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,                            <A HREF="http://java.sun.com/javase/6/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL></DD></DL><HR><A NAME="validate(java.lang.String, java.lang.String, org.xml.sax.EntityResolver)"><!-- --></A><H3>validate</H3><PRE>public static void <B>validate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;docStr,                            <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;schemaLocationPropertyValue,                            <A HREF="http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html" title="class or interface in org.xml.sax">EntityResolver</A>&nbsp;resolver)                     throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,                            <A HREF="http://java.sun.com/javase/6/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL></DD></DL><HR><A NAME="getNamespaceAttributeValue(org.w3c.dom.Document)"><!-- --></A><H3>getNamespaceAttributeValue</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNamespaceAttributeValue</B>(<A HREF="http://java.sun.com/javase/6/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A>&nbsp;doc)</PRE><DL><DD>This is used to get a Document's namespace attribute value.<P><DD><DL></DL></DD></DL><HR><A NAME="getTransformerFactory()"><!-- --></A><H3>getTransformerFactory</H3><PRE>public static <A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/transform/TransformerFactory.html" title="class or interfa

⌨️ 快捷键说明

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