C
christian.eickhoff
Hello Everybody,
am currently developing some coder for XML files but am facing some
minor problem which might be very easy to solve for XERCES experts. For
my coder it is indispensable to determine the type of the current Node
out of the XSD Schema file but when I use the function:
Node->getNodeType(), I always receive the value 1 even if I am dealing
with an ATTRIBUTE_NODE like this:
Schema file subsection:
<xsd:attribute name="type" type="mimeTopLevelType" use="required" />
(should be enum value 2 as far as I know..)
For test purposes I do this very simple output on the Node from up
above for example:
short childtype = myChild->getNodeType();
std::cout << "Element Type: " << childtype <<'\n';
Return value:
Element Type: 1
What am I doing wrong? Am really confused as the type determiniation
seems to be an easy task and as I get the correct values for
Node->getNodeName and Node->hasChildNodes.. Any hint or help is highly
appreciated!!
Thanks in advance
Christian
am currently developing some coder for XML files but am facing some
minor problem which might be very easy to solve for XERCES experts. For
my coder it is indispensable to determine the type of the current Node
out of the XSD Schema file but when I use the function:
Node->getNodeType(), I always receive the value 1 even if I am dealing
with an ATTRIBUTE_NODE like this:
Schema file subsection:
<xsd:attribute name="type" type="mimeTopLevelType" use="required" />
(should be enum value 2 as far as I know..)
For test purposes I do this very simple output on the Node from up
above for example:
short childtype = myChild->getNodeType();
std::cout << "Element Type: " << childtype <<'\n';
Return value:
Element Type: 1
What am I doing wrong? Am really confused as the type determiniation
seems to be an easy task and as I get the correct values for
Node->getNodeName and Node->hasChildNodes.. Any hint or help is highly
appreciated!!
Thanks in advance
Christian