Repost: DOM XML Level 1 question

Don Park donpark at
Fri Apr 24 23:58:20 BST 1998


>> 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
>> have
>> 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,
and children.

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.

Good luck,

Don Park

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

More information about the Xml-dev mailing list