All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xslp.xml.parsers.OpenXMLParser

xslp.xml.parsers.OpenXMLParser

public class OpenXMLParser
implements DOMPackage
Creates a DOM Parser for use with the OpenXML package

Author:
Keith Visco (kvisco@ziplink.net)

Constructor Index

 o OpenXMLParser()

Method Index

 o createDocument()
Creates a DOM Document using the DOM Package of this DOMReader
 o readDocument(Reader, String, PrintWriter)
Reads an XML Document from the given Reader
 o setDocumentType(Document, String)
Creates a DOM DocumentType using the DOM package of this DOMReader
 o setValidation(boolean)
Sets whether or not to Validate the Document

Constructors

 o OpenXMLParser
 public OpenXMLParser()

Methods

 o createDocument
 public Document createDocument()
Creates a DOM Document using the DOM Package of this DOMReader

Returns:
the new Document
 o setDocumentType
 public void setDocumentType(Document document,
                             String systemId)
Creates a DOM DocumentType using the DOM package of this DOMReader

Returns:
the new DocumentType
 o setValidation
 public void setValidation(boolean validate)
Sets whether or not to Validate the Document

Parameters:
validate - a boolean indicating whether or not to validate the Document
 o readDocument
 public Document readDocument(Reader reader,
                              String filename,
                              PrintWriter errorWriter)
Reads an XML Document from the given Reader

Parameters:
reader - the Reader for reading the XML stream
errorWriter - the PrintWriter to write all errors to

All Packages  Class Hierarchy  This Package  Previous  Next  Index