[Mono-devel-list] [PATCH] Default attribute removal in XmlElement
Atsushi Eno
atsushi at ximian.com
Tue Jan 13 08:04:03 EST 2004
It looks fixed with the previous "Specified" fix...?
Atsushi Eno
Boris Kirzner wrote:
> Description of Problem:
> - If the removed attribute is known to have a default value, an
> attribute should immediately appear containing the default value.
> - Re-setting an attribute to its default value requires that the
> attribute be deleted. New attribute with its Specified property set to
> False should be created.
>
> Steps to reproduce the problem :
> 1. Create DTD file defining some node having default attribute value.
> 2. Create XML file referencing the DTD, with node inside that attribute
> value having default in DTD is not explicitly specified.
> 3. Load XML document into XmlDocument
> 4. Remove the attribute
> 4. Inspect Value and Specified properties of the attribute.
>
> Actual result :
> System.NullReferenceException: A null value was found where an object
> instance was required in <0x00128>
>
> Expected result :
> Yes
> False
>
> Enclosed is a small test case and a patch.
>
> Thank you in advance,
>
> Boris Kirzner
More information about the Mono-devel-list
mailing list