Parsear xml

24 views
Skip to first unread message

Alvaro martinez gonzalez

unread,
Apr 26, 2013, 11:28:23 AM4/26/13
to sbpo...@googlegroups.com
Hola,
¿Como puedo parsear el valor de dentro de value?
Me refiero a que imprima solo el primer numero en rojo, el resto no.


<report>
     <location city="XXXXXX">
           <interesting>
                   <url description="prediccion">http://www.XXXX.com/XXX.htm</url>
           </interesting>
           <var>
                    <name>xxxxxxxxxx</name>
                    <icon>4</icon>
                    <data>
                          <forecast data_sequence="1" value="7"/>
                          <forecast data_sequence="2" value="3"/>
                          <forecast data_sequence="3" value="-1"/>
                          <forecast data_sequence="4" value="3"/>
                          <forecast data_sequence="5" value="3"/>
                          <forecast data_sequence="6" value="4"/>
                          <forecast data_sequence="7" value="3"/>
                   </data>
            </var>
Reply all
Reply to author
Forward
0 new messages