Re: How can I ignore DTD in an XML file

2005-02-17 Thread Gareth Reakes
Hey Michael, Sure - that's true for validating. But I'm talking about non-validating processing. For example, Xerces is a dual mode parser: it can operate in validating mode, or in non-validating (well-formedness checking) mode. In non-validating mode, if standalone='yes' there is by definition no

Re: How can I ignore DTD in an XML file

2005-02-16 Thread Michael Fuller
On February 16, 2005, Gareth Reakes wrote: >> In a standalone='yes' case with an external DTD, the author(s) >> are implicitly saying: >> 1) the DTD is useful for validation >> 2) the DTD is not required for well-formedness checking >>and its processing would not modify document inf

Re: How can I ignore DTD in an XML file

2005-02-16 Thread Gareth Reakes
Hey, When standalone='yes', there can be no declarations in the external subset that (as you say) would [allow Xerces to] "detect well-formedness errors that it might otherwise miss and supply the same document information to the application that a validating parser would." Presumably the DTD is

Re: How can I ignore DTD in an XML file

2005-02-15 Thread Michael Fuller
[WRT Gareth Reakes' original observation "XML Parsers still have to resolve the DTD for entities, even if you don't want to do validation."] Jesse Pelton wrote on January 28, 2005: > I think that's correct. Non-validating parsers are allowed to process > external entities; they're just not requi

RE: How can I ignore DTD in an XML file

2005-01-28 Thread Jesse Pelton
iday, January 28, 2005 3:20 AM > To: xerces-c-dev@xml.apache.org > Subject: Re: How can I ignore DTD in an XML file > > On Thu, Jan 27, 2005 at 10:05:15AM +, Gareth Reakes wrote: > > XML Parsers still have to resolve the DTD for entities, even if you > > don't want to do

Re: How can I ignore DTD in an XML file

2005-01-28 Thread Michael Fuller
On Thu, Jan 27, 2005 at 10:05:15AM +, Gareth Reakes wrote: > XML Parsers still have to resolve the DTD for entities, even if you > don't want to do validation. Why? If I want to validate using a W3C XML Schema, why do I have to read the DTD? Are you suggesting that Xerces will read the exte

Re: How can I ignore DTD in an XML file

2005-01-27 Thread Gareth Reakes
Hi, XML Parsers still have to resolve the DTD for entities, even if you don't want to do validation. Cheers, Gareth On 26 Jan 2005, at 23:12, Xiaofan Zhou wrote: Hi, All, Is there a feature that I can simple set to turn off the default behavior to resolve a DTD entity included in an XML file? Th