Reputation: 2830
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
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