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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -