Skip to main content

alphaWorks  >  Forums  >  Hierarchical Inherited Rule-Interpreted XML  >  developerWorks

Cannot retrieve java.util.List of elements with Elements.getAllElements()    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
st_clair

Posts: 1
Registered: Mar 02, 2007 12:36:18 AM
Cannot retrieve java.util.List of elements with Elements.getAllElements()
Posted: Mar 08, 2008 12:15:57 PM
 
Click to report abuse...   Click to reply to this thread Reply
Hello,

I have a HIRIX snippet:

Element root = HirixInitializer.parse( new FileInputStream( "./src/examples/xml/hirix/resrc/xmls/hirix.xml") )

root.marshall() // prints to console correctly

def elements = []
root.allElements.each{ elements << it; println it }
// elements here is still null

However, although the root is printed to the console, I cannot seem to get the elements in the groovy list.

What am I doing incorrectly?

email:st_clair@flowja.com

Point your RSS reader here for a feed of the latest messages in all forums