Your xml has multiple root elements, this is not allowed for valid xml.
If you change it to the format, this should work.
<?xml version="1.0"?>
<Users>
<user></user>
<user></user>
</Users>
More Related Contents:
- Error Deserializing Xml to Object – xmlns=” was not expected
- How to Deserialize XML document
- Serializing private member data
- Fastest way to serialize and deserialize .NET objects
- Deserialize XML To Object using Dynamic
- XML Serialization and Inherited Types
- DataContract XML serialization and XML attributes
- How can I serialize and deserialize a type with a string member that contains “raw” JSON, without escaping the JSON in the process
- Serialize a nullable int
- Can you specify format for XmlSerialization of a datetime?
- How to deserialize XML if the return type could be an Error or Success object
- XML Deserialization of collection property with code defaults
- Wrap properties with CData Section – XML Serialization C#
- XmlSerializer – There was an error reflecting type
- How can I serialize internal classes using XmlSerializer?
- Serializing/deserializing with memory stream
- Serialize an object to XElement and Deserialize it in memory
- How to Serialize List?
- Deserializing XML File with multiple element attributes – attributes are not deserializing
- FileMode.Open and FileMode.OpenOrCreate difference when file exists? c# bug?
- How do you deserialize XML with dynamic element names?
- How do I map XML to C# objects
- Convert an object to an XML string
- xsi:type attribute messing up C# XML deserialization
- Deserialize object property with StringReader vs XmlNodeReader
- Json.NET: Deserializing nested dictionaries
- Serializing Lists of Classes to XML
- How to deserialize only part of an XML document in C#
- How do you use XMLSerialize for Enum typed properties in c#?
- NewtonSoft.Json Serialize and Deserialize class with property of type IEnumerable