Autor Tema: clsXML - read worldweatheronline XML  (Leído 2850 veces)

0 Usuarios y 2 Visitantes están viendo este tema.

cliv

  • Kilobyte
  • **
  • Mensajes: 69
  • Reputación: +1/-2
    • Ver Perfil
clsXML - read worldweatheronline XML
« en: Enero 10, 2013, 05:56:16 am »
I try to read XML output from www.worldweatheronline.com using clsXML...but something went wrong...i can't read all tag..

Código: [Seleccionar]
    Dim cXML   As clsXML
    Dim cNode  As clsXML
   
    Dim i   As Long
    Dim j   As Long
   
    strXML = ""
   
    Set cXML = New clsXML
    Call cXML.Parse(App.Path & "\vremea.xml")
   
    For i = 1 To cXML.ParentNode.ChildrenCount
        strXML = strXML & vbCrLf & cXML.ParentNode.enumChild(i).Name
        Set cNode = cXML.ParentNode.enumChild(i)
        For j = 1 To cNode.ChildrenCount
            strXML = strXML & vbCrLf & "---" & cNode.enumChild(j).Name
        Next
    Next
   
    Text1.Text = strXML

    Set cXML = Nothing
    Set cNode = Nothing

Source code:
http://www.mediafire.com/download.php?9b9aaygurr6kdw9



What is wrong...Please Help

bebekbdg

  • Bytes
  • *
  • Mensajes: 15
  • Reputación: +0/-0
    • Ver Perfil
Re:clsXML - read worldweatheronline XML
« Respuesta #1 en: Enero 12, 2013, 01:24:32 pm »
maybe ini this
      <weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png]]></weatherIconUrl>
      <weatherDesc><![CDATA[Sunny]]></weatherDesc>

      <weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0002_sunny_intervals.png]]></weatherIconUrl>
      <weatherDesc><![CDATA[Partly Cloudy]]></weatherDesc>

      <weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0003_white_cloud.png]]></weatherIconUrl>
      <weatherDesc><![CDATA[Cloudy]]></weatherDesc>

when i remove it... is not problem

« última modificación: Enero 12, 2013, 01:28:31 pm por bebekbdg »