Hi I am new to Java programming and am trying to read and an SVG (Scalable Vector Graphic) file from disk and output the elements and attributes e.g. <rect x="0" y="0" width="1280" height="1024"/> to a GUI.
I have figured out that I should use the DOM XML parser to load the file into a Document hierarchy then I will have more control with the elements and attributes.
The problems I have are:
1. How do I read a file into the parser from the filechooser class?
2.Which classes are best for rendering the document? - should I use the canvas GUI and Graphics2D classes?
I have figured out that I should use the DOM XML parser to load the file into a Document hierarchy then I will have more control with the elements and attributes.
The problems I have are:
1. How do I read a file into the parser from the filechooser class?
2.Which classes are best for rendering the document? - should I use the canvas GUI and Graphics2D classes?