org.xbrlapi.utilities
Class XMLDOMBuilder
java.lang.Object
org.xbrlapi.utilities.XMLDOMBuilder
public class XMLDOMBuilder
- extends Object
Utility methods for constructing XML DOM objects.
- Author:
- Geoffrey Shuetrim (geoff@galexy.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLDOMBuilder
public XMLDOMBuilder()
throws XBRLException
- Throws:
XBRLException
newDocument
public Document newDocument()
- Create an XML DOM document object that will contain the fragment content.
The DOM is always namespace aware and non-validating
newDocument
public Document newDocument(InputStream inputStream)
throws XBRLException
- Parameters:
inputStream - The input stream to parse.
- Returns:
- An XML DOM object for the given input stream.
- Throws:
XBRLException - if an IO or SAX exception occurs.
newDocument
public Document newDocument(URI uri)
throws XBRLException
- Parameters:
uri - The URI of a document to parse into a DOM object.
- Returns:
- An XML DOM object for the given URI.
- Throws:
XBRLException - if the URI corresponds to a malformed URL.
newDocument
public Document newDocument(String xml)
throws XBRLException
- Parameters:
xml - is the XML in its string representation.
- Returns:
- The DOM document corresponding to the supplied XML.
- Throws:
XBRLException - if problems occur constructing the DOM.