Well, one of the old XML4J 2.x parsers (SAXParser)
has an event for just that called doctypeDecl.  I
don't know if current versions still support that
but you might look on alphaworks to find out.

I used that parser before I bothered to read the
SAX specs so I was really surprised to find out
that it wasn't part of SAX.  Personally, I think
it should be but I've never mentioned that to SAX
guys so I guess we get what we pay for. ;-)

-----Original Message-----
From: Alfredo Mu?oz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 28, 2001 11:06 PM
To: [EMAIL PROTECTED]
Subject: Getting DOCTYPE information using SAX interface





HI everybody.
When using the SAX interface,  there is a way to get the information in the
DOCTYPE declaration ?

In the example below:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE RootElement SYSTEM "myDTD.dtd">
<RootElement>
........
</RootElement>

How I get the name after DOCTYPE (RootElement) and the name after SYSTEM
(the external DTD name "myDTD.dtd")
Many thanks

Alfredo








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





======================= Confidentiality Statement ======================= 
The information contained in this message and any attachments is 
intended only for the use of the individual or entity to which it is 
addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL 
and exempt from disclosure under applicable law.  If you have received 
this message in error, you are prohibited from copying, distributing, or 
using the information.  Please contact the sender immediately by return 
e-mail and delete the original message from your system. 
===================== End Confidentiality Statement =====================  



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to