hey
i just started using DOMParser, ive set it to use the whitespace filter, but im still getting some whitespace. looking at the characters, its ascii values 9 and 10, which are tab and linefeed (LF).
Looking at the whitespace filter, this line:
if (*it != '
' && *it != '
' && *it != ' ' && *it != ' ')
it doesnt handle linefeed, but it does handle tab?
Im using the following code to enable whitespace then parse the document from a string:
mParser.setFeature(DOMParser::FEATURE_WHITESPACE, true);
mDocument = mParser.parseString(xmlData);
Is there anything else i need to do? Or if its a problem with the filter can the linefeed be added? i don't know why the tabs arent being removed though. Any ideas?
thanks
Chris





