org.apache.excalibur.xml.dom
Interface DOMParser

All Known Implementing Classes:
JaxpParser, XercesParser

public interface DOMParser

The parser can be used to parse any XML document given by a InputSource object. It can create a DOM from the parsed document.

Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:31 $
Author:
Avalon Development Team

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 org.w3c.dom.Document createDocument()
          Return a new Document.
 org.w3c.dom.Document parseDocument(org.xml.sax.InputSource in)
          Parse the InputSource and create a DOM out of it.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

parseDocument

public org.w3c.dom.Document parseDocument(org.xml.sax.InputSource in)
                                   throws org.xml.sax.SAXException,
                                          java.io.IOException
Parse the InputSource and create a DOM out of it.

Throws:
org.xml.sax.SAXException
java.io.IOException

createDocument

public org.w3c.dom.Document createDocument()
                                    throws org.xml.sax.SAXException
Return a new Document.

Throws:
org.xml.sax.SAXException


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.