On Thu, Sep 3, 2009 at 5:26 AM, prashanth hiremath<[email protected]> wrote:
Personally, I'd probably do something like this with XSLT, but... Aside from that, this example looks very strange -- do you really intend that LandMarkName be a child of LandMarkType, and so on? > <LandMarkType> Red Fort > <LandMarkName>Chatta Chowk > <Description>(Covered Bazaar) – True to the name, this is a covered bazaar > between the gate and the fort itself, now filled with souvenir hawkers. > </Description> > </LandMarkname> > </LandMarkType> I would think you would want e.g. <LandMark> <LandMarkType>Red Fort</LandMarkType> <LandMarkName>Chatta Chowk</LandMarkName> ... </LandMark> Frankly, your example doesn't make sense -- an xpath query on LandMarkName is going to return the Description tags and value as well, which seems an odd use case :-) FWIW, -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

