SaxParser xml file

sigster

Active Member
Licensed User
Longtime User
Hi

I am getting this info online
it work well but how but how can I get start-time from event

B4X:
event event-id="4632860" serie-id="14675" start-time="2012-07-25 16:00:00" duration="01:50:00">
<title>Ólympíuleikarnir í London - Fótbolti</title>
<original-title>Bandaríkin - Frakkland (kvk)</original-title>
<description/>
<short-description/>
<rating/>
<episode number="1" number-of-episodes="1"/>
<subevent>no</subevent>
<live>yes</live>
<rerun>no</rerun>
<aspect-ratio>
<size>16:9</size>
<anamorphic>yes</anamorphic>
<letterbox>no</letterbox>
</aspect-ratio>
<subtitles>
<open>no</open>
<closed>no</closed>
</subtitles>
<more-info>http://dagskra.ruv.is/nanar/12699/</more-info>
<credits/>
</event>
</service>

B4X:
       If Parser.Parents.IndexOf("event") > -1 Then
            
           If Name = "title"  Then
         
                fyrsti_titill = Text.ToString
      
           Else If Name = "original-title" Then
         
                seinni_titill = Text.ToString
                                          

           End If
         
      End If

         If Name = "event" Then

         RSS.AddTwoLines2(fyrsti_titill, seinni_titill, seinni_titill) 
           End If
   
         ProgressDialogHide

Regards
Sigster
 

sigster

Active Member
Licensed User
Longtime User
HI

Finish to fix this :)

B4X:
   If Name = "event" Then
        dagsetningin = Attributes.GetValue2("", "start-time")
      '  solugengi_titill = Attributes.GetValue2("", "duration")
    End If
 
Upvote 0
Top