org.xins.common.xml
Class ElementParser
java.lang.Object
org.xins.common.xml.ElementParser
- public class ElementParser
- extends Object
XML element parser. XML is parsed to produce Element
objects.
Note: This parser is
XML Namespaces-aware.
- Since:
- XINS 1.1.0
- Version:
- $Revision: 1.27 $ $Date: 2006/10/25 09:39:35 $
- Author:
- Anthony Goubard, Ernst de Haan
Constructor Summary |
ElementParser()
Constructs a new ElementParser . |
Method Summary |
Element |
parse(Reader in)
Parses content of a character stream to create an XML
Element object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementParser
public ElementParser()
- Constructs a new
ElementParser
.
parse
public Element parse(Reader in)
throws IllegalArgumentException,
IOException,
ParseException
- Parses content of a character stream to create an XML
Element
object.
- Parameters:
in
- the character stream that is supposed to contain XML to be parsed,
not null
.
- Returns:
- the parsed result, not
null
.
- Throws:
IllegalArgumentException
- if in == null
.
IOException
- if there is an I/O error.
ParseException
- if the content of the character stream is not considered to be valid
XML.
See http://www.xins.org/.