xml.musicCatalog
Class MyJaxpDomParser

java.lang.Object
  extended by xml.musicCatalog.MyJaxpDomParser

public class MyJaxpDomParser
extends java.lang.Object


Constructor Summary
MyJaxpDomParser()
           
 
Method Summary
 void addItem(Item item)
          Adds a newly created Item object to the DOM Document
 Item createItem()
          Creates and returns a new Item object
 org.w3c.dom.Document dtdParse(java.lang.String uri, java.io.OutputStream os)
           
 org.w3c.dom.Document parse(java.lang.String uri, java.io.OutputStream os)
           
 void toHtml(java.io.File stylesheet)
          Writes a DOM Document as HTML
 void toXml()
          Writes a DOM Document as XML
 org.w3c.dom.Document xsdParse(java.lang.String uri, java.io.OutputStream os)
          Parses an XML Document with XMLSchema validation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyJaxpDomParser

public MyJaxpDomParser()
Method Detail

parse

public org.w3c.dom.Document parse(java.lang.String uri,
                                  java.io.OutputStream os)
                           throws java.lang.Exception
Throws:
java.lang.Exception

dtdParse

public org.w3c.dom.Document dtdParse(java.lang.String uri,
                                     java.io.OutputStream os)
                              throws java.lang.Exception
Throws:
java.lang.Exception

xsdParse

public org.w3c.dom.Document xsdParse(java.lang.String uri,
                                     java.io.OutputStream os)
                              throws java.lang.Exception
Parses an XML Document with XMLSchema validation.

Returns:
the DOM Document
Throws:
java.lang.Exception

createItem

public Item createItem()
Creates and returns a new Item object

Returns:
the new Item

addItem

public void addItem(Item item)
             throws java.lang.Exception
Adds a newly created Item object to the DOM Document

Throws:
java.lang.Exception

toHtml

public void toHtml(java.io.File stylesheet)
            throws java.lang.Exception
Writes a DOM Document as HTML

Throws:
java.lang.Exception

toXml

public void toXml()
           throws java.lang.Exception
Writes a DOM Document as XML

Throws:
java.lang.Exception