external unparsed entities in a XML document

Murali murali at ntexchtx.hq.ileaf.com
Thu Nov 11 14:55:45 GMT 1999


Hi Philip

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
api or 
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.
Murali
-----Original Message-----
From: Philip Nye [mailto:philipnye at freenet.co.uk]
Sent: Thursday, November 11, 1999 8:22 AM
To: Murali
Subject: Re: external unparsed entities in a XML document


> Is it possible to find out the what are the "external unparsed entities"
in
> an XML document ?

Yes it is but it is quite hard to find all the pieces in the XML 1.0
Spec.

External unparsed entities are values which attributes may take. Look at
sections 4, 4.2.2 and 3.3 and production [56] 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" />


Philip Nye
-- 
Philip Nye
Engineering Arts
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;
unsubscribe 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