I'm trying to use the XalanTransformer::transformer() method to transform a XalanDocument object that I've created programmatically.
I have no problem creating the document and adding elements to it using the SAX API, but when I try to transform it, I get a XalanDOMException with code = NO_MODIFICATION_ALLOWED_ERR Is it impossible to create a XalanDocument with XalanTransformer::transformer()? This is what I've done: *********************************************************** XMLPlatformUtils::Initialize(); XalanTransformer::initialize(); XalanTransformer theXalanTransformer; XalanDocumentBuilder* const theInputBuilder = theXalanTransformer.createDocumentBuilder(); XalanDocumentBuilder* const theOutputBuilder = theXalanTransformer.createDocumentBuilder(); ... ... //get the SAX2 ContentHandler from the builder and //build the input document with SAX ... ... theResult = theXalanTransformer.transform( *theInputBuilder, "foo.xsl", theOutputBuilder->getDocument()); ************************************************************ Thanks for any help...
