mono/mono — pull request #411 by Alkarex (2012-07-30 09:56:45+00:00)
Title: Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/XsdDatatypeProv...

...ider.cs

The text, which arrives decoded, must be escaped when manually concatenating strings aimed to be consumed by an XML reader.

For instance, if the original document to be validated contains
fail
then the "value" parameter will contain "http://example.org/?a=1&b=2"
and before the patch, that would have generated an exception.
I am not sure however, if the whole Parse() function works correctly.
In addition, the function is using XmlValidatingReader, which is deprecated.

Cordially,
Alexandre
http://alexandre.alapetite.fr