Sunday, June 27, 2010

[android-developers] Reading from XML

Hello, on my app I will be reading in from an XML file thats formatted
something like this

<database>
<db1>


<db>
<name>name here</name>
<street>street here</street>
<long> longitude here</long>
<lat> latitude here </lat>
</db>

<db>
<name> new name here </name>
<street> new street here </street>
<long> new longitude here </long>
<lat> new latitude here </latitude>
</db>

</db1>
</database>


With this information I need to create Overlay Markers on the map
(using latitude and longitude) and when they're clicked on I need it
to display the name with the address. Depending on the conditions of
where the map is, the number of markers will be different so I need a
dynamic model for reading in these markers.

If I were to use Document methods like getElementById(String name)
then I couldn't call getElementById("name") because it would likely
try to call just the first <name></name> or give an unintended result.

Any help on this would be much appreciated!

Michael


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment