c# - DataSet.GetXmlSchema() do not returns nillable attribute -
c# - DataSet.GetXmlSchema() do not returns nillable attribute -
i'm serializing dataset
using getxmlschema() , getxml() methods (code below), in schema
, xmldata
there no xsi:nil
or nillable
attributes columns nullable. when deserializing how know column nullable?
xelement schema = xelement.parse(dataset.getxmlschema()); xelement xmldata = xelement.parse(dataset.getxml());
is there way attributes in serialized xml?
http://msdn.microsoft.com/en-us/library/ybce7f69%28v=vs.100%29.aspx
looks may need using xmlserializer.
also if non-nullable type (int example) has nil=true looks it'll throw error. that's on referenced page.
c# xml serialization dataset xelement
Comments
Post a Comment