Updated 14 December 2016
If you want to send to data to the server in the form of XML in ios.You can create it into multi-line literals because ObjC has also supported multiline literals.You have to use the stringWithFormat method of NSString to create the XML file in a proper format. Here is the example of XML string in iOS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
xmlString =[NSString stringWithFormat:@"<prestashop xmlns=\"http://www.w3.org/1999/xlink\">" "<address>" "<id_customer>%@</id_customer>" "<active>1</active>" "<id>%@</id>" "<company>Webkul</company>" "<id_country>%@</id_country>" "<firstname>%@</firstname>" "<lastname>%@</lastname>" "<address1>%@</address1>" "<address2>%@</address2>" "<city>%@</city>" "<postcode>%@</postcode>" "<phone_mobile>%@</phone_mobile>" "<phone>%@</phone>" "<alias>%@</alias>" "<other>%@</other>" "</address>" "</prestashop>"@"20",@"56",@"ram",...........]; |
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.