import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
/**
* Printing only Character Content (too simple)
*/
public class Example extends DefaultHandler {
public void characters (char buf [], int offset, int length)
throws SAXException
{
System.out.print (new String (buf, offset, length));
}
}
|