how to ignore xml namespaces?

前端 未结 3 2007
[愿得一人]
[愿得一人] 2021-01-15 09:50

I\'ve got test xml file that looks like this:


  
   ...
  

When I\'m t

3条回答
  •  既然无缘
    2021-01-15 10:35

    A namespace is fundamental in XML (unlike namespaces which are interchangeable). If Person is in that namespace, you must tell it:

    [XmlRoot(Namespace="http://tempuri.org/PaymentInformationXml.xsd")]
    public class Person {...}
    

提交回复
热议问题