On Thu, Jun 13, 2013 at 8:11 PM, Devender P. <lists / ruby-forum.com> wrote:

> Hi,
> I am trying to build a hash table from the xml file attached. I am
> trying this with using "nokogiri" but open to any other suggestions.
>

Nokogiri is quite capable so this is a good choice.


> Basically the XML structure is a tree structure of the Design Hierarchy.
>
> When the TYPE is "HIER" it has "componentInstances" section and so on.
>
> I cannot predict how many levels deep it will go but would like to build
> a hash and go from there.
>

And your question is?

Cheers

robert


PS: You didn't even mention according to what rules your Hash should be
built, whether you want a structure of nested Hashes etc.


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/