Does anyone know what name space i have to import in order to be able to use a SAXParser? Ive been reading an old book on xml that came out in June 2000. The author has stuff that looks like its been changed since. For instance he shows two imports and creates a new instance of a Parser.
The import for the XMLReader seems to be correct but the SAXParser is in java.xml.parser. I would think the class SAXParser would be in the org.xml.sax namspace.Code:import org.xml.sax.XMLReader; import org.apache.xerces.parsers.SAXParser; XMLReader parser = new SAXParser( );![]()




Reply With Quote