Hpricot - How to walk the tree

P

Paul Fraser

What methods can be used to walk a Hpricot::XML tree from the root all
the way down?
I can achieve the result I am after using Rexml stream/listener
technique, but I would love to have Hpricot speed.
How are containers, nodes and elements used in the process?
I have experimented using container#containers but the process seems messy.

Thanks
Paul Fraser
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top