I am looking to get the inner xml as
String type from the XML file.
for e.g.
<xml version = "1.0">
<Root>
<Child1>abc</Child1>
<Child2>xyz</Child2>
<ChildN>bcd</ChildN>
</Root>
I am looking to get the inner xml of <Root> node as String like -
String s = "<Child1>abc</Child1>
<Child2>xyz</Child2>
<ChildN>bcd</ChildN>"
Is it possible to do it through JAX-B or should I get it through some XML parser. If the XML is a large file with around 300 <ChildN> nodes, would it impact the performance in case of parsing it.
Could you please help with the code snippet, if possible.
Thanks in advance.