com.palserv.XMidi
Class Xerces

java.lang.Object
  |
  +--com.palserv.XMidi.Xerces
All Implemented Interfaces:
Parser

public class Xerces
extends java.lang.Object
implements Parser

This class allows the Xerces XML parser to be used with the XMidi package. For more details see the XSilfide class

Author:
Peter Arthur Loeb

Constructor Summary
Xerces()
          The default constructor (which takes no arguments and does nothing) is necessary.
 
Method Summary
 org.w3c.dom.Document getNewDoc()
          This routine simply returns a DOM Document.
 org.w3c.dom.Document parseXML(java.lang.String fid)
          This is the conversion routine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xerces

public Xerces()
The default constructor (which takes no arguments and does nothing) is necessary. It is used by the XM class to load this class.
Method Detail

parseXML

public org.w3c.dom.Document parseXML(java.lang.String fid)
This is the conversion routine. It is invoked from the XM class to parse the XML file.
Specified by:
parseXML in interface Parser
Parameters:
String - fid - file id of XML file to parse.
Returns:
Document as in com.w3c.dom.Document or a sub-class.

getNewDoc

public org.w3c.dom.Document getNewDoc()
This routine simply returns a DOM Document.
Specified by:
getNewDoc in interface Parser
Returns:
Document as in com.w3c.dom.Document or a sub-class.