Hi I have created a SVG document and then tried to read it by converting it into document. Now I want to read path elements values. Please help .Below is my code.
try { String parser = XMLResourceDescriptor.getXMLParserClassName(); SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser); String uri11 = "map.svg"; // Document doc = f.createDocument(uri); FileInputStream inS = new FileInputStream("map.svg"); String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); Document doc = f.createDocument(svgNS,inS); // String abc = doc.getAttributeNS(null,"path"); Element abc = doc.getDocumentElement(); String s = abc.getAttributeNS(svgNS,"id"); String as = abc.getElementsByTagNameNS(null,"path"); System.out.println("11111 "+abc.getElementsByTagNameNS(null,"path")); }catch (Exception ex) { ex.printStackTrace(); } Arvind _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]