org.apache.excalibur.xml.sax
Interface SAXParser
- All Known Implementing Classes:
- JaxpParser, JTidyHTMLParser, XercesParser
- public interface SAXParser
The parser can be used to parse any XML document given
by a InputSource
object.
It can either send XML events or create a DOM from
the parsed document.
- Version:
- CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:20 $
- Author:
- Avalon Development Team
Field Summary |
static java.lang.String |
ROLE
|
Method Summary |
void |
parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
Parse the InputSource and send
SAX events to the consumer. |
void |
parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
Parse the InputSource and send
SAX events to the content handler and
the lexical handler. |
ROLE
public static final java.lang.String ROLE
parse
public void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
throws org.xml.sax.SAXException,
java.io.IOException
- Parse the
InputSource
and send
SAX events to the consumer.
Attention: the consumer can implement the
LexicalHandler
as well.
The parse should take care of this.
- Throws:
org.xml.sax.SAXException
java.io.IOException
parse
public void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
throws org.xml.sax.SAXException,
java.io.IOException
- Parse the
InputSource
and send
SAX events to the content handler and
the lexical handler.
- Throws:
org.xml.sax.SAXException
java.io.IOException
Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.