OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: external unparsed entities in a XML document

[ Lists Home | Date Index | Thread Index ]
  • From: Murali <murali@ntexchtx.hq.ileaf.com>
  • To: "'philipnye@freenet.co.uk'" <philipnye@freenet.co.uk>,Murali <murali@hq.ileaf.com>
  • Date: Thu, 11 Nov 1999 09:59:00 -0500

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.
-----Original Message-----
From: Philip Nye [mailto:philipnye@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"
> 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 [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

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS