How to get repeated tag values from an xml in string format (Java)



I Have an xml in this format:



<Container1>
<Description>one</Description>
</Container1>
<Container2>
<Description>Two</Description>
</Container2>


Am reading this xml to a String.(There is a reason why I cant parse the xml directly) Now from that String I need to take the values of all Description tags to a List Any clues on how to do this?


No comments:

Post a Comment