1

I want to convert a NSString variable containing xml codes into xml format. My xml request is:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
        <Authentication xmlns="(namespace link)">
            <Credentials>
                    <Username>username</Username>
                    <Password>password</Password>
            </Credentials>
        </Authentication>
</soapenv:Body>
</soapenv:Envelope>

then i saved this request to a NSString variable. And i got response for this as the server didn't recognize as xml. So how to convert the string i saved into xml?

soorej babu
  • 337
  • 2
  • 16
  • Have you tried [https://github.com/nicklockwood/XMLDictionary] this project ? – Hima Feb 25 '16 at 06:20
  • Check this link http://stackoverflow.com/questions/803676/encode-nsstring-for-xml-html – Rahul Feb 25 '16 at 06:28
  • Thanks Hima and Rahul for your help. I got one more link. And i think it will be a help for others.. https://yuvarajmanickam.wordpress.com/2012/10/17/soap-message-request-and-xmlparsing-in-ios-app/ – soorej babu Feb 25 '16 at 07:11

1 Answers1