Entity handling in DOM

Andreas Berg andreas_berg at usa.net
Thu Jan 14 12:13:57 GMT 1999


I just did some DOM programming with IBM's XML4J. I experienced that if there
is a general entity in the XML document the parser doesn't expand it and
instead just provides an EntityReference node. The DOM standard says the
parser "may" expand entities. I wondered what is the sense of not expanding?
How do other parsers handle this?

BTW, why is there a difference between general entities and parameter
entities?

To my (very naive) understanding entities are a kind of text replacement and
should be handled transparently.

Could please someone help me understand???

Thanks,

   Andreas.


____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

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




More information about the Xml-dev mailing list