On Nov 29, 2010, at 3:09 PM, Rajinder Yadav wrote:

> On Sun, Nov 28, 2010 at 6:09 PM, James Edward Gray II
> <james / graysoftinc.com> wrote:
>> On Nov 28, 2010, at 4:52 PM, Rajinder Yadav wrote:
>>=20
>>> Hi just wondering if there is a easy way to turn an xml entity into =
a object like of type OpenStruct where i can access everything like a =
property?
>>>=20
>>> It's kind of like parsing xml, I already know about nokogiri, but I =
want to work is a OpenStruct and not a DOM object, does that make sense? =
=3DP
>>=20
>> Check out XmlSimple:
>>=20
>>  http://xml-simple.rubyforge.org/
>>=20
>> You can pass the Hashes it returns to OpenStruct.
>>=20
>> You may also want to see the second example in these slides for a =
much more evil idea:
>>=20
>>  http://www.slideshare.net/JamesEdwardGrayII/unblocked
>>=20
>> James Edward Gray II
>>=20
>=20
> James,
>=20
> thanks, xml-simple does what I was looking for. Do you know if there
> is a similar thing that can be done with nokogiri?

Not that I know of.  You would need to write the code that makes the =
translation.

James Edward Gray II=