xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Dmoch" <...@step.pl>
Subject Re: How ask Xerces-J don't read DTD when DOM-parsing ?
Date Tue, 03 Oct 2000 16:57:09 GMT
I don't think so. A non-validating parser has to read the DTD. It should be some other property
like expand-external-entities or something. You'll find it in SAX2 features Xerces documentation.
You can also substitute the default SAX EntityResolver with your own!
  ----- Original Message ----- 
  From: Dmitri Romanovski 
  To: general@xml.apache.org 
  Sent: Tuesday, October 03, 2000 11:45 AM
  Subject: AW: How ask Xerces-J don't read DTD when DOM-parsing ?


  hi,
   
  just do that :
   
       DOMParser parser = new DOMParser();
       parser.setFeature( "http://xml.org/sax/features/validation, false );

   
  Bye, Dmitri.

Mime
View raw message