From 0243857bfe0dd6bae040aaa45475690b50e67dfd Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 19 Jul 2020 07:50:43 -0400 Subject: [PATCH] cmXml.c : XML declaration nodes of the form: which do not have conventional attribute lists are now handled. --- cmXml.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cmXml.c b/cmXml.c index 8b3a64a..cfbd27d 100644 --- a/cmXml.c +++ b/cmXml.c @@ -312,7 +312,19 @@ cmXmlRC_t _cmXmlParseAttr( cmXml_t* p, cmChar_t endChar, cmXmlNode_t* np ) // advance past the next '=' if( _cmXmlAdvancePast(p,"=") == NULL ) + { + if( endChar=='?') + { + if((v1 = _cmXmlAdvanceToNext(p,"?")) != NULL ) + { + v0 = l1+1; + goto allocLabel; + } + + } + return _cmXmlSyntaxError(p); + } // advance to the next non-white character if((v0 = _cmXmlAdvanceToNextNonWhite(p)) == NULL ) @@ -341,6 +353,7 @@ cmXmlRC_t _cmXmlParseAttr( cmXml_t* p, cmChar_t endChar, cmXmlNode_t* np ) if( _cmXmlAdvanceOne(p) == NULL ) return _cmXmlSyntaxError(p); + allocLabel: _cmXmlAttrAlloc(p, np, l0, l1-l0, v0, v1-v0 );