[XML-SIG] SAX event: internalEntityDecl

Arne Krug akrug@mps.de
Sat, 30 Jun 2001 13:37:50 +0200


hi,
is there a way to distinguish between SAX entity-events:
one Entity is declared in an external dtd and
the other one is directly in the xml-file 

I want to know thru an event or whatever if the Entity is located in the DTD-File or in 
the XML-File
I use the SAXparser xmlproc...

example:

mail.xml:
<?xml version="1.0"?>
<!DOCTYPE mail SYSTEM "k:\testfiles\mail.dtd" [
<!ENTITY henning "hb@ix.heise.de">  
]>
<mail>
        <Recipient>  &henning;                        </Recipient>
        <Sender>     &ingo;                           </Sender>
        <Date>       Mon, 21 Apr 1997 09:27:55 +0200 </Date>
        <Subject>    XML literature                  </Subject>

</mail>

mail.dtd:
<!ELEMENT mail  (Recipient, Sender,
                         Date, Subject)      >
<!ELEMENT Sender        (#PCDATA)       >
<!ELEMENT Recipient     (#PCDATA)       >
<!ELEMENT Date          (#PCDATA)       >
<!ELEMENT Subject       (#PCDATA)       >
<!ENTITY ingo    "Ingo.Macherius@tu-clausthal.de" >

thanks for any help

arne

--- Arne Krug:                          ---
---            ufcx@rz.uni-karlsruhe.de --- 
---            akrug@mps.de             ---