안녕하세요. <div>공공데이터 포털에서 공공 api를 사용하여 앱을 만들려고하고있습니다.</div> <div>그런데 xml을 읽어오는 과정에서 문제가있습니다..</div> <div>일단 xml형식을 보여드리면</div> <div><pre style="white-space:pre-wrap;"><?xml version="1.0" encoding="UTF-8"?> <list> <com.google.gson.internal.LinkedTreeMap resolves-to="linked-hash-map"> <entry> <string>위도</string> <string>37.3395566</string> </entry> <entry> <string>병원명</string> <string>강원동물병원</string> </entry> <entry> <string>경도</string> <string>127.9563269</string> </entry> <entry> <string>소재지도로명주소</string> <string>강원도 원주시 치악로 1758(개운동)</string> </entry> <entry> <string>소재지우편번호</string> <null /> </entry> <entry> <string>_id</string> <double>2.0</double> </entry> <entry> <string>연락처</string> <string>033-742-7494</string> </entry> <entry> <string>소재지지번주소</string> <null /> </entry> </com.google.gson.internal.LinkedTreeMap></pre><pre style="white-space:pre-wrap;"><br></pre><pre style="white-space:pre-wrap;">이러한 형식입니다.. 여기서 제가 이해가 안되는게.. xml형식에서 모든 정보의 tag가 entry로 되어있는데요</pre><pre style="white-space:pre-wrap;">그러면 도대체 어떠한 기준으로 데이터를 뽑아와야되는지 이해가되지않습니다..ㅠㅠ</pre><pre style="white-space:pre-wrap;">그 부분이 이해가 가지않으니까.. 인터넷에 rest형식의 xml 파싱 예제를 사용해보려고해도 잘 이해가안되고 ..</pre><pre style="white-space:pre-wrap;">차라리 tagname이 예를들어 id, name 이런식으로 나오면 이해가 조금은 될텐데요 ㅠㅠ</pre><pre style="white-space:pre-wrap;">tagname이 따로 존재하지 않을때는 어떻게 파싱해야하나요 ...?</pre><pre style="white-space:pre-wrap;"><br></pre><pre style="white-space:pre-wrap;"><br></pre><pre style="white-space:pre-wrap;"><br></pre><pre style="white-space:pre-wrap;"><br></pre><pre style="white-space:pre-wrap;"><br></pre></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.