Meaningless Drivel is fun!
The moose likes Groovy and the fly likes how to get inner tag value in xml using groovy ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "how to get inner tag value in xml using groovy ?" Watch "how to get inner tag value in xml using groovy ?" New topic
Author

how to get inner tag value in xml using groovy ?

Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
Hi All,

<?xml version="1.0" encoding="UTF-8"?>
<Config-matrix>

<input name="table_name" type="table" >
<column name="colname1" />
<column name="colname2"/>
<column name="colname3" />
<insert name="insert query"/>
<update name="update query"/>
</input>

</Config-matrix>

This is the xml file how to display column name attribute values i.e colname1,colname2,colname3.

Regards,
Nazeer
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32635
    
215

It looks like XML Slurper as described here solves this problem as well.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get inner tag value in xml using groovy ?
 
It's not a secret anymore!