Hi,

I'm having kind of a silly bug with 2.8.
I try to parse an XSD File as XML.
As I want to calculate the diff of 2 xsd files.
As XSD Files are valid XML, that should work.

But I have the problem, that every node inside of <schema>
Seems not to be read by xerces correclty:

Some Code:
DOMNode* node = src1->getDocumentElement();
std::string name;
XML2String(name,node->getNodeName());// this is a function converting XMLCh* to 
std::string
std::cout << name << std::endl;
XML2String(name,node->getFirstChild()->getNodeName());

Output of this code is:
Schema
#text

All Nodes inside of Schema get returned as "#text".
Is this a known "bug", and is there a way to work around it?
Is there an option I could activate?

Regards,

Jens Weller

Reply via email to