Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
XML Class Reference

Static Public Member Functions

static DocumentBuilder getParser () throws SAXException
 
static synchronized Document getDocumentFromInputStream (InputStream is) throws SAXException
 
static synchronized Document getDocumentFromString (String xmlStr) throws SAXException
 

Detailed Description

Generic class for parsing and processing XML Note that if this class is used in conjunction with an Applet, A DocumentBuilderFactory needs to be supplied with the DocumentBuilderFactory

Author
Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Definition at line 31 of file XML.java.

Member Function Documentation

static synchronized Document getDocumentFromInputStream ( InputStream  is) throws SAXException
inlinestatic

Returns a dom Document from a input stream to an xml file

Parameters
isthe input stream
Returns
The Document from the parsed InputStream
Exceptions
Exceptionis thrown if there is an error parsing the InputStream

Definition at line 65 of file XML.java.

static synchronized Document getDocumentFromString ( String  xmlStr) throws SAXException
inlinestatic

Parses a XML string and returns a Document from that XML string

Parameters
xmlStrthe xml string
Returns
The Document from the parsed XML string
Exceptions
Exceptionis thrown if there is an error parsing the string

Definition at line 94 of file XML.java.

static DocumentBuilder getParser ( ) throws SAXException
inlinestatic

Retrieves the XML DOM parser for parsing xml

Returns
the parser, or null if the parser factory is not configured correctly

Definition at line 44 of file XML.java.


The documentation for this class was generated from the following file: