Why is the value of an Attribute a Node?

The java interface for Document specifies that the arguments to the
createAttribute method are the name (a String) and a value (a Node).
Why is value a Node?  It seems inconsistent with the getValue method on
Attribute which returns a String, and the setAttribute method on Node
which takes a String for the value.

Received on Friday, 15 May 1998 15:55:46 UTC