Check out example codes for "xmlns='' was not expected". It will help you in understanding the concepts better.

Code Example 1

[XmlRoot(Namespace = "www.contoso.com", ElementName = "MyGroupName", DataType = "string", IsNullable=true)]

Learn ReactJs, React Native from akashmittal.com