You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ro...@locus.apache.org on 2000/03/03 23:32:52 UTC
cvs commit: xml-xerces/c/src/internal XMLScanner.cpp
roddey 00/03/03 14:32:52
Modified: c/src/internal XMLScanner.cpp
Log:
Fixed a bug in SimpleContentModel that allowed an <a/> to be taken
as valid for a content model of (a,b).
Revision Changes Path
1.13 +11 -6 xml-xerces/c/src/internal/XMLScanner.cpp
Index: XMLScanner.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/internal/XMLScanner.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- XMLScanner.cpp 2000/03/03 01:29:32 1.12
+++ XMLScanner.cpp 2000/03/03 22:32:51 1.13
@@ -56,6 +56,10 @@
/*
* $Log: XMLScanner.cpp,v $
+ * Revision 1.13 2000/03/03 22:32:51 roddey
+ * Fixed a bug in SimpleContentModel that allowed an <a/> to be taken
+ * as valid for a content model of (a,b).
+ *
* Revision 1.12 2000/03/03 01:29:32 roddey
* Added a scanReset()/parseReset() method to the scanner and
* parsers, to allow for reset after early exit from a progressive parse.
@@ -1580,12 +1584,11 @@
if (res >= 0)
{
//
- // One of the elements is not valid for the content.
- // NOTE that if no children were provided but the
- // content model requires them, it comes back with
- // a zero value. But we cannot use that to index
- // the child array in this case, and have to put
- // out a special message.
+ // One of the elements is not valid for the content. NOTE that
+ // if no children were provided but the content model requires
+ // them, it comes back with a zero value. But we cannot use that
+ // to index the child array in this case, and have to put out a
+ // special message.
//
if (!topElem->fChildCount)
{