Hi,
        have you told the parser to validate? Something like

    parser->setValidationScheme(XercesDOMParser::Val_Auto);


Gareth



On Sun, 26 Jan 2003 [EMAIL PROTECTED] wrote:

> 
> 
> Thanks Gareth, It has worked for me. But I am stuck up again with ignoring
> whitespaces. I have a dtd which looks something like:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!ELEMENT configparameters (param+)>
> <!ELEMENT param (#PCDATA)>
> <!ATTLIST param name CDATA #REQUIRED>
> 
> I am using:
> 
>  XercesDOMParser* mParser;
> 
> Now I am trying to remove the whitespaces using
> 
> mParser->setIncludeIgnorableWhitespace (false); this doesn't work and
> DOMElement* pElem = (DOMElement*) pDomElem->getFirstChild(); returns text node
> also I tried  mParser->setFeature("
> http://apache.org/xml/features/dom/include-ignorable-whitespace";, false);
> But I get compilation error that setFeature is not an api of
> XercesDOMParser.......
> 
> Thanks in advance
> Alhad
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to