Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   iOS Development (http://www.mac-forums.com/forums/ios-development/)
-   -   How to send an xml as a string in iphone sdk? (http://www.mac-forums.com/forums/ios-development/301459-how-send-xml-string-iphone-sdk.html)

manga 07-24-2013 09:43 AM

How to send an xml as a string in iphone sdk?
 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<FullWomPrintsInsert xmlns="http://tempuri.org/">
<xmlDoc><?xml version="1.0" encoding="utf-8"?><R><Root><CriteriaID>11</CriteriaID><Rating/></Root><Root><CriteriaID>10</CriteriaID><Rating/></Root><Root><CriteriaID>9</CriteriaID></Root><Root><CriteriaID>8</CriteriaID><Rating/></Root><Root><CriteriaID>7</CriteriaID><Rating/></Root><Root><CriteriaID>6</CriteriaID><Rating/></Root></R></xmlDoc></FullWomPrintsInsert>
</soap:Body>
</soap:Envelope>



i got bellow Error:
<Message>Data at the root level is invalid. Line 1, position 1.</Message>


Even if "stringByAddingPercentEscapesUsingEncoding" used for remove < And > characters.But i got same error.





Please help me out. how to resolve this issue.its urgent.



Regards,
Manga.K


All times are GMT -4. The time now is 10:12 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.