I would agree, in principal, on the need for the above method for a factory instance.
(In prior posts re namespaces I have argued that there is no use in separating
the URI from the tag name, but I neglect that issue for the moment.)
I advocate further, that the number of additional calls and the amount of
anscilliary data be kept at a minimum. If I were to program in java, I would
be concerned with the bulk and complexity of calls to specify the location of,
and the need to administer the content of external mapping files and or other
external specifications. Not to mention the need to distribute and maintain
this meta-data with applets. This when, with judicious application of existing
meta-object capabilities, the only call needed is one to match an xml
namespace with a java package.
While there may be EOC-requirements which extend beyond the need to specify an
arbitrary class <-> element mapping, the namespace-based mechanism is
sufficient for that, and therefore also sufficient for the problem which Mr.
Brownell described. The application need only specify appropriate type
relations between classes specific to HTML-elements and a parent class which
comprises the desired behaviour and/or storage. One may well need to define
interface classes and a package for this purpose. 1-N relations in the other
direction are (as discussed earlier) a problem which extends beyond EOC.