0
http 요청에 대해 xml repsonse가 표시됩니다. 나는XML 응답 변수에 값을 할당하는 방법
String str = in.readLine();
변수 문자열로 저장하고 str
의 내용은 다음과 같습니다
<response>
<lastUpdate>2012-04-26 21:29:18</lastUpdate>
<state>tx</state>
<population>
<li>
<timeWindow>DAYS7</timeWindow>
<confidenceInterval>
<high>15</high>
<low>0</low>
</confidenceInterval>
<size>0</size>
</li>
</population>
</response>
나는 변수 tx
, DAYS7
을 할당 할. 어떻게해야합니까? 당신은 당신이 DefaultHandler
에서 ReadXMLFile
을 확장 할 수있는 몇 가지 과정의 일부로서이를 실행하는 경우
감사
사용중인 프로그래밍 언어를 알려 주시면 도움이 될 것입니다. – Filburt
안녕하세요 죄송합니다 Java를 사용하고 있습니다 – SUM
http://stackoverflow.com/questions/5947450/how-to-parse-this-xml-using-java –