subins jose created XERCESC-2005:
------------------------------------
Summary: Cannot possible to append imported node
Key: XERCESC-2005
URL: https://issues.apache.org/jira/browse/XERCESC-2005
Project: Xerces-C++
Issue Type: Bug
Components: DOM
Affects Versions: 3.1.1
Environment: Windows XP
Reporter: subins jose
Fix For: 3.1.1
I have one node, that is imported from second document. When I try to append
this node to first node, it throws an exception.
DOMImplementation* pDOMImplementation =
DOMImplementationRegistry::getDOMImplementation(XMLString::transcode( "CORE" ));
pDOMParser =
pDOMImplementation->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
if( pDOMParser->getDomConfig()->canSetParameter( XMLUni::fgDOMValidate,
true ) )
pDOMParser->getDomConfig()->setParameter(
XMLUni::fgDOMValidate, true );
if( pDOMParser->getDomConfig()->canSetParameter(
XMLUni::fgDOMNamespaces, true ) )
pDOMParser->getDomConfig()->setParameter(
XMLUni::fgDOMNamespaces, true );
if( pDOMParser->getDomConfig()->canSetParameter(
XMLUni::fgDOMDatatypeNormalization, true ) )
pDOMParser->getDomConfig()->setParameter(
XMLUni::fgDOMDatatypeNormalization, true );
pFirstDOMDocumnt = pDOMParser->parseURI(path);
pSecondDOMDocumnt = pDOMParser->parseURI(path);
......
try
{
DOMNode* pImportedNode =pSecondDOMDocumnt->importNode(pChild, true);
pParent->appendChild(pChildElement);
}
catch(DOMException exe)
{
fprintf(stdout,"Exception : %S\n",exe.getMessage());
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]