[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disabling DTD Validation Cont.
- From: Bob Kline <bkline@rksystems.com>
- To: "Scerri, Antony (ELSLON)" <antony.scerri@biomednet.com>
- Date: Tue, 30 Jan 2001 16:23:54 -0500 (EST)
Validation isn't the only thing a parser uses a DTD for. That's how it
resolves entity references as well. If you associate an XML document
with a DTD it's reasonable for the parser to go looking for it.
On Tue, 30 Jan 2001, Scerri, Antony (ELSLON) wrote:
> When using MSXML I have tried using the validateOnParse method and setting
> this to false and it still appear to try and locate the DTD resource.
>
> When using the org.apache.xerces.parsers.DOMParser I have tried using the
> setFeature to set "http://xml.org/sax/features/validation" to false and this
> still wants the DTd resource.
>
> Have I dont something wrong or does this not do what I think it is supposed
> to?
>
> Tony
>
> -----Original Message-----
> From: Scerri, Antony (ELSLON) [mailto:antony.scerri@biomednet.com]
> Sent: 30 January 2001 19:39
> To: xml-dev@lists.xml.org
> Subject: Disabling DTD Validation
>
>
> Hi
>
> I woiuld like to disable DTD validation, including checking whether the DTD
> exists as well as validation against a DTD. Can someone please tell me the
> easiest way of doing this using either Microsofts MSXML IXMLDOMDocument2
> Interface (and MSXML3 final release implementation), or with Apaches
> XALAN/XERCES DOMParser.
>
> Thanks
>
> Tony
>
> ----------------------------------------------------------------------------
> ----------------------
> Antony Scerri ( antonys@biomednet.com )
> Senior Web Developer
> Elsevier Science London
> 84 Theobald's Road
> London
> UK WC1X 8RR
>
> Direct : 44 (0) 207 611 4334
> Office : 44 (0) 207 611 4000
> Fax : 44 (0) 207 611 4001
>
--
Bob Kline
mailto:bkline@rksystems.com
http://www.rksystems.com