external unparsed entities in a XML document
murali at ntexchtx.hq.ileaf.com
Thu Nov 11 14:55:45 GMT 1999
I think i did not put properly my question.
What i want to know is when i am parsing the XML document ( either using DOM
SAX api ) is it possible to find out what subset of external entities
defined in the DTD
are used in the XML document?
e.g., In the SAX api, there is a listener called "Entityresolver" ( which
will be called
when parser encounters either parsed or unparsed external entities). But it
looks like this
method is not getting called for the "external unparsed" entites.
thanks for you help.
From: Philip Nye [mailto:philipnye at freenet.co.uk]
Sent: Thursday, November 11, 1999 8:22 AM
Subject: Re: external unparsed entities in a XML document
> Is it possible to find out the what are the "external unparsed entities"
> an XML document ?
Yes it is but it is quite hard to find all the pieces in the XML 1.0
External unparsed entities are values which attributes may take. Look at
sections 4, 4.2.2 and 3.3 and production  for a start.
e.g. Usage looks something like this.
In the DTD
<!NOTATION someNotation PUBLIC "notationIdentifier" >
<!ENTITY EUEinstance SYSTEM "whereToGetItFrom" NDATA someNotation >
<!ELEMENT anElement EMPTY >
<!ATTLIST anElement entityAttribute ENTITY>
then in the document
<anElement entityAttribute="EUEinstance" />
72 Herberton Road ~ Bournemouth BH6 5HZ ~ UK
tel +44 (0)1202 418236 ~ fax +44 (0)1202 418676
mailto:philipnye at freenet.co.uk
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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev