XBRLAPI

A Java API for XBRL


org.xbrlapi.utilities
Class XMLDOMBuilder

java.lang.Object
  extended by org.xbrlapi.utilities.XMLDOMBuilder

public class XMLDOMBuilder
extends Object

Utility methods for constructing XML DOM objects.

Author:
Geoffrey Shuetrim (geoff@galexy.net)

Constructor Summary
XMLDOMBuilder()
           
 
Method Summary
 Document newDocument()
          Create an XML DOM document object that will contain the fragment content.
 Document newDocument(InputStream inputStream)
           
 Document newDocument(String xml)
           
 Document newDocument(URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDOMBuilder

public XMLDOMBuilder()
              throws XBRLException
Throws:
XBRLException
Method Detail

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.

Get Java XBRL API implementation at SourceForge.net.