fix two failing XmlTest cases, possibly related to fix for #1184;
Merge pull request #1188 from ashnazg/xmlTestFailures

fix two failing XmlTest cases, possibly related to fix for #1184;