public class Xml extends XmlParser
To parse a file into a DOM Document use
Document doc = new Xml().parseDocument("foo.xml");
To parse a string into a DOM Document use
String xml = "<top>small test</top>";
Document doc = new Xml().parseDocumentString(xml);
To parse a file using the SAX API use
Xml xml = new Xml();
xml.setContentHandler(myContentHandler);
xml.parse("foo.xml");
XmlParser.LocatorImpl
Constructor and Description |
---|
Xml()
Create a new strict XML parser
|
Modifier and Type | Method and Description |
---|---|
static Xml |
create()
Creates an Xml parser.
|
static CauchoDocument |
createDocument()
Create a new DOM document
|
static org.w3c.dom.DOMImplementation |
createDOMImplementation()
Create a new DOM implementation
|
void |
free()
Frees an Xml parser.
|
void |
init()
Initialize the parser.
|
close, fillBuffer, getColumnNumber, getFilename, getLine, getLineNumber, getPublicId, getSystemId, read, readByte, setLine, setReader, unread, unreadByte
getContentHandler, getDefaultEncoding, getDTDHandler, getEntitiesAsText, getEntityResolver, getErrorHandler, getFeature, getProperty, getSkipComments, isCoalescing, isNamespaceAware, isNamespacePrefixes, isSAXNamespaces, isValidating, openSource, openStream, openStream, openStream, openTopStream, parse, parse, parse, parse, parse, parseDocument, parseDocument, parseDocument, parseDocument, parseDocument, parseDocument, parseDocumentString, parseImpl, parseString, setCoalescing, setConfig, setContentHandler, setDefaultEncoding, setDocumentHandler, setDTDHandler, setEntitiesAsText, setEntityResolver, setErrorHandler, setExpandEntities, setFeature, setLexicalHandler, setLocale, setNamespaceAware, setNamespacePrefixes, setOwner, setProperty, setSAXNamespaces, setSkipComments, setSkipWhitespace, setValidating
public void init()
public static Xml create()
public static CauchoDocument createDocument()
public static org.w3c.dom.DOMImplementation createDOMImplementation()