[
Lists Home |
Date Index |
Thread Index
]
- From: "Don Park" <donpark@quake.net>
- To: <xml-dev@ic.ac.uk>
- Date: Fri, 24 Apr 1998 14:51:18 -0700
Siping,
>> 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
http://www.docuverse.com/personal/index.html
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|