我有關於XMLReader輸出的問題,它應該能夠將任何SOAP-Result解析到NSDictionary中。iphone XMLReader SOAP-Response解析
當我經歷的結果我得到如下:
重點:的SoapEnvelope,值:{的XML文件到最後的休息,所有的標籤,但它似乎是一個很長的字符串}
我在做什麼錯在這裏,因爲我希望得到一個NSDictionary與我所有的XML標籤作爲關鍵?
編輯:既然I'm工作,並試圖理解這一點,因爲日子裏,我可能是完全錯誤的方向,所以如果可能的話......我here's XML:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetData2Response xmlns="http://tempuri.org/">
<GetData2Result>
<NoOfObjectsDetected>1</NoOfObjectsDetected>
<RectanglesForPicture>
<Rectangle>
<Location>
<X>90</X>
<Y>14</Y>
</Location>
<Size>
<Width>352</Width>
<Height>352</Height>
</Size>
<X>90</X>
<Y>14</Y>
<Width>352</Width>
<Height>352</Height>
</Rectangle>
</RectanglesForPicture>
<ReturnMessage>Juhu!</ReturnMessage>
</GetData2Result>
</GetData2Response>
</soap:Body>
當我想讓我們說一個int的NoOfObjectsDetected - 我必須做什麼? (It's愚蠢,我知道...但I'm失去ATM ... THX)
就是這樣!謝謝! – Schwennz