Hi All,
Xerces version : 3.1.1
I am getting bad pointer when trying to get the node value.
Sample XML as bellow:
<code>
<A aa="xxx">
<tag1>number1</tag1>
<tag2 atr1="atr1">number2</tag2>
</A>
</code>
When I am trying to get the value for the node <tag1> i.e. "number1"
Its giving me bad pointer.
Sample code:
<code>
DOMNode* ptrCurrentNode;
DOMElement* ptrCurrentElement = (DOMElement*)ptrCurrentNode;
const XMLCh* str = node->getNodeName(); // Giving tag name as - "tag1"
const XMLCh* str = node->getTextContent(); // Giving bad pointer instead of "number1"
</code>
I remember before this code was working.
Please let me know the issue and the reason I am getting bad pointer instate of node value.
Regards