Hi,
I am trying to use the XercesDocumentWrapper method mapNode to convert a Xalan Node to a Xerces Node. The Xalan node is obtained from a NodeRefList object via the item method.
The code is aborting at the call to map node and I see an error message "pure virtual method called"
Below is a code fragment. I would appreciate any help. Am I missing some kind of macro declaration or object?
XALAN_CPP_NAMESPACE_USE
XALAN_USING_XERCES(XMLException)
XercesDOMSupport theDOMSupport;
XALAN_USING_XERCES(XMLException)
XercesDOMSupport theDOMSupport;
try
{
if (nodeList)
{
DOMDocument* xercesDocument = sourceDocument->getDocument();
{
if (nodeList)
{
DOMDocument* xercesDocument = sourceDocument->getDocument();
DOMNode* indexedNode;
XercesDocumentWrapper xalanDocument(xercesDocument);
const NodeRefList::size_type nodeListLength = nodeList->getLength();
ctrace << "Node List Length is" << nodeListLength << endl;
ctrace << "Node List Length is" << nodeListLength << endl;
XalanNode* the_node = nodeList->item(index);
if(the_node)
indexedNode = (DOMNode*)(xalanDocument.mapNode(the_node));
indexedNode = (DOMNode*)(xalanDocument.mapNode(the_node));
Thanks,
Ted
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
