Displaying 2 results from an estimated 2 matches for "requestxml".
Did you mean:
requesturl
2006 Jul 24
15
XML Question
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
2009 Feb 03
3
ROXML from_xml not returning an object instance...
...th all waypoints in a single create call to RouteController.
When I call Route.from_xml(xmlString) it is not returning an object -
it''s leaving the object (@route) nil, but not erroring. Any ideas?
Here''s some code:
RoutesController:
def create
@route = nil;
if params[:requestXML]
# unserialise from XML using ROXML
@route = Route.from_xml(params[:requestXML]);
else
@route = Route.new(params[:route])
end
respond_to do |format|
#The following line unsurprisingly fails, as @route is nil
if @route.save
flash[:notice] = &...