I have one requirement to get data from xml.
String res;
the data will be in the res line as follows.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<id>QZhx_w1eEJ</id>
<first-name>pratap</first-name>
<last-name>murukutla</last-name>
</person>
I need to get the identifier and name and surname from this data and should be stored in variable names, first name, first name,
how to access xml to get this information.
source
share