Return-Path: Delivered-To: apmail-xml-xerces-c-dev-archive@www.apache.org Received: (qmail 54336 invoked from network); 15 Apr 2004 10:50:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Apr 2004 10:50:59 -0000 Received: (qmail 31992 invoked by uid 500); 15 Apr 2004 10:50:55 -0000 Delivered-To: apmail-xml-xerces-c-dev-archive@xml.apache.org Received: (qmail 31965 invoked by uid 500); 15 Apr 2004 10:50:55 -0000 Mailing-List: contact xerces-c-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-c-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-c-dev@xml.apache.org Received: (qmail 31950 invoked from network); 15 Apr 2004 10:50:54 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 15 Apr 2004 10:50:54 -0000 Received: (qmail 54294 invoked by uid 1595); 15 Apr 2004 10:50:55 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 15 Apr 2004 10:50:55 -0000 Date: Thu, 15 Apr 2004 03:50:55 -0700 (PDT) From: Gareth Reakes X-X-Sender: gareth@minotaur.apache.org To: "'xerces-c-dev@xml.apache.org'" Subject: Re: AW: Strange problem with pattern (Xerces 2.5.0 crashes) In-Reply-To: Message-ID: <20040415034913.A34741@minotaur.apache.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I have reproduced this problem. I can make the working one break just by adding a "test" element before the body. I will review the code and see if I can see anything, but I doubt this is going to be a 2 second fix. Cheers, Gareth On Thu, 15 Apr 2004, Heeg, Michael wrote: > Hi Garth, > > attached you can find three files: > 1) schema (schema.xsd) > 2) one file which works (works.fih) > 3) one file which leads to a crash (crashes.fih) > > Thanks in advance, > Michael > > > > -----Urspr�ngliche Nachricht----- > > Von: Gareth Reakes [mailto:gareth@parthenoncomputing.com] > > Gesendet: Donnerstag, 15. April 2004 10:37 > > An: 'xerces-c-dev@xml.apache.org' > > Betreff: Re: Strange problem with pattern (Xerces 2.5.0 crashes) > > > > > > Hi, > > can you post a working schema and instance file > > (preferably small) > > and I will take a look. > > > > Cheers, > > > > Garth > > > > > > On Thu, 15 Apr 2004, Heeg, Michael wrote: > > > > > Hi, > > > > > > I am using Xerces-C 2.5.0 in my MS Visual C++ application. > > When validating > > > XML files against a specified schema, the parser sometimes > > crashes with an > > > "unexpected exception". I found out that the reason for the > > crashes is the > > > following restriction of the schema (see "Body" element): > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="(\n*[0-9]*,[0-9]*,(\-*[0-9]*\.*[0-9]*,)*\-*[0-9]+\.*[0- > > 9]*;\n*)*"/> > > > > > > > > > > > > > > > > > > > > > The restriction is defined to validate tags like the > > following: > > > > > > > > > 0,10,0.199,10.199,0.008; > > > 1,20,0.389,20.389,0.059; > > > 2,30,0.565,30.565,0.180; > > > 3,40,0.717,40.717,0.369; > > > 4,50,0.841,50.841,0.596; > > > 5,60,0.932,60.932,0.810; > > > .... > > > > > > > > > The strange thing is: when the tag contains a large > > amount of data, > > > the validation of the restriction leads to the unexpected > > exception. But: > > > with a small amount of data, everything works fine. (Also: > > when I delete the > > > restriction from the schema, everything works fine.) > > > > > > For me this looks like a Xerces bug?! Am I wrong? Any suggestions or > > > comments? > > > > > > Best regards, > > > Michael > > > > > > > > > P.S.: I know that the way we use this tag is not the > > best way to > > > handle csv-like data, but I had to do this because of an > > existing file > > > format. > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org > > > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org > > > > > > > -- > > Gareth Reakes, Managing Director Parthenon Computing > > +44-1865-811184 http://www.parthcomp.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org > > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org > > > > -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-c-dev-help@xml.apache.org