开发者

Problem with libxml2 and Unicode char in XML Soap with Qotes (") and "

开发者 https://www.devze.com 2022-12-26 21:11 出处:网络
I\'m using libxml2 for SOAP-Actions in an iPhone App. The big problem is that i want send an SQL-Statement with

I'm using libxml2 for SOAP-Actions in an iPhone App.

The big problem is that i want send an SQL-Statement with

开发者_如何学编程NSString *query = @"SELECT test FROM database WHERE test = \"string\""

But libxml2 converts the qotes " into "

Any ideas how to prevent this?


Quotations within the texual data of XML are supposed to be converted to ", per the XML specification. The receiver is responsible for converting " back to quotations when extracting the text from the XML.

0

精彩评论

暂无评论...
验证码 换一张
取 消