Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5.5
-
Fix Version/s: None
-
Component/s: XML Processing
-
Labels:None
-
Number of attachments :
Description
Guys, am I missing something - it's very painful when using XmlParser and trying to get the value text of nodes, having to call text() all the time and remember it is a method.
At the very least node.text (calling getText()) should work.
Even better, have toString() on the node return the text instead of something that looks like the output of dump()
.text is reserved for Nodes which have sub nodes with that name.
I don't usually find it hard to remember. All Groovy "associative" type collections, e.g. SQL, XML, Maps require you to use methods.