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.
static synchronized Document getDocumentFromInputStream |
( |
InputStream |
is | ) |
throws SAXException |
|
inlinestatic |
Returns a dom Document
from a input stream to an xml file
- Parameters
-
- Returns
- The
Document
from the parsed InputStream
- Exceptions
-
Exception | is 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
-
- Returns
- The
Document
from the parsed XML string
- Exceptions
-
Exception | is 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:
- /Users/webmaster/Desktop/squiz_matrix/core/lib/asset_map/java/src/net/squiz/matrix/core/XML.java