Re: ValScheme question

2001-04-20 Thread Tinny Ng
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

Re: ValScheme question

2001-04-19 Thread Tinny Ng
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

Re[2]: ValScheme question

2001-04-19 Thread Alexey Miroshnichenko
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

Re: ValScheme question

2001-04-18 Thread Tinny Ng
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

RE: ValScheme question

2001-04-18 Thread Day, Evan
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

ValScheme question

2001-04-18 Thread Alexey Miroshnichenko
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