开发者

how to parse text with enter in xml in iphone

开发者 https://www.devze.com 2023-02-13 16:39 出处:网络
I am trying to parse some text from a xml. But text contains enter so now whenever i try to read, it does not read beyond enter.

I am trying to parse some text from a xml. But text contains enter so now whenever i try to read, it does not read beyond enter. Can some one help me? I really stuck.

T开发者_运维知识库hanks

Pankaj


I think you can try this.

NSString *xmlString = //the xml data;
[xmlString stringByReplacingOccurrencesOfString:@"\0" withString:@""];

//Now you can parse the xmlString


Hope it helped....

0

精彩评论

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