All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xslp.xml.parsers.XML4J_2xParser

xslp.xml.parsers.XML4J_2xParser

public class XML4J_2xParser
implements DOMPackage
Creates a DOM Package for use with IBM's XML4J 2.x package

Author:
Keith Visco, Michel Casabianca

Constructor Index

 o XML4J_2xParser()
Instantiate parser

Method Index

 o createDocument()
Creates a DOM Document
 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 XML4J_2xParser
 public XML4J_2xParser()
Instantiate parser

Methods

 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 createDocument
 public Document createDocument()
Creates a DOM Document

Returns:
the new 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