XML Editors

XML files are simple text documents which means they can be opened with any basic text editor. All operation systems (Windows, Mac, Linux, ..) come with native text editors, so there is no need to download external software to be able to write, view or edit those files.

However, specialized software editors can make editing XML files a lot easier, since they have additional features included such as coloring specific segments of code, auto-complete functions, etc.

You can edit XML files on Windows with Notepad, Mac OS X comes with TextEdit and Linux has many different tools for text file manipulation. The most basic are nano, Emacs and Pico.

We will present some best text editors for making your life easier when working with XML files.

Notepad++

Notepad++ is the popular, open-source software, written for all platforms. It has all the features you will ever need. You can get it here.

TextMate

TextMate is probably the best text editor for a Mac. It is not free, but it is definitely one of the most advanced tools used by the professionals. You can read more about it here.

UltraEdit

UltraEdit is a popular Windows text editor. The software is commercial, but it comes with some advanced features that might come handy for specific tasks.
Read more information here.

XML Examples

Here are some simple examples demonstrating how XML data can be structured to store information attributes.

Simple example
The following example shows simple hierarchical structure. The root node is called person, which represents the object with various subnodes, representing personal attributes such as name, surname, email, etc.


<person>
<name>James</name>
<surname>Walls</surname>
<email>jameswalls@gmail.com</email>
</person>

What is XML?

XML is a extensive markup language, similar to HTML but with some differences. While HTML was designed to display information and data, XML was designed to transport and store data. The rules for XML usage are defined by W3C association. XML allows us to define structured information which can be carried over the network.

Markup languages carry descriptive information about the data within the text data. Unlike the word documents for instance, where the information about the style (font, size, color, etc.) is hidden from the users and is stored behind the program, markup languages define all properties of the text document and elements.