|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Repost: DOM XML Level 1 question
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@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








