[Home] [By Thread] [By Date] [Recent Entries]

  • From: Jonathan Borden <jborden@m...>
  • To: Mike.Champion@S..., xml-dev@l...
  • Date: Tue, 02 Jan 2001 00:55:26 -0500

Title: RE: questions re WD-xml-infoset-20001220
FWIW one reason the term "grove" is used instead of "tree" is for the very reason that an attribute is not a child of its containing tag.
 

Jonathan Borden
The Open Healthcare Group
http://www.openhealth.org/

 
-----Original Message-----
From: Mike.Champion@S... [mailto:Mike.Champion@S...]

> From: james anderson [mailto:james.anderson@a...]
> 1. why don't attributes have a parent?

I presume the InfoSet did this to be consistent with the DOM.  It is a rather subtle
semantic (or perhaps pedantic) point, I guess, but the children
of a DOM Element are any sub-elements. Attributes are not children
of an Element ... so the element should not be the parent of the attributes.
[How could I have a parent, if I am not a child of that parent? Ponder that ...]
The DOM uses the ownerElement property to identify the element that
contains a specific attribute


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member