groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balachandran Sivakumar <benignb...@gmail.com>
Subject XmlSlurper and XML includes
Date Tue, 13 Oct 2015 16:44:45 GMT
Hi,

          Can someone please help me using  XmlSlurper with an xml document
that uses xml includes ? I have an xml that is  something like this

<root namespaces.....>
  <xi:include href="another.xml" parse="xml" xpointer="xpointer(//path)"/>
   <somenode../>
   <somenode2../>
</root>

And, another.xml has
<path>
  <subpath attr="value"/>
</path>

With XmlSlurper, I am able to access root.somenode.whatever. But I don't
know how to access the included xml's nodes and attributes. Can someone
please help me with this ? Thanks

-- 
Thank you
Balachandran Sivakumar

Mime
View raw message