|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xml.jaxp.JaxpXmlParser
public class JaxpXmlParser
A wrapper for JAXP parsers
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 2.2 $
License: see License.txt
| Field Summary | |
|---|---|
static java.lang.String |
JAXP_SCHEMA_LANGUAGE
Constants used for JAXP 1.2 |
static java.lang.String |
JAXP_SCHEMA_SOURCE
|
static java.lang.String |
W3C_XML_SCHEMA
|
| Constructor Summary | |
|---|---|
JaxpXmlParser()
null ctor |
|
| Method Summary | |
|---|---|
XmlElement |
createXmlElement(java.lang.String name)
Create a basic XmlElement of the type registered in the XmlParserFactory |
XmlElement |
parse(java.io.Reader input)
Read the passed Reader object and parse its contents into an XmlElement structure of the type defined in the XmlParserFactory. |
XmlElement |
parse(java.io.Reader input,
java.lang.String schemaSource)
Read the passed Reader object and parse its contents into an XmlElement structure of the type defined in the XmlParserFactory. |
static void |
setErrorHandler(org.xml.sax.ErrorHandler eh)
Set the static ErrorHandler to report parsing errors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String JAXP_SCHEMA_LANGUAGE
public static final java.lang.String W3C_XML_SCHEMA
public static final java.lang.String JAXP_SCHEMA_SOURCE
| Constructor Detail |
|---|
public JaxpXmlParser()
| Method Detail |
|---|
public XmlElement createXmlElement(java.lang.String name)
createXmlElement in interface XmlParsername - The name of the new element
public XmlElement parse(java.io.Reader input)
parse in interface XmlParserinput - The reader from which the content of the XML structure will be
read
public XmlElement parse(java.io.Reader input,
java.lang.String schemaSource)
parse in interface XmlParserinput - The reader from which the content of the XML structure will be
readschemaSource - Location of the schema source which will be used to
validate the parsed XML
public static void setErrorHandler(org.xml.sax.ErrorHandler eh)
eh - The ErrorHandler to be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||