cmXml.c : XML declaration nodes of the form: <?label ... ?> which do not have conventional attribute lists are now handled.
This commit is contained in:
parent
29196253a7
commit
0243857bfe
13
cmXml.c
13
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 );
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user