You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "subins jose (JIRA)" <xe...@xml.apache.org> on 2012/12/04 06:41:58 UTC
[jira] [Closed] (XERCESC-2005) Cannot possible to append imported
node
[ https://issues.apache.org/jira/browse/XERCESC-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
subins jose closed XERCESC-2005.
--------------------------------
Resolution: Fixed
Sorry, It is not a bug,
> 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
> Labels: Exception, appendchild, importNode
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org