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).
Thanks for your help.
You might get some answers on a Javascript or SVG forum.
Cheers
Nic
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 B.
“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