The fix for question 2 should now in nightly build,
http://xml.apache.org/dist/xerces-c/nightly/2001-04-20/, please verify.
Tinny
Tinny Ng wrote:
> Alexey,
>
> For question 1):
>
> If a DTD is specified, the parser will always scan it even if the
> validation is off, because DTDs can provide m
You can use an EntityResolver to redirect the dtd to a dummy dtd. For an
example on how to use an entity resolver, see the sample "Redirect".
Tinny
Alexey Miroshnichenko wrote:
> Hello Tinny,
>
> Thanks for your answer especially for part II. But can I ask you more?
>
> If I have only xml file
Hello Tinny,
Thanks for your answer especially for part II. But can I ask you more?
If I have only xml files and my objective is only test them for be
well-formed. Some files have doctype decl some haven't. I must do only
this test. And in general case I have no dtd file. How can I be equal
to a
Alexey,
For question 1):
If a DTD is specified, the parser will always scan it even if the
validation is off, because DTDs can provide many other information, like
default attributes and entities, in addition to validation. So the
parser behaviour is correct.
For quesiton 2):
Someone has repo
specified), but won't
throw an exception if you include an attribute on an element that isn't
specified by the DTD.
-Original Message-
From: Alexey Miroshnichenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 3:41 AM
To: [EMAIL PROTECTED]
Subject: ValScheme questio
Hi all,
Pardon me if I address my problem not correctly. But may be anyone
can help my with follow questions. I use xerces-c-1_3_0.
1) I have well-formed xml file with DOCTYPE declaration but
corresponding dtd file is absent. I do
setValidationScheme(SAXParser::ValSchemes::Val_Nev