Parsing xml data in java

argentlo

New Member
i have one requirement to get the data from the xml.String res;the data will be in the string res as follows.\[code\]<?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>\[/code\]i have to get the id and the first-name and last-name from this data and has to be stored in the variables id,first-name,last-namehow to access the xml to get those details.
 
Back
Top