1 import org.xml.sax.Attributes;
2 import org.xml.sax.SAXException;
3 import org.xml.sax.helpers.DefaultHandler;
5 public class ejercicioSax1 extends DefaultHandler{
7 public ejercicioSax1(){
12 public void startElement(String uri, String localName, String name,
13 Attributes attributes) throws SAXException {
14 if (localName.equals("cd")){
16 System.out.println(localName + ' ' + this.etiquetas);