http://uicoop.ac.kr/dining/food.php

제가 만들려고하는 곳의 정보입니다.

보시면 알겠지만 칼로리와 메뉴이름과 가격등을 정보에 올려두고 있습니다.

제가 만든 것의 일부는

        public void startElement(String namespaceURI, String localName,
                String qName, Attributes atts) throws SAXException {
        if (localName.equals("MenuInfo")) {
                this.in_MenuInfo = true;
        }else if (localName.equals("Menu")) {
                this.in_Menu = true;
        }else if (localName.equals("Date")) {
                this.in_Date = true;
        }else if (localName.equals("items")) {
            this.in_items = true;
        }else if (localName.equals("Time")) {
            this.in_Time = true;
        }else if (localName.equals("Name")) {
            this.in_Name = true;
     }else if (localName.equals("Price")) {
         this.in_Price = true;
     }else if (localName.equals("Kcal")) {
      String attrValue = atts.getValue("");
            myParsedExampleDataSet.setExtractedInt(attrValue);
         this.in_Kcal = true;
        }else if (localName.equals("Native")) {
                // Extract an Attribute
         }
        }

이런식으로 해서 실험적으로 Kcal 로리일때 가진 값을 입력시켜서 출력하게 했습니다.

이때 getValue 안의 값을 dddd 이런식으로 넣을 경우 매우 잘 됩니다.

하지만 파싱을 시키면 null 값이 출력됩니다.

원본은 매우 잘 작동되고 파싱도 잘됩니다.

출처는 http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html 이 사이트고요

혹시 저처럼 파싱 초보분들은 보시면 상당히 좋은 자료를 많이 얻을 수 있는 것같습니다.

----------------------------------------------------------------------------------------

<!CDATA[내용]> 일때 파싱을 제외시켜버린다고 들었습니다. 이 문제때문에 제가 파싱할때 null 값이 출력되는 겁니까?

아니면 제가 저것의 길이가 상당히 중복되어서 반복되는데 이 문제때문에 null 값이 출력되는 것입니까?

(제가 아직 데이터를 가공해서 listview로 만드는 작업을 못했습니다.)


그리고 혹시나; 저 데이터를 가공해서 listview로 만드는 간단한 힌트라도 던져주시면 상당히 감사하겠습니다.