I'm using Gambas as my language.. :-)
Now I have a problem getting some values from an XML document.
I'm using xml.gb as my "plugin".

The XML document is:

"<ns1:Event>
    <ns1:Number>1</ns1:Number>
    <ns1:Name>Home Team - Away Team</ns1:Name>
    <ns1:Status Id="100">End</ns1:Status>
    <ns1:Results>
        <ns1:Result Id="0" Name="Result">2</ns1:Result>
        <ns1:Result Id="1" Name="Fulltime">2</ns1:Result>
        <ns1:Result Id="2" Name="Halftime">0</ns1:Result>
    </ns1:Results>
</ns1:Event>"

My code so far is:

Dim i As Integer
Dim iKampnr As Integer
Dim iRes As New Integer[]
Dim hXMLDocument As XmlDocument
Dim xeElements As XmlElement[]
Dim tempElements As XmlElement[]
Dim xeNode As XmlNode[]
Dim xsRecord As String[]
Dim sSplit As New String[]
Dim yData As New XMLNT
Dim rData As New XMLNT[]
Dim sTemp As String
Dim n as integer = -1

   rData = New XMLNT[]

   hXMLDocument = New XmlDocument
   hXMLDocument.Open(sURL)

   xeNode = New XmlNode[]

   xeElements = New XmlElement[]
   xeElements = hXMLDocument.GetElementsByTagName("ns1:Event")  

   xeNode = xeElements[0].AllChildNodes

   xsRecord = New String[]

'' -- Fetching information --    

 For i = n + 1 To xeElements.Max     
    yData = New XMLNT     

    With yData
      .sMatch = xeElements[i].GetChildrenByTagName("ns1:Name")[0].TextContent
      .sMatchTime = xeElements[i].GetChildrenByTagName("ns1:Time")[0].TextContent
      sSplit = subPickTime(.sMatchTime)
      .sMatchDate = sSplit[0]
      .sMatchTime = sSplit[1]

      .sStatus = xeElements[i].GetChildrenByTagName("ns1:Status")[0].TextContent
      .sLeague = xeElements[i].GetChildrenByTagName("ns1:ArrangementName")[0].TextContent

     If (xeElements[i].GetChildrenByTagName("ns1:Withdrawn")[0].TextContent) == "false" Then
      .bWithDrawn = False
      Else If (xeElements[i].GetChildrenByTagName("ns1:Withdrawn")[0].TextContent) == "true" Then 
      .bWithDrawn = True
      Endif
    End With

     rData.Add(yData)    
 Next

But I need to know how I can get the status code "100" from the statement "<ns1:Status Id="100">End</ns1:Status>".
The statement "xeElements[i].GetChildrenByTagName("ns1:Status")[0].TextContent" gives me the variable value "End".

Anyone ?

|

