May 12, 2005 #1 P pelican Member Joined Feb 22, 2005 Messages 7 Hi, i am using System.Xml.Serialization; how can i serialize an empty element output <something /> ? currently, after serialize an empty element, it wont show, only not null element wil be output. Please advise.
Hi, i am using System.Xml.Serialization; how can i serialize an empty element output <something /> ? currently, after serialize an empty element, it wont show, only not null element wil be output. Please advise.
May 13, 2005 #2 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* Try putting the following attribute before the variable / property in question Code: <System.Xml.Serialization.XmlElement(IsNullable:=False)>
Try putting the following attribute before the variable / property in question Code: <System.Xml.Serialization.XmlElement(IsNullable:=False)>