XML Serilaization to Objects

Posted by Emil under C# on 6/21/2013 | Points: 10 | Views : 697 | Status : [Member] | Replies : 1
When serializing the XML using Class
class abc
{
[XmlElement("SomeTag")]
public string def{get;set;}
}

"SomeTag" value needs to pick it from some config value

when i try to assign the "SomeTag" value with some varibale value
it tells that it needs some constants
How can i achieve this




Responses

Posted by: Bageshkumarbagi on: 6/21/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Refer this links.
http://www.c-sharpcorner.com/UploadFile/chauhan_sonu57/SerializingObjects07202006065806AM/SerializingObjects.aspx
http://dotnet.dzone.com/articles/serializing-and-deserializing
http://stackoverflow.com/questions/4123590/c-sharp-serialize-an-object-to-xml


Thanks,
Bagesh Kumar Singh

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Emil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response