XML Notepad



XML Notepad is a lightweight and fast tool for editing XML documents. XML has proliferated the planet and XML Notepad has been downloaded over a million times! XML allows you to create your own self-descriptive tags or language, that suits your application. It allows you to store the data irrespective of how it will be presented. It was developed by an organization called the World Wide Web Consortium (W3C) and is available as an open standard. XML Notepad provides a simple intuitive User Interface for browsing and editing XML documents. XML Notepad is the result of a promise Chris Lovett made to a friend at Microsoft. The original XML Notepad shipped in back in 1998, written by Murray Low in C. XML Tools Plugin Commands in Notepad Now you are ready to play with the XML Tools Plugin in Notepad. In case your version of Notepad comes with no Plugin Manager, you need to following these steps to install the Plugin Manager (Thanks to SilverM-A, who provided these steps as comment in the Web version): 1.

-->

This article describes how to use XML Notepad to create an XML document.

Original product version: Microsoft XML Notepad
Original KB number: 296560

Notepad++ download for windows 10

Summary

Microsoft XML Notepad is an application that allows you to create and edit XML documents quickly and easily. With this tool, the structure of your XML data is displayed graphically in a tree structure. The interface presents two panes: one for the structure, and one for the values. You may add elements, attributes, comments, and text to the XML document by creating the tree structure in the left pane and entering values in the right pane's corresponding text boxes.

More information

To create a well-formed XML document with XML Notepad, follow these steps:

  1. To open XML Notepad, click Start, point to Programs, point to XML Notepad, and then click Microsoft XML Notepad. The interface shows two panes. The Structure pane on the left presents the beginning of an XML tree structure, with a Root_Element and Child_Element already created. Empty text boxes in the Values pane accept corresponding values.

  2. Change Root_Element to Catalog and Child_Element to Book, and add an attribute and three child elements to the Book child element.

    Note

    When you insert the following values, do not include apostrophes. XML Notepad inserts them for you as your XML document requires.

    1. To insert an attribute for Book, right-click Book, point to Insert, and click Attribute. Next to the cube icon, type ID. To insert a value for this attribute, highlight ID and type Bk101 in the corresponding text box in the Values pane.

    2. To insert a child element for Book, right-click the folder icon next to Book, point to Insert, and click Child Element. A leaf icon appears. Type Author next to this icon, and then type Gambardella, Matthew in the corresponding text box in the Values pane.

    3. Add two more child elements: Title and Genre. Type XML Developer's Guide andComputer in the corresponding text boxes in the Values pane.

  3. To add another Book child element to the Root node, right-click an existing Book element and click Duplicate. Fill in the values as needed.

  4. To add text to existing elements, highlight the node for which you would like to add a text node. On the Insert menu, click Text.

  5. To add comments to existing elements, highlight the node after which or in which you want to insert the comment. On the Insert menu, click Comment. If the highlighted node is expanded, the comment is inserted within the highlighted node.

  6. To change a node's type, highlight the node that you want to change. On the Tools menu, point to Change To and click the appropriate type.

    Note

    You cannot change the type of the root node or of nodes with children.

  7. To view the XML source of the document, on the View menu, click Source. The sample output resembles the following:

    Note

    The following message at the bottom of the View window:

    The current XML definition is well formed.

    Also, note that the XML declaration or processing instructions must be added with an external editor, such as Notepad.

  8. To save the XML document, on the File menu, click Save. To exit XML Notepad, on the File menu, click Exit.

Xml Notepad

References

Once, large unformatted Xml files fell into my hands. I had to understand the structure of these files and make a script to read them and then write the data to a MySQL database. I had neither the time nor the inclination to sit and format these files with my own hands in order to understand their structure, so I decided to look for a simpler solution. The first thing that came to mind was to find a plugin for my favorite program, Notepad ++, and I found it – XML Tools.

XML Notepad

Xml Notepad 2007 Free Download

I will begin my description of XML Tools by describing how to install the plugin. I understand that everyone can do that. Nevertheless, for the sake of completeness I will explain all the points of this process:

  • Go to the “Plugins” menu, then to “Plugin Manager”, then “Show Plugin Manager”. Look for XML Tools in the opened window, set the checkbox, and click the button “Install”.
  • Another method of installation would be to download the latest version of the plugin from here and then unpack it and copy the files to the plugins directory which is located in the Notepad ++ directory.

Xml Editor Microsoft Windows 10

You must restart Notepad ++ after installation. You should see the newly added XML Tools in the “Plugins” menu after a reboot.

So what can XML Tools do?

I’ll start with the feature that brought me to this plugin the first time, which is the function which allowed me to clean up unformatted files. To format an XML file by a “flick of the wrist”, go to “Plugins” then to XML Tools and select: Pretty Print (XML only with-line breaks). You will receive a fully formatted file as the result.

Xml Notepad 2020

Now I will tell about some other features of this plugin.

By setting the option Enable XML syntax auto-check, the syntax of your code will be checked for correctness in XML format, and you will be given an error message when you try to save a file that has a syntax error in it.

Xml Notepad Editor

Use the Check XML syntax function if you want just to check your existing XML file for errors. Use Enable Auto Validation for automatic validation of code as it is being written, or use Validate Now for the validation of the file as it currently is. Use Tag auto close for automatic closing of tags.

Xml Notepad++ Plugin

I described the basic functionality of this plugin but there are still a lot of features that I have not used. This plugin is not difficult to use, so if you have to complete some tasks involving processing of XML files, this plugin will make your life easier.