Pessoal, eu recebo de um cliente o seguinte POST XML
<!--?xml version="1.0" encoding="UTF-8"?-->
<hash>
<output>
<height type="integer">16</height>
<audio-sample-rate type="integer">48000</audio-sample-rate>
<frame-rate type="float">29.97</frame-rate>
<channels>2</channels>
<duration-in-ms type="integer">5055</duration-in-ms>
<audio-bitrate-in-kbps type="integer">87</audio-bitrate-in-kbps>
<video-codec>h264</video-codec>
<format>mpeg4</format>
<file-size-in-bytes type="integer">62625</file-size-in-bytes>
<audio-codec>aac</audio-codec>
<total-bitrate-in-kbps type="integer">93</total-bitrate-in-kbps>
<label nil="true"></label>
<width type="integer">30</width>
<id type="integer">235316</id>
<video-bitrate-in-kbps type="integer">6</video-bitrate-in-kbps>
<state>finished</state>
<url>ftp://example.com/file.mp4</url>
<md5_checksum>7f106918e02a69466afa0ee014172496</md5_checksum>
<thumbnails type="array">
<thumbnail>
<urls type="array">
<url>
<url>ftp://example.com/images/123.png</url>
<format>PNG</format>
<file-size-bytes type="integer">1273573</file-size-bytes>
<dimensions>1280x720</dimensions>
</url>
</urls>
<label>1280</label>
</thumbnail>
</thumbnails>
</output>
<job>
<test type="boolean">false</test>
<created-at type="datetime">2011-09-27T19:14:24Z</created-at>
<pass-through nil="true"></pass-through>
<updated-at type="datetime">2011-09-27T19:15:01Z</updated-at>
<submitted-at type="datetime">2011-09-27T19:14:24Z</submitted-at>
<id type="integer">172153</id>
<state>finished</state>
</job>
<input>
<height type="integer">16</height>
<audio-sample-rate type="integer">48000</audio-sample-rate>
<frame-rate type="float">29.97</frame-rate>
<channels>2</channels>
<duration-in-ms type="integer">5038</duration-in-ms>
<audio-bitrate-in-kbps type="integer">148</audio-bitrate-in-kbps>
<video-codec>h264</video-codec>
<format>mpeg4</format>
<file-size-in-bytes type="integer">100149</file-size-in-bytes>
<audio-codec>aac</audio-codec>
<total-bitrate-in-kbps type="integer">155</total-bitrate-in-kbps>
<width type="integer">30</width>
<id type="integer">172151</id>
<state>finished</state>
<video-bitrate-in-kbps type="integer">7</video-bitrate-in-kbps>
<md5_checksum>7f106918e02a69466afa0ee014174143</md5_checksum>
</input>
</hash>
Como eu faço pra pegar algumas informações desse XML ? A forma mais facil de pegar o valor do job-state por exemplo ?
Desculpa a pergunta, mas não vi uma documentação pra isso. Ainda não implementei nada, só estou lendo algumas documentações e estudando algumas coisas e como nunca mexi com isso, me surgiu a dúvida simples.
Vlw.