tags:

views:

9

answers:

0

I am using CFXMLParserCreate() with kCFXMLParserSkipWhitespace to parse some XML files. The option helps skipping the white spaces between XML tags like the space bwtween <foo> <bar> which is good.

However, I just find out that it also caused text elements that contain only white space to be skipped, too. For example, the space between <Status> </Status> is skipped.

How do I tell the parse to keep the white space text elements? Thanks.