All Packages Class Hierarchy This Package Previous Next Index
Class xslp.xml.parsers.XML4J_1xParser
xslp.xml.parsers.XML4J_1xParser
- public class XML4J_1xParser
- implements DOMPackage
Creates a DOM Package for use with IBM's XML4J 1.x package
- Author:
- Keith Visco
-
XML4J_1xParser()
- Creates a new XML4J_1xParser
-
createDocument()
- Creates a DOM Document
-
readDocument(Reader, String, PrintWriter)
- Reads an XML Document from the given Reader
-
setDocumentType(Document, String)
- Creates a DOM DocumentType using the DOM package of this DOMReader
-
setValidation(boolean)
- Sets whether or not to Validate the Document
XML4J_1xParser
public XML4J_1xParser()
- Creates a new XML4J_1xParser
createDocument
public Document createDocument()
- Creates a DOM Document
- Returns:
- the new Document
setDocumentType
public void setDocumentType(Document document,
String systemId)
- Creates a DOM DocumentType using the DOM package of this DOMReader
- Parameters:
- document - the document to create the DocumentType for
- systemId - the System ID of the DOCTYPE
- Returns:
- the new DocumentType
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
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