G
Guest
Hi,
I'm facing a problem when I have to deserialize an XML into an object. The
typical scenario is as follows:
The XML that I have to deserialize has multiple elements of the same type
(lets say multiple occurences of <abc />) with different inner texts.
Now if I use the already available deserialize method of the XMLSerialize
object, then it returns me only the first element's inner text if I try to
extract in a variable of type string. However, I would like all the element
values to come in as an arraylist (preferably). When I tried deserializing
into a variable of type arraylist, it did not give me anything.
Is there any way to achieve this?
I also tried implementing the IXMLSerializable interface, but am apparently
stuck.
Please help me out!
Nick
I'm facing a problem when I have to deserialize an XML into an object. The
typical scenario is as follows:
The XML that I have to deserialize has multiple elements of the same type
(lets say multiple occurences of <abc />) with different inner texts.
Now if I use the already available deserialize method of the XMLSerialize
object, then it returns me only the first element's inner text if I try to
extract in a variable of type string. However, I would like all the element
values to come in as an arraylist (preferably). When I tried deserializing
into a variable of type arraylist, it did not give me anything.
Is there any way to achieve this?
I also tried implementing the IXMLSerializable interface, but am apparently
stuck.
Please help me out!
Nick