Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphical Rendering of parsed XML data

Status
Not open for further replies.

mfc2005

Programmer
Jul 25, 2005
8
0
0
GB
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top