victoriaiannyD
New Member
I have the following input xml\[code\]<?xml version="1.0" encoding="UTF-8"?> <Parent> <ParentElement1>PE1</ParentElement1> <ParentElement2>PE2</ParentElement2> <Child> <ChildElement1>CE1</ChildElement1> <ChildElement2>CE2</ChildElement2> </Child> </Parent>\[/code\]I need to extract Child present inside Parent,Output must look like : \[code\]<Child> <ChildElement1>CE1</ChildElement1> <ChildElement2>CE2</ChildElement2> </Child>`\[/code\]I have tried with XPath expression \[code\]/Parent/Child\[/code\], but it selects text only CE1 & CE2.