From: Robert Klemme Date: 2013-06-14T20:09:50+09:00 Subject: Re: NokoGiri XML Parser --001a11c3872cf8630304df1b4824 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 13, 2013 at 8:11 PM, Devender P. 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/ --001a11c3872cf8630304df1b4824 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



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 suggestio= ns.

Nokogiri is quite capable so = this is a good choice.
=A0
Basically the XML structure is a tree structure of the Design Hierarchy.
When the TYPE is "HIER" it has "componentInstances" sec= tion 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?

Chee= rs

robert


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


--
remember.g= uy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
--001a11c3872cf8630304df1b4824--