Hello,
I'm an ASP.NET developer. I don't have much experience with XML, but I know how to read the XML files and display them in the Gridview.
The file I'm dealing with now is quite unusual, and I'm not sure how to read it. It has only 3 tags: <hashtable>, <entry> and <string>. It doesn't even have a real root. Below is a beginning of this file:
- <hashtable>
- <entry>
<string>6</string>
- <hashtable>
- <entry>
<string>creationdt</string>
<string>1257162838</string>
</entry>
- <entry>
<string>resellerid</string>
<string>44453</string>
</entry>
- <entry>
<string>endtime</string>
<string>1333238399</string>
</entry>
This doesn't look like a valid XML file, but it's definitely readable, since the whole system of the API provider is based on these files.
Below is the message I've got from the provider:
"Our XML file consists of multiple parameters each of which cannot be converted to a tag.
Hence we have divided the API response section into 3 tags mentioned.
The parsing has to be done in the following manner:
1: The first response <string> tag within an <Entry> is your variable Key.
It can be anything from creationdt, resellerid, etc.
2: The second response <string> tag within an <Entry> is the value.
This needs to be used for displaying your response to the client.
You will need to deploy your code accordingly."
Any help on how to parse this file is much appreciated.
Thank you.
I'm an ASP.NET developer. I don't have much experience with XML, but I know how to read the XML files and display them in the Gridview.
The file I'm dealing with now is quite unusual, and I'm not sure how to read it. It has only 3 tags: <hashtable>, <entry> and <string>. It doesn't even have a real root. Below is a beginning of this file:
- <hashtable>
- <entry>
<string>6</string>
- <hashtable>
- <entry>
<string>creationdt</string>
<string>1257162838</string>
</entry>
- <entry>
<string>resellerid</string>
<string>44453</string>
</entry>
- <entry>
<string>endtime</string>
<string>1333238399</string>
</entry>
This doesn't look like a valid XML file, but it's definitely readable, since the whole system of the API provider is based on these files.
Below is the message I've got from the provider:
"Our XML file consists of multiple parameters each of which cannot be converted to a tag.
Hence we have divided the API response section into 3 tags mentioned.
The parsing has to be done in the following manner:
1: The first response <string> tag within an <Entry> is your variable Key.
It can be anything from creationdt, resellerid, etc.
2: The second response <string> tag within an <Entry> is the value.
This needs to be used for displaying your response to the client.
You will need to deploy your code accordingly."
Any help on how to parse this file is much appreciated.
Thank you.