2
Answers

get all nodes from XML file

darma teja

darma teja

8y
248
1
Hi All,
 
How to get all nodes from the following XML file?
 
Here is my sample XML file:
 
<?xml version="1.0" encoding="utf-8"?>
<xliff blabla />
<node1><test1></test1><test2></test2></node1>
<node1>
   <body>
      <test1><test2></test2></test1>
      <test3></test3>
   </body>
</node1>
</xliff>
 
I need all the tags including all text between <body> tag: 
Here is the output:
 
<test1><test2></test2></test1>
<test3></test3>
 
Advance thanks,
Darma 
 
 
 
 
Answers (2)