You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Erik Rydgren <er...@mandarinen.se> on 2001/04/26 13:06:30 UTC
RE: PLEASE HELP: SAX parser errors on validation when ValScheme=Val_Never?????
Yes that is the correct behaviour.
The DTD can contain definitions that are needed even when not validating.
/ Erik Rydgren
-----Original Message-----
From: Prior, Chris [mailto:chris.prior@cazenove.com]
Sent: den 26 april 2001 13:00
To: 'xerces-c-dev@xml.apache.org'
Subject: PLEASE HELP: SAX parser errors on validation when
ValScheme=Val_Never?????
Hi all,
I am using the SAX parser and setting validation to Val_Never, yet when I
parse an xml doc that specifies a dtd the parser fails if it cannot find the
dtd!!!
Why is this the case when I am not interested in validating? Surely looking
for the dtd when no validation is required is not correct?
Please help!
Chris
___________________________________________________
Email Disclaimer
This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice. All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: PLEASE HELP: SAX parser errors on validation when ValScheme=Val_Never?????
Posted by Erik Rydgren <er...@mandarinen.se>.
Do it yourself in a EntityResolver. If the DTD does not exist redirect to a
dummy file instead.
I'm not part of the dev team. Just putting my $0.02 in :)
/ Erik Rydgren
-----Original Message-----
From: Peter A. Volchek [mailto:PeterV@ti.com.od.ua]
Sent: den 26 april 2001 15:08
To: xerces-c-dev@xml.apache.org; erik.rydgren@mandarinen.se
Subject: Re: PLEASE HELP: SAX parser errors on validation when
ValScheme=Val_Never?????
Asking again. Are you planning to provide a way not to throw an exception
if dtd does not exists ?
My application strictly requires this. In the previous version (xml4c
2.3.1) I might to catch this exception and continue
parsing. Now, it became a critical exception.
I know that xml rec says that if dtd is reffered but does not exists the
document is invalid.
But no one prevent you, to keep this by default, and provide an additional
feature, to break this.
(it may be a method, additional parameter or just #define variable)
Thanks for your cooperation.
----- Original Message -----
From: Erik Rydgren
To: xerces-c-dev@xml.apache.org
Sent: Thursday, April 26, 2001 2:06 PM
Subject: RE: PLEASE HELP: SAX parser errors on validation when
ValScheme=Val_Never?????
Yes that is the correct behaviour.
The DTD can contain definitions that are needed even when not
validating.
/ Erik Rydgren
-----Original Message-----
From: Prior, Chris [mailto:chris.prior@cazenove.com]
Sent: den 26 april 2001 13:00
To: 'xerces-c-dev@xml.apache.org'
Subject: PLEASE HELP: SAX parser errors on validation when
ValScheme=Val_Never?????
Hi all,
I am using the SAX parser and setting validation to Val_Never, yet when
I
parse an xml doc that specifies a dtd the parser fails if it cannot find
the
dtd!!!
Why is this the case when I am not interested in validating? Surely
looking
for the dtd when no validation is required is not correct?
Please help!
Chris
___________________________________________________
Email Disclaimer
This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice. All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: PLEASE HELP: SAX parser errors on validation when ValScheme=Val_Never?????
Posted by "Peter A. Volchek" <Pe...@ti.com.od.ua>.
Asking again. Are you planning to provide a way not to throw an exception if dtd does not exists ?
My application strictly requires this. In the previous version (xml4c 2.3.1) I might to catch this exception and continue
parsing. Now, it became a critical exception.
I know that xml rec says that if dtd is reffered but does not exists the document is invalid.
But no one prevent you, to keep this by default, and provide an additional feature, to break this.
(it may be a method, additional parameter or just #define variable)
Thanks for your cooperation.
----- Original Message -----
From: Erik Rydgren
To: xerces-c-dev@xml.apache.org
Sent: Thursday, April 26, 2001 2:06 PM
Subject: RE: PLEASE HELP: SAX parser errors on validation when ValScheme=Val_Never?????
Yes that is the correct behaviour.
The DTD can contain definitions that are needed even when not validating.
/ Erik Rydgren
-----Original Message-----
From: Prior, Chris [mailto:chris.prior@cazenove.com]
Sent: den 26 april 2001 13:00
To: 'xerces-c-dev@xml.apache.org'
Subject: PLEASE HELP: SAX parser errors on validation when
ValScheme=Val_Never?????
Hi all,
I am using the SAX parser and setting validation to Val_Never, yet when I
parse an xml doc that specifies a dtd the parser fails if it cannot find the
dtd!!!
Why is this the case when I am not interested in validating? Surely looking
for the dtd when no validation is required is not correct?
Please help!
Chris
___________________________________________________
Email Disclaimer
This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice. All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org