Hi Piyush,
I think the problem is that the SVG attributes are in
the 'null' namespace not the SVG namespace (this is confusing
because the elements must be in the SVG namespace):
path[i].setAttributeNS(svgNS, "stroke",
namedNodes.getNamedItemNS(svgNS,"stroke").getNodeValue());
getNamedIte
Hi, I have a NodeList of path elements in an SVG file. String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; NodeList paths = document.getElementsByTagNameNS(svgNS,"path"); I am also creating an equal number of empty paths(by setting 'd' attribute as ""). numberOfPaths = paths.getLength(); path =