[Mono-list] xml bug?

Daniel Pecos netpecos@yahoo.es
Sun, 18 Jan 2004 12:00:13 +0100


--=-Yqen8GksSjnGtPjtaKem
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi!

I have found an issue that I don't know if it's an error or it is ok:
when I add an attribute named "xmlns" to an XmlElement, then all
childs that were appended to it or those that will be, all have
the same attribute but without content, and RemoveAttribute ("xmlns")
does not work.

I have attached a example code. When you run it, it produces the next
output:

<a /><b xmlns="probe"><b2 xmlns="" /></b>
                          ^^^^^^^^

Any idea?

Bye!

--
Daniel Pecos Martinez
http://netpecos.org
GPG ID: D4480E60
Linux User #175518

--=-Yqen8GksSjnGtPjtaKem
Content-Disposition: attachment; filename=p.cs
Content-Type: text/plain; name=p.cs; charset=iso-8859-15
Content-Transfer-Encoding: base64

dXNpbmcgU3lzdGVtOw0KdXNpbmcgU3lzdGVtLlhtbDsNCg0KbmFtZXNwYWNlIHAgew0KDQogICBw
dWJsaWMgY2xhc3MgbSB7DQoNCiAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNYWluIChzdHJpbmcg
W10gYXJncykgew0KDQoJIFhtbERvY3VtZW50IHggPSBuZXcgWG1sRG9jdW1lbnQgKCk7DQoJIFht
bEVsZW1lbnQgYSA9IHguQ3JlYXRlRWxlbWVudCAoImEiKTsNCgkgWG1sRWxlbWVudCBiID0geC5D
cmVhdGVFbGVtZW50ICgiYiIpOw0KCSBiLlNldEF0dHJpYnV0ZSAoInhtbG5zIiwicHJvYmUiKTsN
CgkgeC5BcHBlbmRDaGlsZCAoYSk7DQoJIHguQXBwZW5kQ2hpbGQgKGIpOw0KCSBYbWxFbGVtZW50
IGIyID0geC5DcmVhdGVFbGVtZW50ICgiYjIiKTsNCgkgYi5BcHBlbmRDaGlsZCAoYjIpOw0KDQoJ
IENvbnNvbGUuV3JpdGVMaW5lICh4LklubmVyWG1sKTsNCiAgICAgIH0NCiAgIH0NCn0NCg==

--=-Yqen8GksSjnGtPjtaKem--