I have XML data in one
string, and I want to extract data from its tag, how to do that in J2SE.
eg. My Data:
String str = "<tag1>data1</tag1><tag2>data2</tag2>"
how to read data1 and data2 from string.. ??
Note: I am using Google Health API to extract the profile and it is returning profile information in the form of XML.
Please suggest some way to read it....
Thanks and Regards
Amit