From: James Britt Date: 2006-07-28T02:02:06+09:00 Subject: Re: getElementById on a SVG object Guillaume Rosset wrote: > Hi all, I would like to know if it is possible to retreive a SVG object > (in fact an image in a vector format that needs aa Adobe plugin to be > displayed) by writing something like > > mySVGObject = ie.document.getElementById(SVGId); > > ? > > Then if it works, is it possible to explore the SVG XML tree with the > same getElementById method (SVG image is represented as an XML file). Look at the API for REXML, the XML parser that comes with Ruby. http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/ For example my_xml_dom_obj.elements.to_a( "//[@id=#{SVGId}]" ).first -- James Britt "To predict the behavior of ordinary people in advance, you only have to assume that they will always try to escape a disagreeable situation with the smallest possible expenditure of intelligence." - Friedrich Nietzsche