G'day all, I am attempting to use the XalanDocumentBuilder to create an input source for the transformer, pretty much as per the DocumentBuilder sample. But after creating part of the input document programmatically, I then want to open another XML document and append its content to the document I have just built. In other words something like:
XalanDocumentBuilder* pDocBuilder = xalanTransformer.createDocumentBuilder(); /* lotsa SAX calls... */ XalanDocument* pDocToConcatenate = liasion.parseXMLStream(/* xml file */); XalanNode* pTheirNode = pDocToConcatenate->getDocumentElement (); XalanNode* pOurNode = pDocBuilder->getDocument() ->importNode(pTheirNode, true); pDocBuilder->getDocument()->/* get the appropriate element */ ->appendChild(pOurNode); What happens is that the importNode call throws a XalanDOMException, NO_MODIFICATION_ALLOWED_ERR . Can anyone explain why and what an alternative approach to merging XML fragments from multiple documents might be? TIA. ============================== Oliver White Software Engineer Product Development Westinghouse Signals Australia ==============================