XML parse
Posted: Mon Jun 01, 2015 2:05 pm
Hi,
my window based application one of field shows xml API response, so i captured as value and stored in a variable like $xmlresponse
$xmlresponse="<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kmsgresponse><result status='true'/><body><orderNo>38</orderNo><fileRef>39D0C6018AB1000090EA0002</fileRef></body></kmsgresponse>"
how to parse this xml variable into indivdual tag variable...
can i store this $xmlresponse value in to some xml file order.xml then use parsing or is it possible to take tags out from this variable $xmlresponse itself
Thanks in Advance
my window based application one of field shows xml API response, so i captured as value and stored in a variable like $xmlresponse
$xmlresponse="<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kmsgresponse><result status='true'/><body><orderNo>38</orderNo><fileRef>39D0C6018AB1000090EA0002</fileRef></body></kmsgresponse>"
how to parse this xml variable into indivdual tag variable...
can i store this $xmlresponse value in to some xml file order.xml then use parsing or is it possible to take tags out from this variable $xmlresponse itself
Thanks in Advance