I have the following XML, but I have some problems deserializing it.
Part of XML:
<message:AIXMBasicMessage gml:id="uniqueId">
<message:hasMember xlink:type="simple">
<aixm:VerticalStructure gml:id="uuid.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
.....
</aixm:VerticalStructure>
</message:hasMember>
</message:AIXMBasicMessage>
I have these classes in VB.net
<XmlRoot(ElementName:="hasMember")>
Public Class HasMember
<XmlElement(ElementName:="VerticalStructure")>
Public Property VerticalStructure As VerticalStructure
<XmlAttribute(AttributeName:="type")>
Public Property Type As String
<XmlText>
Public Property Text As String
End Class
<XmlRoot(ElementName:="AIXMBasicMessage")>
Public Class AIXMBasicMessage
<XmlElement(ElementName:="hasMember")>
Public Property HasMember As List(Of HasMember)
End Class
<XmlRoot(ElementName:="Root")>
Public Class Root
<XmlElement(ElementName:="AIXMBasicMessage")>
Public Property AIXMBasicMessage As AIXMBasicMessage
<XmlAttribute(AttributeName:="message")>
Public Property Message As String
<XmlAttribute(AttributeName:="xlink")>
Public Property Xlink As String
<XmlAttribute(AttributeName:="aixm")>
Public Property Aixm As String
<XmlAttribute(AttributeName:="gml")>
Public Property Gml As String
<XmlText>
Public Property Text As String
End Class
the problem in message: / aixm: / xlink: / gml: because, if I delete it from the XML file it works fine. But how do I change the code, so I don't need to change the XML file to get it to be read?