| |
|
| java.lang.Object net.xoetrope.xml.XmlParserFactory
XmlParserFactory | public class XmlParserFactory (Code) | | A basic factory for setting XML parsers and createing new elements
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 1.10 $
License: see License.txt
|
XmlParserFactory | public XmlParserFactory()(Code) | | |
createXmlElement | public XmlElement createXmlElement(String name)(Code) | | Create a new XML element iwth the specified name
Parameters: name - the name of the element the new element |
parse | public XmlElement parse(Reader input, String schemaSource)(Code) | | Parse the input stream using a schema. The default NanoXml parser will
not validate and so anoth JAXP conformant parser must be setup.
Parameters: input - the input stream Parameters: schemaSource - the schmea against which to validate. |
registerXmlClass | public void registerXmlClass(Class clazz)(Code) | | Register an xml element class. Any new elements will be instances of this class
Parameters: clazz - |
registerXmlParser | public void registerXmlParser(XmlParser parser)(Code) | | Register an XML parser
Parameters: parser - |
registerXmlWriter | public void registerXmlWriter(XmlWriter writer)(Code) | | Register an XML writer
Parameters: writer - |
|
|
|