Hi. I am trying to read the following xml stream but am really struggling.
<channelSnapshot xmlns="urn:betfair:games:api:v1">
<channel gameType="BLACKJACK" id="1444077" name="Exchange BlackJack">
<status>RUNNING</status>
<game id="190675">
<round>1</round>
<bettingWindowTime>30</bettingWindowTime>
<bettingWindowPercentageComplete>100</bettingWindowPercentageComplete>
<gameData>
<object name="Player 1">
<description/>
<status>IN_PLAY</status>
<property name="Card 1" value="NOT AVAILABLE"/>
<property name="Card 2" value="NOT AVAILABLE"/>
</object>
The stream is acquired in the following way
Dim dataStream As Stream = response.GetResponseStream()
Dim reader As New XmlTextReader(dataStream)
If the element is between a start tag and end tag such as
<status>RUNNING</status>
Then I can access the value ok. I have been using Select Case xmlnodetype but using this when the nodetype is a whitespace I can't get to the element beyond the whitespace.So that in the following line
<property name="Card 1" value="NOT AVAILABLE"/>
I cant get to anything beyond the word property.
As must be obvious this is all new to me, so I would welcome all and any help.