|
SAX : Handler |
|
||||
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
public class MyHandler extends DefaultHandler {
public void startDocument (){
}
public void startElement(String namespaceURI, String simpleName,
String qualifiedName, Attributes atts){
atts.getValue("name");
for(int i=0; i<atts.getLength(); i++){
atts.getValue(i);
}
}
public void characters (char buf [], int offset, int len){
String s=new String(buf, offset, len);
}
public void endElement (String namespaceURI, String simpleName,
String qualifiedName){
}
public void endDocument (){
}
}
|
|
|
XML/Processeur 5/3/2004 |
79/86 |
|