Welcome! Log In Create A New Profile

Advanced

Help deserializing XML to structure

Posted by Hilltopper 
Help deserializing XML to structure
April 23, 2019 10:26PM
I'm trying to deserialize some XML to a structure and having issues getting it right. Any help would be appreciated.


Here is sample of XML

<?xml version="1.0" encoding="UTF-8"?>
-<Destinations>
-<Destination>
<DestinationName>Alaska</DestinationName>
</Destination>
-<Destination>
<DestinationName>California</DestinationName>
</Destination>
</Destinations>

Here is structure which is not working. The JSON only gets one record in it. What am I doing wrong?


strDestinationName is Structure

DestinationName is string

END


strDestination is Structure


Destination is strDestinationName


END


strDestinations is Structure

Destinations is array of strDestination

END
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: