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 "Fabio Di Pierno, Andersen" <Fa...@wind.it> on 2000/11/07 13:21:16 UTC
I: DTD basics
> Hi folks,
> I tried with DOMPrint sample but
>
> If I change a tag name inside an XML file adding an "X" (<book> to
> <Xbook>)
> (validation scheme set to "always") method parser->parse(gXMLfile)
> a) detects the error on tag
> b) causes segmentation fault
>
> Same file, correct tag ends successfully. WHY ?
> It seems that validation does proceed, but something after it goes wrong.
>
> I tried to debug with -g option the DOMPrint to check out the point
> that causes segmentation but I cannot go into method
> parser->parse(gXMLfile); I have compiled all of classes source files in
> folder /src with -g
> but it does not work
>
>
> thank you
> Fabio
Re: DTD basics
Posted by Andy Heninger <an...@jtcsv.com>.
DOMPrint shouldn't give a seg fault on a parse error.
Two questions -
1. Could you post the XML that causes the problem.
2. Which version of Xerces-C are you using, and on which platform?
Andy Heninger
IBM XML Technology Group, Cupertino, CA
heninger@us.ibm.com
----- Original Message -----
From: "Fabio Di Pierno, Andersen" <Fa...@wind.it>
To: <xe...@xml.apache.org>
Sent: Tuesday, November 07, 2000 4:21 AM
Subject: I: DTD basics
>
> > Hi folks,
> > I tried with DOMPrint sample but
> >
> > If I change a tag name inside an XML file adding an "X" (<book> to
> > <Xbook>)
> > (validation scheme set to "always") method parser->parse(gXMLfile)
> > a) detects the error on tag
> > b) causes segmentation fault
> >
> > Same file, correct tag ends successfully. WHY ?
> > It seems that validation does proceed, but something after it goes
wrong.
> >
> > I tried to debug with -g option the DOMPrint to check out the point
> > that causes segmentation but I cannot go into method
> > parser->parse(gXMLfile); I have compiled all of classes source files
in
> > folder /src with -g
> > but it does not work
> >