wt.util.xml
Class NonValidatingXML4jAdapter

java.lang.Object
  extended bywt.util.xml.XMLParser
      extended bywt.util.xml.NonValidatingXML4jAdapter
All Implemented Interfaces:
Serializable

public class NonValidatingXML4jAdapter
extends XMLParser
implements Serializable

Wraps IBM's XML4j (XML for Java) parser. Inherits final methods from XMLParser which allow optional removal of empty or whitespace Text nodes from the parsed DOM.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
NonValidatingXML4jAdapter()
           
 
Method Summary
 Document createDOMDocument(File file)
          Deprecated. Replaced by: createDOMDocument(InputStream)
 Document createDOMDocument(InputStream is)
          Uses IBM's XML4j to parse XML to yield a DOM Document.
 Document createDOMDocument(URL url)
          Deprecated. Replaced by: createDOMDocument(InputStream)
static NonValidatingXML4jAdapter newNonValidatingXML4jAdapter()
          

Supported API: false
 
Methods inherited from class wt.util.xml.XMLParser
createDOMDocument, createDOMDocument, createDOMDocument, newXMLParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

NonValidatingXML4jAdapter

public NonValidatingXML4jAdapter()
Method Detail

newNonValidatingXML4jAdapter

public static NonValidatingXML4jAdapter newNonValidatingXML4jAdapter()
                                                              throws XMLMechanismException


Supported API: false

Returns:
NonValidatingXML4jAdapter
Throws:
XMLMechanismException

createDOMDocument

public Document createDOMDocument(File file)
                           throws XMLMechanismException
Deprecated. Replaced by: createDOMDocument(InputStream)

Uses IBM's XML4j to parse XML to yield a DOM Document.

Supported API: false

Specified by:
createDOMDocument in class XMLParser
Parameters:
file -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public Document createDOMDocument(URL url)
                           throws XMLMechanismException
Deprecated. Replaced by: createDOMDocument(InputStream)

Uses IBM's XML4j to parse XML to yield a DOM Document.

Supported API: false

Specified by:
createDOMDocument in class XMLParser
Parameters:
url -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public Document createDOMDocument(InputStream is)
                           throws XMLMechanismException
Uses IBM's XML4j to parse XML to yield a DOM Document. Takes an InputStream with the XML to parse.

Supported API: false

Specified by:
createDOMDocument in class XMLParser
Parameters:
is -
Returns:
Document
Throws:
XMLMechanismException