U
Une Bévue
at the page :
<http://thoraval.yvon.free.fr/Fixed_layout/import_nodes.xhtml>
when importing an svg document i have to do :
document.importNode(
req.responseXML.getElementsByTagName(req.parameters.root)[0],true))
(lines 46/47)
in case of SVG : req.parameters.root = 'svg'
and 'math' in case of MathML
there is no DOM method for getting the root node, enabling not to
specify the root is svg|math ???
or could i do that using DOM/XPath ?
ie something like :
req.responseXML.evaluate('/',document, nsResolver, XPathResult.ANY_TYPE,
null);
???
<http://thoraval.yvon.free.fr/Fixed_layout/import_nodes.xhtml>
when importing an svg document i have to do :
document.importNode(
req.responseXML.getElementsByTagName(req.parameters.root)[0],true))
(lines 46/47)
in case of SVG : req.parameters.root = 'svg'
and 'math' in case of MathML
there is no DOM method for getting the root node, enabling not to
specify the root is svg|math ???
or could i do that using DOM/XPath ?
ie something like :
req.responseXML.evaluate('/',document, nsResolver, XPathResult.ANY_TYPE,
null);
???