SRam
SRam

Reputation: 2830

xml parsing for showing marker on google map

I want to show marker of diffrent color on Google map according to "type" in xml..means I want to diffrentiate the marker acccording to "type" in xml so sir how to do parsing for showing marker of diffrent color in Google map and when I click any of marker it shows a baloon in which "gallery name" will be wrriten..... url is http://site4demo.com/artealdiaonline/output.php?lat=-34.6394879&lng=-58.3617837kkj

Upvotes: 0

Views: 540

Answers (2)

Chris
Chris

Reputation: 7853

Your XML File is not that small. I recommend you to use SAX Parser for your purpose. You don't need all these information in your in-memory objects i guess because you just want to make markers on your map. With DOM, the whole XML tree will be kept in memory. I'm trying to avoid this on phones all the time due to the limited memory resources.

So you can use a SAX Parser (here is an easy example: SAX) and then react on your row elements by creating a new Marker in your map.

Upvotes: 1

Lukas Knuth
Lukas Knuth

Reputation: 25755

Use an XML Parser:

  1. SAX
  2. DOM
  3. StAX

Upvotes: 0

Related Questions