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 kb...@informatica.com on 2000/07/26 19:32:53 UTC
Progressive parsing
I am unable to find a suitable explanation to the progressive parsing
problem. Is there anyone who can offer some hints on how to solve the
problem. I found that the fValidate for the scanner in progressive parsing
mode is set to Val_Never even though the setValidation sets it to Val_Auto
-----Original Message-----
From: kbagepalli@informatica.com [mailto:kbagepalli@informatica.com]
Sent: Tuesday, July 25, 2000 4:11 PM
To: xerces-c-dev@xml.apache.org
Cc: aruna1@hyperreal.org
Subject: Bug in progressive parsing
I have a XML file which has a invalid DTD reference. Bookshop.xml has
reference to store.dtd.
If I use SAXCount and use regular parsing with Val_Auto option I DO get a
validation error. (Element "bookstore" not found)
But I changed it to progressive parsing and I now I do NOT find any
validation error. I changed the code from
//OLD
//parser.parse(xmlFile);
//NEW
XMLPScanToken token;
if (!parser.parseFirst(xmlFile, token))
{
// TBD log errorcerr << "scanFirst() failed\n" << endl;
return 1;
}
// We started ok, so lets call scanNext() until we find what we
want
// or hit the end.
bool gotMore = true;
while (gotMore )
gotMore = parser.parseNext(token);
//NEW
I am using version xerces 1.2
Please help
Kiran
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org