Scott Hurring » Code » Java » GUI XML Editor » v0.1 beta

Download Code
download
ScottEditor-beta1.jar
v0.1 beta · May 04, 2004
(browse code)

Description

This is something i wrote for school. It's a GUI XML editor using Swing and JDOM.

It's pretty straightforward and simple. You can load, create, and save XML documents. The XML document is represented in the tree on the left side of the window, when you select an element in the tree, you can add child nodes or attributes.

Note: I haven't gotten around to implementing deletion of attributes and nodes, but i will eventually.

The naming of my classes is not narcissistic, it was so that the professor would know who submitted the work :-)

What does it look like?

Overview of Classes in ScottEditor

ScottEditor.java: The main class, instantiates the MainFrame, XMLEditor and MainFrame classes.

XMLEditor.java: This is the most important class, because it implements just about all the real functionality of editing XML documents. It is responsible for parsing (using SAX) the loaded XML document and building a JTree out of it.

MainFrame.java: This class builds the frame that holds the XML Editor.


Download

v0.1 beta - May 04, 2004