org.apache.cocoon.parser
Interface Parser

All Known Implementing Classes:
IBMXMLParser, OracleXMLParser, OpenXMLParser, SunXMLParser

public interface Parser
extends Actor

This class must be implemented by the services that implement XML parsing capabilites in order to be used by Cocoon.

Version:
$Revision: 1.4 $ $Date: 1999/10/21 21:30:13 $
Author:
Stefano Mazzocchi

Method Summary
 org.w3c.dom.Document createEmptyDocument()
          Creates an empty DOM tree.
 org.w3c.dom.Document parse(java.io.Reader in, java.lang.String sourceURI)
          Creates a DOM tree parsing the given input stream.
 
Methods inherited from interface org.apache.cocoon.framework.Actor
init
 

Method Detail

parse

public org.w3c.dom.Document parse(java.io.Reader in,
                                  java.lang.String sourceURI)
                           throws java.io.IOException
Creates a DOM tree parsing the given input stream.

createEmptyDocument

public org.w3c.dom.Document createEmptyDocument()
Creates an empty DOM tree.


Copyright 1999 Java Apache Project. All Rights Reserved.