Have an XML with next form:
<categories someAttribute="test">
<category id="1">
<title></title>
</category>
<category id="1">
<title></title>
</category>
</categories>
There is no way to change XML structure. But what I want is to replace buggy hand coded XML generation with XMLSerialization.
Please help with those Category list. Is there a way to instruct XML serializer to not wrap list of categories
Code for Example:
public class Category
{
public int Id{get;set;}
}
public class Categories
{
public List<Category> CategoriesList { get; set; }
}