[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Disabling DTD Validation Cont.

  • From: "Scerri, Antony (ELSLON)" <antony.scerri@b...>
  • To: xml-dev@l...
  • Date: Tue, 30 Jan 2001 21:03:42 +0000

disable dtd validation
I understand that, but assuming I didnt realy care about entities and wished
them to be left alone is this possible. Say for example i wish to walk a DOM
tree and extract a particular subtree of the document and store that.

Tony

-----Original Message-----
From: Bob Kline [mailto:bkline@r...]
Sent: 30 January 2001 21:24
To: Scerri, Antony (ELSLON)
Cc: xml-dev@l...
Subject: Re: Disabling DTD Validation Cont.


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@b...]
> Sent: 30 January 2001 19:39
> To: xml-dev@l...
> 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@b... )
> 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@r...
http://www.rksystems.com

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.