:-)
I just cut off a part of the XML-document which was valid for my question.. :-)
Here is the complete XML document (in Norwegian language):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns1:ResultsResponse xmlns:ns1="http://norsk-tipping.no/betobject/Results" OperationVersion="4.4.0" ns1:Version="1.11"><ns1:Result><ns1:ResultCode>0</ns1:ResultCode><ns1:ResultDescription>OK</ns1:ResultDescription></ns1:Result><ns1:Tipping Id="10" Name="Tipping Midtuke"><ns1:Coupon Id="32967"><ns1:Date>2018-11-07</ns1:Date><ns1:SaleStartTime>2018-10-31T20:02:00.000+01:00</ns1:SaleStartTime><ns1:SaleStopTime>2018-11-07T20:55:00.000+01:00</ns1:SaleStopTime><ns1:SaleStatusNo>2</ns1:SaleStatusNo><ns1:SaleStatusName>Closed</ns1:SaleStatusName><ns1:SaleAmount>1653270</ns1:SaleAmount><ns1:Event><ns1:Number>1</ns1:Number><ns1:Name>Juventus - Manchester United</ns1:Name><ns1:MatchId>939739</ns1:MatchId><ns1:ArrangementId>1469</ns1:ArrangementId><ns1:ArrangementName>Champ. League Gr H</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-07T21:00:00.000+01:00</ns1:Time><ns1:Status Id="100">Slutt</ns1:Status><ns1:Item id="2687"><ns1:Number>1</ns1:Number><ns1:Name>Juventus</ns1:Name><ns1:ShortName>Juventu</ns1:ShortName><ns1:Abbreviation>Juventus</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">1</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">1</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="35"><ns1:Number>2</ns1:Number><ns1:Name>Manchester United</ns1:Name><ns1:ShortName>Man Utd</ns1:ShortName><ns1:Abbreviation>Manchester United</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">2</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">2</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>Y</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">58</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">27</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">15</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">69</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">17</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">14</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15511486</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>2</ns1:Number><ns1:Name>Manchester City - Shakhtar Donetsk</ns1:Name><ns1:MatchId>939736</ns1:MatchId><ns1:ArrangementId>1467</ns1:ArrangementId><ns1:ArrangementName>Champ. League Gr F</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-07T21:00:00.000+01:00</ns1:Time><ns1:Status Id="100">Slutt</ns1:Status><ns1:Item id="17"><ns1:Number>1</ns1:Number><ns1:Name>Manchester City</ns1:Name><ns1:ShortName>ManCity</ns1:ShortName><ns1:Abbreviation>Manchester City</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">6</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">6</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">2</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="3313"><ns1:Number>2</ns1:Number><ns1:Name>Shakhtar Donetsk</ns1:Name><ns1:ShortName>S Donet</ns1:ShortName><ns1:Abbreviation>Shakhtar Donetsk</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>Y</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">90</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">7</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">3</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">91</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">5</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">4</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15511474</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>3</ns1:Number><ns1:Name>Lyon - TSG 1899 Hoffenheim</ns1:Name><ns1:MatchId>939737</ns1:MatchId><ns1:ArrangementId>1467</ns1:ArrangementId><ns1:ArrangementName>Champ. League Gr F</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-07T21:00:00.000+01:00</ns1:Time><ns1:Status Id="100">Slutt</ns1:Status><ns1:Item id="1649"><ns1:Number>1</ns1:Number><ns1:Name>Lyon</ns1:Name><ns1:ShortName>Lyon</ns1:ShortName><ns1:Abbreviation>Lyon</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">2</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">2</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">2</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="2569"><ns1:Number>2</ns1:Number><ns1:Name>TSG 1899 Hoffenheim</ns1:Name><ns1:ShortName>Hoffenh</ns1:ShortName><ns1:Abbreviation>TSG Hoffenheim</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">2</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">2</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>Y</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">53</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">29</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">18</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">54</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">24</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">22</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15511476</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>4</ns1:Number><ns1:Name>Bayern München - AEK Athen</ns1:Name><ns1:MatchId>939735</ns1:MatchId><ns1:ArrangementId>1466</ns1:ArrangementId><ns1:ArrangementName>Champ. League Gr E</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-07T21:00:00.000+01:00</ns1:Time><ns1:Status Id="100">Slutt</ns1:Status><ns1:Item id="2672"><ns1:Number>1</ns1:Number><ns1:Name>Bayern München</ns1:Name><ns1:ShortName>B Münch</ns1:ShortName><ns1:Abbreviation>Bayern München</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">2</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">2</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">1</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="3250"><ns1:Number>2</ns1:Number><ns1:Name>AEK Athen</ns1:Name><ns1:ShortName>AEK Ath</ns1:ShortName><ns1:Abbreviation>AEK Athen</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>Y</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">90</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">7</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">3</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">95</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">3</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">2</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15511472</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>5</ns1:Number><ns1:Name>Benfica - Ajax</ns1:Name><ns1:MatchId>939734</ns1:MatchId><ns1:ArrangementId>1466</ns1:ArrangementId><ns1:ArrangementName>Champ. League Gr E</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-07T21:00:00.000+01:00</ns1:Time><ns1:Status Id="100">Slutt</ns1:Status><ns1:Item id="3006"><ns1:Number>1</ns1:Number><ns1:Name>Benfica</ns1:Name><ns1:ShortName>Benfica</ns1:ShortName><ns1:Abbreviation>Benfica</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">1</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">1</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">1</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="2953"><ns1:Number>2</ns1:Number><ns1:Name>Ajax</ns1:Name><ns1:ShortName>Ajax</ns1:ShortName><ns1:Abbreviation>Ajax</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">1</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">1</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>Y</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">39</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">32</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">29</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">42</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">29</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">29</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15511470</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>6</ns1:Number><ns1:Name>Viktoria Plzen - Real Madrid</ns1:Name><ns1:MatchId>939738</ns1:MatchId><ns1:ArrangementId>1468</ns1:ArrangementId><ns1:ArrangementName>Champ. League Gr G</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-07T21:00:00.000+01:00</ns1:Time><ns1:Status Id="100">Slutt</ns1:Status><ns1:Item id="4502"><ns1:Number>1</ns1:Number><ns1:Name>Viktoria Plzen</ns1:Name><ns1:ShortName>V Plzen</ns1:ShortName><ns1:Abbreviation>Viktoria Plzen</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="2829"><ns1:Number>2</ns1:Number><ns1:Name>Real Madrid</ns1:Name><ns1:ShortName>R Madri</ns1:ShortName><ns1:Abbreviation>Real Madrid</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">5</ns1:Result><ns1:Result Id="1" Name="Fulltidsresultat">5</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">4</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>Y</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">8</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">14</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">78</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">6</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">7</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">87</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15511480</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>7</ns1:Number><ns1:Name>Malmö FF - Sarpsborg 08</ns1:Name><ns1:MatchId>939874</ns1:MatchId><ns1:ArrangementId>10918</ns1:ArrangementId><ns1:ArrangementName>Europa League Gr I</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-08T18:55:00.000+01:00</ns1:Time><ns1:Status Id="7">2. omgang pågår</ns1:Status><ns1:Item id="1892"><ns1:Number>1</ns1:Number><ns1:Name>Malmö FF</ns1:Name><ns1:ShortName>MalmöFF</ns1:ShortName><ns1:Abbreviation>Malmö FF</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="822"><ns1:Number>2</ns1:Number><ns1:Name>Sarpsborg 08</ns1:Name><ns1:ShortName>Sarpsbo</ns1:ShortName><ns1:Abbreviation>Sarpsborg 08</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">65</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">22</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">13</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">71</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">16</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">13</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15519104</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>8</ns1:Number><ns1:Name>KRC Genk - Besiktas</ns1:Name><ns1:MatchId>939873</ns1:MatchId><ns1:ArrangementId>10918</ns1:ArrangementId><ns1:ArrangementName>Europa League Gr I</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-08T18:55:00.000+01:00</ns1:Time><ns1:Status Id="7">2. omgang pågår</ns1:Status><ns1:Item id="2890"><ns1:Number>1</ns1:Number><ns1:Name>KRC Genk</ns1:Name><ns1:ShortName>Genk</ns1:ShortName><ns1:Abbreviation>KRC Genk</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="3050"><ns1:Number>2</ns1:Number><ns1:Name>Besiktas</ns1:Name><ns1:ShortName>Besikta</ns1:ShortName><ns1:Abbreviation>Besiktas</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">1</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">1</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">57</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">26</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">17</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">65</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">19</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">16</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15519106</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>9</ns1:Number><ns1:Name>BATE Borisov - Chelsea</ns1:Name><ns1:MatchId>939878</ns1:MatchId><ns1:ArrangementId>10921</ns1:ArrangementId><ns1:ArrangementName>Europa League Gr L</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-08T18:55:00.000+01:00</ns1:Time><ns1:Status Id="7">2. omgang pågår</ns1:Status><ns1:Item id="3350"><ns1:Number>1</ns1:Number><ns1:Name>BATE Borisov</ns1:Name><ns1:ShortName>BATE Bo</ns1:ShortName><ns1:Abbreviation>BATE Borisov</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">0</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Item id="38"><ns1:Number>2</ns1:Number><ns1:Name>Chelsea</ns1:Name><ns1:ShortName>Chelsea</ns1:ShortName><ns1:Abbreviation>Chelsea</ns1:Abbreviation><ns1:Results><ns1:Result Id="0" Name="Stilling">1</ns1:Result><ns1:Result Id="2" Name="Pauseresultat">0</ns1:Result></ns1:Results></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">8</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">16</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">76</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">8</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">12</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">80</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15519000</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>10</ns1:Number><ns1:Name>Rosenborg - FC Salzburg</ns1:Name><ns1:MatchId>939965</ns1:MatchId><ns1:ArrangementId>10911</ns1:ArrangementId><ns1:ArrangementName>Europa League Gr B</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-08T21:00:00.000+01:00</ns1:Time><ns1:Status Id="0">Ikke startet</ns1:Status><ns1:Item id="1161"><ns1:Number>1</ns1:Number><ns1:Name>Rosenborg</ns1:Name><ns1:ShortName>Rosenbo</ns1:ShortName><ns1:Abbreviation>Rosenborg</ns1:Abbreviation></ns1:Item><ns1:Item id="2046"><ns1:Number>2</ns1:Number><ns1:Name>FC Salzburg</ns1:Name><ns1:ShortName>Salzbur</ns1:ShortName><ns1:Abbreviation>FC Salzburg</ns1:Abbreviation></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">19</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">24</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">57</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">13</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">16</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">71</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15518856</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>11</ns1:Number><ns1:Name>Celtic - RB Leipzig</ns1:Name><ns1:MatchId>939964</ns1:MatchId><ns1:ArrangementId>10911</ns1:ArrangementId><ns1:ArrangementName>Europa League Gr B</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-08T21:00:00.000+01:00</ns1:Time><ns1:Status Id="0">Ikke startet</ns1:Status><ns1:Item id="2352"><ns1:Number>1</ns1:Number><ns1:Name>Celtic</ns1:Name><ns1:ShortName>Celtic</ns1:ShortName><ns1:Abbreviation>Celtic</ns1:Abbreviation></ns1:Item><ns1:Item id="36360"><ns1:Number>2</ns1:Number><ns1:Name>RB Leipzig</ns1:Name><ns1:ShortName>RB Leip</ns1:ShortName><ns1:Abbreviation>RB Leipzig</ns1:Abbreviation></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">31</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">29</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">40</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">22</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">24</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">54</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15518858</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Event><ns1:Number>12</ns1:Number><ns1:Name>Arsenal - Sporting CP Lisboa</ns1:Name><ns1:MatchId>939970</ns1:MatchId><ns1:ArrangementId>10914</ns1:ArrangementId><ns1:ArrangementName>Europa League Gr E</ns1:ArrangementName><ns1:SportId>70</ns1:SportId><ns1:SportName>Fotball</ns1:SportName><ns1:Time>2018-11-08T21:00:00.000+01:00</ns1:Time><ns1:Status Id="0">Ikke startet</ns1:Status><ns1:Item id="42"><ns1:Number>1</ns1:Number><ns1:Name>Arsenal</ns1:Name><ns1:ShortName>Arsenal</ns1:ShortName><ns1:Abbreviation>Arsenal</ns1:Abbreviation></ns1:Item><ns1:Item id="3001"><ns1:Number>2</ns1:Number><ns1:Name>Sporting CP Lisboa</ns1:Name><ns1:ShortName>SpLisbo</ns1:ShortName><ns1:Abbreviation>Sporting CP Lisboa</ns1:Abbreviation></ns1:Item><ns1:Selection><ns1:SelectionSeqNo>1</ns1:SelectionSeqNo><ns1:SelectionName>H</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>2</ns1:SelectionSeqNo><ns1:SelectionName>U</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:Selection><ns1:SelectionSeqNo>3</ns1:SelectionSeqNo><ns1:SelectionName>B</ns1:SelectionName><ns1:Winner>N</ns1:Winner></ns1:Selection><ns1:TipType Name="Folkerekka"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">78</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">15</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">7</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:TipType Name="Eksperttips"><ns1:TipSupplier Name="Norsk Tipping"><ns1:TipSelection Name="H" SeqNo="1">77</ns1:TipSelection><ns1:TipSelection Name="U" SeqNo="2">14</ns1:TipSelection><ns1:TipSelection Name="B" SeqNo="3">9</ns1:TipSelection></ns1:TipSupplier></ns1:TipType><ns1:LivebetObjects>true</ns1:LivebetObjects><ns1:ExternalEventId>15518944</ns1:ExternalEventId><ns1:Withdrawn>false</ns1:Withdrawn></ns1:Event><ns1:Prizes><ns1:PrizeGroup Id="1210" Name="10 av 12"><ns1:Amount>180</ns1:Amount><ns1:NumberOfWinners>873</ns1:NumberOfWinners></ns1:PrizeGroup><ns1:PrizeGroup Id="1211" Name="11 av 12"><ns1:Amount>1360</ns1:Amount><ns1:NumberOfWinners>76</ns1:NumberOfWinners></ns1:PrizeGroup><ns1:PrizeGroup Id="1212" Name="12 av 12"><ns1:Amount>40915</ns1:Amount><ns1:NumberOfWinners>3</ns1:NumberOfWinners></ns1:PrizeGroup><ns1:PrizeStatus>Prognosis</ns1:PrizeStatus></ns1:Prizes><ns1:SaleChannels><ns1:SaleChannel><ns1:SaleChannelNo>1</ns1:SaleChannelNo><ns1:SaleStartTime>2018-10-31T20:02:00.000+01:00</ns1:SaleStartTime><ns1:SaleStopTime>2018-11-07T20:55:00.000+01:00</ns1:SaleStopTime></ns1:SaleChannel><ns1:SaleChannel><ns1:SaleChannelNo>2</ns1:SaleChannelNo><ns1:SaleStartTime>2018-10-31T20:02:00.000+01:00</ns1:SaleStartTime><ns1:SaleStopTime>2018-11-07T20:55:00.000+01:00</ns1:SaleStopTime></ns1:SaleChannel><ns1:SaleChannel><ns1:SaleChannelNo>7</ns1:SaleChannelNo><ns1:SaleStartTime>2018-10-31T20:02:00.000+01:00</ns1:SaleStartTime><ns1:SaleStopTime>2018-11-07T20:55:00.000+01:00</ns1:SaleStopTime></ns1:SaleChannel></ns1:SaleChannels></ns1:Coupon></ns1:Tipping></ns1:ResultsResponse>
commented: That passed the XML tester. +15

The statement "xeElements[i].GetChildrenByTagName("ns1:Status")[0].TextContent" gives me the variable value "End".

makes sense to me. To get the ID of the status likely you need something like:

xeElements[i].GetChildrenByTagName("ns1:Status")[0].GetAttribute("Id")

(Based on intuition and http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getattribute, because I never have worked with Gambas ...)

Thanks!!
You're statement worked as it should - even though you've never worked with the language.. :-)

I know "a bit" about VB(A), but for this issue it helped me more that I know a tiny bit of JavaScript.

I was apparently to lazy to find it out myself... :-)
Thanx anyway.

Just in case (actually I hope you already had figured this out!): you can use .GetAttribute("Name") and .GetAttribute("SeqNo") in the same way ... and all the attributes that someday show up in the xml file.