This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 32481
    
214

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to get inner tag value in xml using groovy ?
 
It's not a secret anymore!