I did it as follows - the WhitespaceInElementContent feature. If I remember 
correctly, it does not ignore carriage returns since they can't be 
distinguished from text in a mixed content element.

Jim L


DOMImplementation* impl = 
DOMImplementationRegistry::getDOMImplementation(gLS);
DOMBuilder* parser = 
impl->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS,0);
parser->setFeature(XMLUni::fgDOMWhitespaceInElementContent,false);


On 8/12/05, Swetha Nekkanti <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I am pretty new to xerces-c. I am trying to use DOM to extract some data
> from an XML file,but DOM does not ignore the white spaces between 2 
> elements
> and creates text nodes.How do tell the parser to ignore them ?I also have 
> a
> schema for the XML document but it gives me unknown element error only for
> the root element.Can anyone tell me what could be wrong ?
> 
> Thanks.,
> Swetha
> 
>

Reply via email to