When I parse a file, I get TextNodes containing tabs and whitespaces that are formatting the XML file and they aren't information.
I've tried the setIncludeIgnorableWhitespace but it doesn't work.
I'm validating the XML file with an Schema file.
The code I've tried is:
 
    XMLPlatformUtils::Initialize();
    Parser=new DOMParser();
    Parser->setValidationScheme (DOMParser::Val_Always);
    Parser->setDoNamespaces (true);
    Parser->setDoSchema (true);
    Parser->setIncludeIgnorableWhitespace (false);
    Parser->parse ("file.xml");
 
After trying it, I've tried the DOM_Text isIgnorableWhitespace(), but all the nodes returns false:
 
    case DOM_Node::TEXT_NODE:
        Label2->Caption="TEXT_NODE";
        if ( ((DOM_Text &)node).isIgnorableWhitespace() )
            Label4->Caption="Ignorable";
        else
            Label4->Caption="No Ignorable";
    break;
 
 
Can anyone help me?

Reply via email to