JAXP - 'DOMImplementation' instance

S

Stanimir Stamenkov

Is there any reason for the 'getDOMImplementation()' method to be
part of the 'DocumentBuilder' interface and not part of the
'DocumentBuilderFactory' one? Does the returned 'DOMImplementation'
instance differ (or would it differ) depending on the configuration
(namespace awareness, validation, etc.) used to create the builder?
 
M

Martin Honnen

Stanimir said:
Is there any reason for the 'getDOMImplementation()' method to be part
of the 'DocumentBuilder' interface and not part of the
'DocumentBuilderFactory' one? Does the returned 'DOMImplementation'
instance differ (or would it differ) depending on the configuration
(namespace awareness, validation, etc.) used to create the builder?

Maybe in theory there could be a difference, for instance if you do not
need namespace awareness then a DOM Level 1 compliant implementation
would suffice while for namespace aware DOM manipulation at least DOM
Level 2 is needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top