Mac Forums

Mac Forums (
-   iOS Development (
-   -   How to send an xml as a string in iphone sdk? (

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="" xmlns:xsd="" xmlns:soap="">
<FullWomPrintsInsert xmlns="">
<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>

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.


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

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