Andrew Patterson wrote:
I don't know what the problem is with the DOMBuilder, but it's clear
why the exception message is not printed properly. If you check the
return type from DOMException::getMessage(), you'll see it's "const
XMLCh*" which means it's a UTF-16 string. Unfortunately, you've told
sprintf that the parameter is "const char*" so you won't get anything
interesting as a result.
Ah, okay -- thanks! Took about 15 seconds to add and the result is now
'The implementation does not support the requested type of object or
operation'. Any idea which object or operation it's talking about?
Perhaps it's not happy about the DOMBuilder::ACTION_APPEND_AS_CHILDREN
action I've requested?
You have the source code available, so please consider using it. ;-)
Here's the relevant code from DOMBuilderImpl.cpp:
void DOMBuilderImpl::parseWithContext(const DOMInputSource&,
DOMNode* const,
const short)
{
throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0,
getMemoryManager());
}
Dave