I am having an XML like the below:
<RootNode xmlns="ns1">
<Node xmlns="ns2">
<id>TestID</id>
</Node>
</RootNode>
I want to find the namespace of the element with name Node which is ns2. Can anyone please guide me how to do this using XPath? I am using Spring Boot and Apache Camel in my project.