[Mono-list] Xml.Serialization empty element

Dominik Zablotny doza at sztorm.net
Fri Apr 14 14:17:19 EDT 2006


I would like to represent empty XML element as a bool that is true where
element is present, and false  when it's not. Serialized element must be
empty, so DefaultValue("false") is not sufficient. For now the best way
I figured out is using extra class for that element and extra bool
property, but since this situation is quite common in my program I
wonder if there is a better way to do it?

Dominik Zablotny
xmpp:doza at chrome.pl

More information about the Mono-list mailing list