public final class JRXmlUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Document |
createDocument(org.w3c.dom.Node sourceNode)
Creates a document having a node as root.
|
static javax.xml.parsers.DocumentBuilder |
createDocumentBuilder()
Creates a XML document builder.
|
static org.w3c.dom.Document |
parse(java.io.File file)
Parses a file into a document.
|
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource is)
Parses an input source into a document.
|
static org.w3c.dom.Document |
parse(java.io.InputStream is)
Parses an input stream into a XML document.
|
static org.w3c.dom.Document |
parse(java.lang.String uri)
Parses a document specified by an URI.
|
static org.w3c.dom.Document |
parse(java.net.URL url)
Parses an URL stream as a XML document.
|
public static org.w3c.dom.Document parse(org.xml.sax.InputSource is)
throws JRException
is - the input sourceJRExceptionpublic static org.w3c.dom.Document parse(java.lang.String uri)
throws JRException
uri - the URIJRExceptionpublic static org.w3c.dom.Document parse(java.io.File file)
throws JRException
file - the XML fileJRExceptionpublic static org.w3c.dom.Document parse(java.io.InputStream is)
throws JRException
is - the input streamJRExceptionpublic static org.w3c.dom.Document parse(java.net.URL url)
throws JRException
url - the URLJRExceptionpublic static javax.xml.parsers.DocumentBuilder createDocumentBuilder()
throws JRException
JRExceptionpublic static org.w3c.dom.Document createDocument(org.w3c.dom.Node sourceNode)
throws JRException
sourceNode - the nodeJRException© 2001-2010 Jaspersoft Corporation www.jaspersoft.com