[Mono-devel-list] System.Xml.XmlAttribute.Specified should not be default True

Boris Kirzner borisk at mainsoft.com
Mon Jan 12 11:55:07 EST 2004


Hello

The Specified attribute for an System.Xml.XmlAttribute node should be 
set to False if the attribute was not explicitly given a value.

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. Inspect Specified property of the attribute.

Actual result :
True

Expected result :
False

Enclosed is a small test case and a patch.

Thank you in advance,

Boris Kirzner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: staff.xml
Type: text/xml
Size: 160 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040112/9f2cfb40/attachment.xml 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Class1.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040112/9f2cfb40/attachment.pl 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040112/9f2cfb40/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XmlElement.cs.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040112/9f2cfb40/attachment-0001.pl 


More information about the Mono-devel-list mailing list