Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.1
-
Windows XP
Description
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());
}