com.palserv.XMidi
Interface Parser

All Known Implementing Classes:
JAXP, Xerces, XSilfide

public interface Parser

This is the interface to implement when you want to include an XML parser. The XSilfide class XSilfide class doc has details. Also the main package description.


Method Summary
 org.w3c.dom.Document getNewDoc()
          This method should be overridden to obtain a new Document from the external parser.
 org.w3c.dom.Document parseXML(java.lang.String fid)
          This method should be overridden to invoke whatever is needed to implement the parsing of an XML file by the external parser.
 

Method Detail

parseXML

public org.w3c.dom.Document parseXML(java.lang.String fid)
This method should be overridden to invoke whatever is needed to implement the parsing of an XML file by the external parser.
Parameters:
String - fid - meant to be a file name of an XML file, but could be an string. It is passed on the command line as the first non-option argument.
Returns:
com.w3c.dom.Document or a sub-class thereof.

getNewDoc

public org.w3c.dom.Document getNewDoc()
This method should be overridden to obtain a new Document from the external parser.
Returns:
com.w3c.dom.Document or a sub-class thereof.