안드로이드 개발 질문/답변
(글 수 45,052)
<tag data="33" />
와 같이 endElement가 없을 경우
DefaultHandler 에서 어떻게 가지고 오나요????
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if(localName.equals("tag"))
tag = true;
Dataset.addCondition(atts.getValue("data"));
}
public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
}
public void characters(char ch[], int start, int length) {
if(this.tag) Dataset.addtag(new String(ch, start , length));
}
startt element 와 characters 에서 어떻게 처리 해주어야 위와 같은 형태의 xml을 가져 올수 있나요???



