I am trying to deserialize an non-standard XML array, returned by some sort of Perl web script, in a VB.NET client application.
Take for example, the following XML:
Below is the class that I've attempted to build to read this XML, simplified of course:
I would like to stick with the XMLSerializer model, instead of using a dataset or LINQ, but I'm open to suggestions.
Thanks in advance,
Shea
Take for example, the following XML:
Code:
<MyObject> <...other fields...> <MyItems> <Item1>abcdefg</Item1> <Length1>7</Length1> <Item2>abcd</Item2> <Length2>4</Length2> <Item3>abcdefghijk</Item3> <Length3>11</Length3> </MyItems> </MyObject>
Code:
<Serializeable()> _ Public Class MyObject 'Other fields here <XmlArray(ElementName:="MyItems", IsNullable:=True), _ XmlArrayItem(Type:=GetType(String)), _ XmlArrayItem(Type:=GetType(Integer))> _ Public MyItems As ArrayList End Class
Thanks in advance,
Shea
Comment