org.apache.cocoon.parser
Interface Parser

All Known Implementing Classes:
IBMXMLParser, OpenXMLParser, SunXMLParser

public abstract interface Parser

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

Version:
$Revision: 1.2 $ $Date: 1999/03/22 23:50:07 $
Author:
Stefano Mazzocchi

Method Summary
 org.w3c.dom.Document createEmptyDocument()
          Creates an empty DOM tree.
 org.w3c.dom.Document parse(java.io.Reader in)
          Creates a DOM tree parsing the given input stream.
 

Method Detail

parse

public org.w3c.dom.Document parse(java.io.Reader in)
                           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 (c) 1998 The Java Apache Project