Thanks William!
Is there a way to return all of the Elements of a given tag like the
code below in IE? If not, is the best approach to loop through the
XML and then build a new object to return?
Thanks,
Doug
/**
* Return all tags of the give type in an XML DOM node.
* @private
*/
google.code.mapsearch.SearchService.prototype.getTags_ =
function(node, tag) {
return node.getElementsByTagNameNS('http://www.opengis.net/kml/2.2',
tag);
}
On Apr 13, 4:57 am, William <[email protected]> wrote:
> v3 doesn't have the utility classes like GXml, so the authors of the
> College Finder have tried to code it themselves by using the DOMParser
> class, but this isn't available in Microsoft browsers.
>
> The lack of utility classes in v3 has been reported
> inhttp://code.google.com/p/gmaps-api-issues/issues/detail?id=1364
>
> and the suggested solution is to use code
> fromhttp://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu...http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/util.js
>
> so you need to include the "util.js" in the html
>
> <script src="util.js" type="text/javascript"></script>
>
> and comment out the DOMParser line in SearchService.js
>
> // this.parser_ = new DOMParser();
>
> and then use the xmlParse function to convert the KML string
>
> // var kml = this.parser_.parseFromString(kmlString, 'text/xml');
> var kml = xmlParse(kmlString);
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.