external unparsed entities in a XML document

Andy.Bradbury at syntegra.bt.co.uk Andy.Bradbury at syntegra.bt.co.uk
Thu Nov 11 18:50:01 GMT 1999


Murali

Please excuse my previous mail, I obviously completely misunderstood your
question.
The trouble with such an open list is that you never know whether someone is
a newbie or not until they've posted a message or two.  I realise now that
you definitely do not belong in this category.

Regards

Andy B.


-----Original Message-----
From: Murali [mailto:murali at ntexchtx.hq.ileaf.com]
Sent: 11 November 1999 14:59
To: 'philipnye at freenet.co.uk'; Murali
Cc: 'xml-dev at ic.ac.uk'
Subject: RE: external unparsed entities in a XML document


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)

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