내 컨트롤러에 XML 응답을 반환하는 URL이 있습니다. 예를 들어, 응답은 다음과 같습니다.레일스에서 XML 응답 읽기
<?xml version="1.0" encoding="UTF-8"?>
<AutoCreate>
<Response>
<Status>YES</Status>
<name>JOSEPH</name>
<location>HOME</location>
</Response>
</AutoCreate>
어떻게이 값 status
, name
및 location
변수에 내 컨트롤러에서하고 사용을 읽을 수 있습니다.
미리 감사드립니다.
[this] (http://stackoverflow.com/questions/11139709/converting-from-xml-name-values-into-simple-hash) – Christian