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
-
Note: This requires JDOM and for some reason when it's
packaged as a .jar file, it cant find JDOM on my system,
so if you have the same problem (at least on Debian), type
java -cp /usr/share/java/jdom.jar:ScottEditor-beta1.jar ScottEditor
- Java archive: ScottEditor-beta1.jar
- Browse source code