I have a String variable in java with xml tags as its value:
eg: String xml="<"name">"abcd"<"/name">""<"age">"22"<"/age">""<"gender"">"male"<"/gender">";
Now I need to get the value within the name tag from this variable and store the value in another string variable. How to go about this using java. Can anyone please help me out with this?
No comments:
Post a Comment