hello this is my xml in one string…
<?xml version="1.0" encoding="utf-8"?>
<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><CelsiusToFahrenheitResponse
xmlns="http://tempuri.org/"><CelsiusToFahrenheitResult>73.4</CelsiusToFahrenheitResult>
</CelsiusToFahrenheitResponse></soap:Body></soap:Envelope>
i want 73.4 from this <CelsiusToFahrenheitResult>73.4</CelsiusToFahrenheitResult> …is ther any quickest method using string functions for doing this? …don’t want to traverse whole xml!
The most simple solution without using an xml-parser would be to use
NSRegularExpression. Something like this: