Lists Home |
Date Index |
- From: "Don Park" <email@example.com>
- To: <firstname.lastname@example.org>
- Date: Fri, 24 Apr 1998 14:51:18 -0700
>> I'm trying to implement the DOM interface on the listener side of the
>> SAX interface. The
>> DOM Core Level 1 interface looks clear enough to me. But I get confused
>> by the
>> definition in DOM XML Level 1, especially "XMLNode" -- why isn't it
>> derived from
>> "Note"? Can I traverse a tree with this interface and how? Why does it
>> this "getEntityReference()" method, I don't see the concept of having
>> an "entity reference"
>> attached to each node (such as an element) in XML spec.
XMLNode is probably not derived from Node because there was no need to.
You traverse via its methods which allows you to get its parent, siblings,
EntityReference, when expanded, could result in multiple XMLNodes, so each
of the XMLNodes in the expanded view will return the original
EntityReference if getEntityReference is invoked.
Like wise, getEntityDeclaration will return the definition of the entity.
If I am vague it is because I have little details myself.
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)