I have an XML string like
<Segment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Air">
<carrier />
...
</Segment>
I use JSON.NET to convert that to JSON and the end result has the following members
@xmlns:xsi: "http://www.w3.org/2001/XMLSchema-instance"
@xsi:type: "Air"
carrier
At client end, how do I access the type “Air”? Segment.@xsi:type obviously is illegal.
I presume you use Json.Net at client end.