Bob La Quey wrote:

Agree that the nodes are polymorphic but I do _not_ see
what that has to do with static typing. Please explain.

If the object must be statically typed, the static type must carry the union of all the interfaces that the object *might* be as opposed to just the interface of what the object *is*.

Maybe what you are saying is that if a node were
a single data type then compile time checking
could be imposed?

No, in this instance, run-time checking is a better fit. The type of the XML node is dependent upon the input data.

Now, part of the issue is just that the XML specification sucks. The whole distinction between attributes and children was an engineering disaster.

-a

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to