On Oct 24, 7:44 am, prakash hari <[email protected]> wrote: > Hi, > > I am moving my code from V2 to V3. But i am not finding any method > relavent to GXml.parse(data). Please find the following code and > Provide some Pointers how to replace this code for V3.
Did you see this in the "Samples" in the documentation? http://code.google.com/apis/maps/documentation/javascript/demogallery.html?searchquery=xml -- Larry > > if (this.svgUrl_.substring(this.svgUrl_.length-3)=="svg") { > > // create new svg element and set attributes > var svgRoot = document.createElementNS( > "http://www.w3.org/2000/ > svg", "svg"); > svgRoot.setAttribute( "id", "svgRoot"); > svgRoot.setAttribute( "width", "100%"); > svgRoot.setAttribute( "height","100%"); > svgDiv.appendChild( svgRoot); > > // load the SVG file > GDownloadUrl( this.svgUrl_, function( data, responseCode) > { > var xml = GXml.parse(data); > // specify the svg attributes > svgRoot.setAttribute("viewBox", > xml.documentElement.getAttribute("viewBox")); > > var nodes = xml.documentElement.childNodes; > for (var i = 0; i < nodes.length; i++) > svgRoot.appendChild(nodes[i].cloneNode(true)); > }); > > } > > Many Thanks in Advance, > Prakash.N. -- 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.
