I have a xml doc as below.
<data>
<employee>
<moretag> may or may not contain inner tag and attributes</moretag>
<somemore> may contain inner tags</somemore>
</employee>
</data>
i want op as below
<employee>
<moretag> may or may not contain inner tag and attributes</moretag>
<somemore> may contain inner tags</somemore>
</employee>
That is i want to strip off data tags.How can i do it?
You can use
jdomfor this: