From: Robert Klemme Date: 2013-06-15T01:25:48+09:00 Subject: Re: NokoGiri XML Parser --047d7b2e07e7fd60b704df1fb2fb Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jun 14, 2013 at 4:58 PM, Devender P. wrote: > I am trying to parse the tags and build a Record or Hash like Structure. > For example i want to capture tag.If it is > empty i want to know what hierarchy it belonged to. I am not > quite sure how to get this. > Well, you can get that from the DOM - probably even with a single XPath expression. But you still do not disclose what information you want eventually in the Hash and according to what rules. And still: what was your question exactly? Do you want someone else code that for you? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --047d7b2e07e7fd60b704df1fb2fb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Fri, Jun 14, 2013 at 4:58 PM, Devender P. <= lists@ruby-forum.= com> wrote:
I am trying to parse the tags and build a Re= cord or Hash like Structure.
For example i want to capture <spirit:componentInstances> tag.If it i= s
empty i want to know what <cellname> hierarchy it belonged to. I am n= ot
quite sure how to get this.

Well,= you can get that from the DOM - probably even with a single XPath expressi= on. =A0But you still do not disclose what information you want eventually i= n the Hash and according to what rules. =A0And still: what was your questio= n exactly? =A0Do you want someone else code that for you?

Cheers

robert=A0


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