Horje
xmldocument to c# object Code Example
xmldocument to c# object
void Main()
{
   String aciResponseData = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><tag><bar>test</bar></tag>";
   using(TextReader sr = new StringReader(aciResponseData))
   {
        var serializer = new System.Xml.Serialization.XmlSerializer(typeof(MyClass));
        MyClass response =  (MyClass)serializer.Deserialize(sr);
        Console.WriteLine(response.bar);
   }
}

[System.Xml.Serialization.XmlRoot("tag")]
public class MyClass
{
   public String bar;
}
c# xmldocument from file
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("your file path");
c# object to xmldocument
C# object to xml document




Csharp

Related
c# list of strings Code Example c# list of strings Code Example
unity how to set rigidbody velocity Code Example unity how to set rigidbody velocity Code Example
dota2 Code Example dota2 Code Example
c# settings file Code Example c# settings file Code Example
while coding c# i get the error : "Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute [first_better_project]" Code Example while coding c# i get the error : "Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute [first_better_project]" Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10