I have a plain old XML-file. Through some XSD.EXE
magic I made a model. Now I want to read the XML data into the model. Normally this is just XmlSerializer.Deserialize
, but it keeps complaining about namespaces and whatnot.
Now here is the thing: I don't care about namespaces, or anything else in XML. I just want the deserialization to work with a "simple one-liner". I'm planning to parse a lot of XML in my life and I'm not interested in spending my time fighting a bloated format about details we both know aren't important.
So I'm looking for a XML Deserializer for .Net that removes the fuzz and simply sees a <obj> <Name> ...
and puts its data into public string Name { get; set; }
. It should not be more difficult than for example MyObj myObj = SimpleXml.Deserialize<MyObj>(xmlString);
. Pretty much like JSON deserializers work.
Where can I find an easy to use XML deserializer like the one I described?
I do understand that this limits my XML reading capability.