You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2005/07/14 22:50:17 UTC

svn commit: r219095 - /xerces/c/trunk/src/xercesc/validators/schema/XSDDOMParser.cpp

Author: amassari
Date: Thu Jul 14 13:50:15 2005
New Revision: 219095

URL: http://svn.apache.org/viewcvs?rev=219095&view=rev
Log:
Parsing an annotation containing an appinfo with an empty tag like <a/> would generate an invalid XML fragment for the annotation

Modified:
    xerces/c/trunk/src/xercesc/validators/schema/XSDDOMParser.cpp

Modified: xerces/c/trunk/src/xercesc/validators/schema/XSDDOMParser.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/validators/schema/XSDDOMParser.cpp?rev=219095&r1=219094&r2=219095&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/XSDDOMParser.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/XSDDOMParser.cpp Thu Jul 14 13:50:15 2005
@@ -245,6 +245,8 @@
     else
     {
         startAnnotationElement(elemDecl, attrList, attrCount);
+        if(isEmpty)
+            endElement(elemDecl, urlId, isRoot, elemPrefix);
         // avoid falling through; don't call startElement in this case
         return;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org