RE: setIncludeIgnorableWhitespace working?

2002-04-12 Thread Fabrice MARE
You should try something like this :   case DOM_Node::TEXT_NODE:    Label2->Caption="TEXT_NODE"; string content = (DOM_Text &)node.getData().transcode();    if ( content.find_last_not_of(" /n",0 ) == content.length() )    Label

RE: setIncludeIgnorableWhitespace working?

2002-04-12 Thread Fabrice MARE
I had the same problem. In fact using the method isIgnorableWhiteSpace() doesn't work in this case.   To solve this problem, I used a DOM_TreeWalker to eliminate all the text node that has data only based on whitespace, tab and '/n'. Thanks to this I deleted all the empty text nodes.   raga