Hi Everyone,

I have the following code using Xerces 2.9.0:

----------------------------------------------------------------------------------------------------------------------------------
DOMImplementationSource src = new DOMImplementationSourceImpl();
DOMImplementation domImpl = src.getDOMImplementation("XML 3.0 LS 3.0");

DOMImplementation domImpl = new DOMImplementationImpl();

// according to W3C's DOM 3 spec, this should give me a Document obj without a document element
// but instead I got a NAMESPACE_ERR

doc = domImpl.createDocument(null, null, null);

----------------------------------------------------------------------------------------------------------------------------------


The culprit seems to be that DOMImplementationSourceImpl is returning a CoreDOMImplementationImpl which doesn't implement createDocument() to the spec. For some unknown reason the behavior conforming to the spec is only implemented in DOMImplementationImpl, but DOMImplementationSourceImpl doesn't return it unless a feature other then Core, XML and LS is required.

CoreDOMImplementationImpl and DOMImplementationImpl really should be 1 single class just called DOMImplementationImpl, this sounds like a design issue and a big bug to me, what do you think?

Yuen Ho Wong

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to