Im trying get the text from a tag "Data" with name="telefono" but I can't solve it:
<Placemark> <name>Iglesia </name> <description> Abril </description> <ExtendedData> <Data name='description'> <value>4444</Data> <Data name='phone'> <value>5555</value> </Data> </ExtendedData> <Point> <coordinates>-0.5191416,38.9848326,0.0</coordinates> </Point> </Placemark> I have a "for" that select all placemark:
for(org.jsoup.nodes.Element i : e.select("Placemark")) I have tried all possibilities to get the value of the the phone 5555
but I don't know it, always get all data phone and description.
System.out.println((i.select("ExtendedData").text())); System.out.println((i.select("ExtendedData").select("Data").tagName("phone").text())); System.out.println("(i.select("ExtendedData").tagName("phone").text()));
No comments:
Post a Comment