darma teja

darma teja

  • NA
  • 496
  • 337.3k

get all nodes from XML file

Aug 10 2016 11:13 AM
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)