Open GoogleCodeExporter opened 8 years ago
You are right with your observations, but this fix doesn't really help if you
have a response with many subnodes containing whitespaces in their names.
You'll always run into truouble if you try to work with child nodes.
After some search I found the solution by adding another xmlParserOption flag
to the document creation.
In initWithData of CXMLDocument.m change the following line
theDoc = xmlReadMemory([inData bytes], [inData length], NULL, enc,
XML_PARSE_RECOVER | XML_PARSE_NOWARNING);
to this:
theDoc = xmlReadMemory([inData bytes], [inData length], NULL, enc,
XML_PARSE_RECOVER | XML_PARSE_NOWARNING | XML_PARSE_NOBLANKS);
Now everthing should be nice and clean. Remember to change your lines in
SoapResponse.m back to the way they used to be.
I hope this helps some people and saves them some headache.
Original comment by christop...@broadsupport.tv
on 20 Jan 2012 at 6:44
Original issue reported on code.google.com by
toucansa...@gmail.com
on 26 Jul 2010 at 8:17