History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1178
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: John Wilson
Reporter: Graeme Rocher
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Add a Utility Method for Converting GPathResults to XML

Created: 08/Dec/05 04:26 AM   Updated: 27/Jan/08 03:53 AM
Component/s: XML Processing
Affects Version/s: 1.0-JSR-4
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
At the moment to output a GPathResult as XML you have to use the below syntax in StreamingMarkupBuilder:

System.out << new StreamingMarkupBuilder().bind {xml -> xml.mkp.yield myNode}

It is not clear what this is trying to achieve and to compound the problem the syntax differs between groovy scripts and classes. It would be better if there was a utility method to do this with a signature whose purpose is clear.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen - 27/Jan/08 03:53 AM
Great idea