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
ROLE
public static final String ROLE
parse
public void parse(InputSource in,
ContentHandler consumer)
throws SAXException,
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.
SAXException
IOException
parse
public void parse(InputSource in,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
throws SAXException,
IOException
- Parse the
InputSource
and send
SAX events to the content handler and
the lexical handler.
SAXException
IOException
Copyright © 1997-2004 The Apache Software Foundation. All Rights Reserved.