Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
How to get attribute names of XML tags in groovy?
Joined: Feb 26, 2012
Sep 23, 2013 06:31:40
I need one help. Please see the below xml file content
<student name="###" id="###" college="###"></student>
In the above xml, I need to display attribute student tag names(name,id and college).
How can i do this in Groovy.
Please help me.
Joined: Sep 08, 2007
Sep 24, 2013 01:00:43
I remember writing a blog post on parsing XML using XmlSlurper in Groovy where I have mentioned how to access the attribute name. The same can be found
PS: Sorry for plugging in my blog, but the post serves your query.
Mohamed Sanaulla |
Joined: Sep 15, 2006
Dec 19, 2013 06:13:47
I agree. Here's the link:
subject: How to get attribute names of XML tags in groovy?
how to retrieve value of attribute of an xml element tag using jsp
Parsing XML in Groovy
question about AttributeList interface
How to update the xml tag attributes for the given tag
Validations for form created with JSTL's x:transform
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015