Re: NullPointerException while setting attributes

2004-07-02 Thread Thomas DeWeese
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

NullPointerException while setting attributes

2004-06-30 Thread Piyush Rai
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 =