W3C home > Mailing lists > Public > www-svg@w3.org > June 2004

Re: Generate SVG

From: Xavier Murillo <xavier.murillo@student.uni-ulm.de>
Date: Tue, 8 Jun 2004 15:16:39 +0200
Message-ID: <1086700599.40c5bc3788799@imap.rz.uni-ulm.de>
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:27 GMT