XML Template-Based Editor
About
Options
Load
Save
Help

The XML Template-Based Editor is a GUI-based XML modification program written in Javascript. Unlike most XML writing programs, this one is very easy to use, and can restrict the types of tags and attributes that can be added to the document.



The Text Editor:

The XML Text Editor on the right of the screen can be used for uploading and editing XML documents. It is not a robust XML parsing program; its simply for uploading content and making quick changes without the aid of the GUI-based editor on the left.



The GUI Editor:

The GUI editor on the left side of the screen displays the current XML document in a graphical and easily-understandable format. This is where most of your XML editing will likely take place.

The top-most text area in the GUI editor specifies XML header values. If you don't know what to use, just leave them with their default value.

Each XML element/tag is signified by a box in the GUI editor. For those of you unfamiliar with XML, tags are what XML use to organize data. Tags generally contain text data, as well as other tags.
The name of a tag is on the upper-left corner of a box. The tag options (move up, move down, duplicate, and delete) are located on the upper-right corner of the box.
Clicking the Move Up / Move Down buttons (the first two from the left) will move the tag up or down inside the current tag. Clicking the Duplicate button (the third one from the left) will duplicate the current tag and all its inner tags. Click the delete button (the farthest right button) to delete the tag (and all of it's child tags). In addition to all of this, you can click the name of the tag to collapse/expand the tag for readability. The resizable text area that spreads the width of the box signifies the text content inside the XML tag. If the tag has attributes, you will see text fields above the text area, each with an attribute name to the right of each text field.
Most tags will have buttons in the bottom-right hand corner labeled "Add [SomeTagName]". If you click these buttons, a tag with the name specified on the button will be created inside the current tag, underneath any existing child tags.



As you update the GUI editor, the changes are automatically propagated to the Text Editor on the right side of the screen. The resulting generated content is almost guaranteed to be valid XML.



Loading XML documents

To load an XML document into the editor, you will need to first open the original document into a text editing program. If you're on a Windows-based machine, try right-clicking the .xml document, and select the "Open With" option, and select Notepad or Wordpad. On a mac, try the same procedure, but open with TextEdit or a similar application.

Do not open the XML document in Microsoft Excel or a web browser. Just open it in a simple text editor!

Once you open the document, select all of its contents, and copy it (ctrl-C, or cmd-C on a mac).

Next, click the close button on the bottom-right of this window to close the help dialog, and click on the large text area on the right. Select all of the text that is currently inside the text area (ctrl-A, or cmd-A on a mac), and delete it with the delete key. Now, paste the XML data you copied into this text area by pressing ctrl-V (cmd-V on a mac).

Once all the XML content is pasted in, click the narrow "Load XML" button that is just above the text area. The editor will parse and load all of the valid XML tags into the GUI editor, and reformat the XML in the text area. Note that the XML displayed in the text area is only a copy of the actual XML document; it is not the original that you just opened.

The "Load XML" button can be clicked at any time, allowing more savvy users to make changes to the XML document without using the graphical editor on the left. You can even type in XML in the text area without opening a file first, if you know how.

Assuming that you have previously saved an XML document within the editor via the Save button, you can click the Load button on the top-right corner of the window, and load an XML document that way. Just click on one of your files displayed in the left window (if any have been saved), and click the Load button on the bottom.
If you wish to delete a file from the Editor, select a file, and click the (delete) button. While this will permanently remove an XML file in the Editor, it will not remove any XML files you may currently have on your computer.



Saving XML documents

To save an XML document in the Editor, click the Save button on the top-right of the window. Next, type in a name for the document, and click the save button. Now, you can load the XML document you were last working on via the Load button also on the top-right of the window.
In addition, the state of the XML document you're currently working on is automatically saved in the Editor whenever you close the window, to avoid losing any data when you leave the program.

Saving within the editor is great, but if you plan on actually using your created XML document for anything, you will need to export it into it's own file. To do this, first open a text editing program (try to find a simple editor. Do not use Microsoft Word). Next, inside the XML Template-Based Editor program, select all the text that's in the text area to the right of the screen (after clicking the close button on the bottom-right of this window). Copy this text into your new document you created with the text editing program on your computer. Save this document, and give it a .xml extension. For more information on how to do this, check out this link: http://support.microsoft.com/kb/296560

Save


Give the XML file a name, and click save.
Warning: This file already exists!
Save

Load

URL
File

XML File URL:


Template:

Load
Load
(delete)

XML Output:

Standard
Condensed

Undo Buffer Length:

Reset Program


XML Template-Based Editor

Version: 11
Last Updated: June 6, 2012



Contributors:

Jeffrey Sweeney
Fong-Wan Chau (Design)



Follow, Fork, or Contribute to this project on Github!
Close
← Load XML ←