[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Processing external DTD subset as part of DTD validation
Hi Mikko, Look at Xerces grammars support: http://xerces.apache.org/xerces2-j/faq-grammars.html Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Mikko Saesmaa wrote: > Hi all, > > we are fiddling with the idea of implementing a syntax-aware DTD > editor on top of an XML parser, using Java. There must be some > native API methods for, say, Apache Crimson or Apache Xerces that > receive and process an external DTD subset, and report any errors > using SAX Exceptions. Any hints for finding > and using such methods would be appreciated. > > As far as we know, JAXP does not support the validation of DTDs > directly. Our original idea was to wrap the DTD inside the > prolog of a dummy document instance. The problem with this approach > is that this way we would pass the declarations to the parser as an > /internal/ DTD subset, which has different restrictions on the use of > parameter entities than an external subset. > > Thanks, > > Mikko Saesmaa > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|