XML response how to assign values to variables

annakitty

New Member
I get the xml repsonse for http request. I store it as a string variable\[code\]String str = in.readLine();\[/code\]And the contents of \[code\]str\[/code\] is:\[code\]<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>\[/code\]I want to assign \[code\]tx\[/code\], \[code\]DAYS7\[/code\] to variables. How do I do that?Thanks
 
Back
Top