import javax.xml.parsers.*;
import org.xml.sax.XMLReader;
import java.io.File;
class SAXOutline {
static public void main(String[] args)
throws Exception {
// get the factory
SAXParserFactory factory =
SAXParserFactory.newInstance();
// default properties
// get a parser
SAXParser saxParser =
factory.newSAXParser();
// get a reader
XMLReader xmlReader =
saxParser.getXMLReader();
// default events handler
// process the input
xmlReader.parse
( new File(args[0]).toURL().toString() );
} }