- From: Xavier Murillo <xavier.murillo@student.uni-ulm.de>
- Date: Tue, 8 Jun 2004 15:16:39 +0200
- To: www-svg@w3.org
Hi Chris. I thought to do it (read, modify with standard XML processor and DOM core calls).. but it doesn't works.. i have to create a picture with svg that take some information from a xml file.. then i've took all the data from the xml-file and i've put it in a JTree. (Ok) i've done with JDOM (www.jdom.org) but the problem is: when i try to do the same, but with the svg file, it doesn't work .. my code: public class SVG2Java { public SVG2Java() { try { SAXBuilder builder = new SAXBuilder(true); Document doc = builder.build("file.svg"); Element svg = doc.getRootElement(); List svgTags = svg.getChildren("svg"); } catch (Exception e) { e.printStackTrace(); } } } ------------- Maybe is something wrong about SAXBuilder?? Thank's! -- Xavier Murillo
Received on Tuesday, 8 June 2004 09:25:33 UTC