If
this XML file isn't a DOCTYPE (not a html/body/tag document), should I expect
Ajax responseXML to build out an xml-doctree or should I move on to
xPath?
Sam
-----Original Message-----humm.. as far as i know if your server delivers an XML file as text/xml or something similar then Ajax.request will fill responseXML which contains the xml-doctree. With that you can use the common DOM functions to wade through all the data and then fill your elements as you like.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kjell Bublitz
Sent: Monday, July 24, 2006 11:37 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] XML Question
Hope this helps.
2006/7/24, Sam <[EMAIL PROTECTED]>:I've got an XML file which is pretty well structured. I need to retrieve specific elements from that file to fill out empty HTML elements on a page.I think what I need is xPath? Or - is that overkill? Is there some easier way to locate an XML element?What I have in mind is pulling the XML file using Ajax, then xPath to get the bits I need.Am I on the right path and does prototype have an xPath capability?Sam
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs