aspose file tools*
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
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: 30916
    
158

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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 ?