DOM Confusion

David Brownell David.Brownell at Eng.Sun.COM
Thu Apr 30 20:13:14 BST 1998


> Multiple inheritence would work if ...

In the system being used to define these interfaces, OMG-IDL,
multiple inheritance of interfaces (types) is just fine; there
is no "if" required!  It's the same as in Java, or with C++
virtual public inheritance:

    interface Element : Node { ... }
    interface XMLNode : Node { ... }
    interface XMLElement : XMLNode, Element { ... }

Not that there's an "XMLElement" interface defined now.

Don't confuse this with the "single implementation inheritance"
rule that most systems (other than C++) follow.

Now, as for the ECMA Script bindings ... I'm not an expert in
how the DOM WG is mapping IDL to ECMA Script.

- Dave



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list