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]

Reply via email to