darma teja

darma teja

  • NA
  • 496
  • 329.4k

get multiple texts between two tags

Aug 11 2016 12:40 PM
my string is like this:
<test id="Name_123456789" ba="1"><source>Ai891</source></test><test id="Name_12340506789" ba="2"><source>Ai853491</source></test> <test id="56712340506789" ba="2"><source>Ai853491</source></test>
I want to get the text between <test id="Name and </test> from my string:
final output should be in the List<string> like here:
1._123456789" ba="1"><source>Ai891</source>
2._12340506789" ba="2"><source>Ai853491</source></test>

Answers (1)