XML Tools Plugin for Notepad++ – Features, Download, How to Install and Use

Extensible Markup Language (XML) helps you store and transport data that is human readable and machine-independent. As an Oracle Apps developer, you should have used it to create an XML payload for SOAP service. There are advanced tools available to work on XML like Altova, but if you are looking for basic editing, then you should try the Notepad++ XML Plugin.

This plugin is free as it works with Notepad++ which itself is free and open-source software.

XML Tools Plugin for Notepad++

XMLTools is a plugin for Notepad++ Text Editor which helps you to edit and format XML files. This libXML2-based plugin provides a small set of useful tools for editing XML.

Plugin Features,

  • XML syntax Check
  • XML Schema (XSD) + DTD Validation
  • XML tag autoclose
  • Pretty print
  • Linarize XML
  • Current XML Path
  • Conversion XML <-> Text
  • Comment / Uncomment
  • XPath expression evaluation

Author: Nicolas Crittin
Source: download
Latest update: Release 2.4.9.2

Download XML Tools Plugin

Open this GitHub online repository to download the XML plugin. Here, you will find download links as per the version of the plugin.

Current version is – XMLTools 3.0.5.0

You will find below .zip file for 32 bit and 64-bit version along with source code in .zip and tar.gz format.

  • XMLTools-3.0.5.0-x64.zip
  • XMLTools-3.0.4.3-x86.zip
  • Source code(zip)
  • Source code(tar.gz)

Choose x64 or x86 file depending on the Notepad++ version. Notepad++ is available in both 32 bit and 64-bit versions. So you need to download proper plugin files, else it may not work.

x64 – Compatible with Notepad++ 64 bit
x86 – Compatible with Notepad++ 32 bit

If you get the below error that means you have installed 64 bit plugin with 32 bit Notepad++ installation.

Cannot load 64 bit plugin.

XMLTools.dll is not compatible with the current version of Notepad++

Do you want to remove this plugin from the plugins directory to prevent this message from the next launch?

To resolve this issue, you need to install (x86) 32 bit plugin or install 64 but Notepad++.

cannot load XMLTools.dll plugin

Install XML Tools Plugin in Notepad++

You can install the XML Tools plugin using the Plugin Manager or Admin. If you do not have a plugin manager in your Notepad++ installation, you can also manually install this XML Plugin.

First, let’s see installation using the plugin manager

Installation using the Plugin Manager/Admin

This is preferred and recommended method as it eases the overall process. You do not have to download any plugin and copy files. The plugin manager takes care of everything. It connects to the latest repository, downloads, and installs the plugin. No manual action and inputs are required unless clicking on the Next button.

One warning here, before starting installation make sure to save all edited text files in Notepad++. As plugin installation restart Notepad++ and you may lose an edited file if you have not enabled save on exit option.

Steps to install XMLTools Plugin in Notepad++,

  1. Start Notepad++
  2. Navigate to Plugins -> Plugins Manager -> Show plugin manager.
  3. Search XML Tools plugin in the lists of all the available plugin.
  4. Select the checkbox
  5. Click the Install button.

XML Tools Plugin Manager

It displays additional information about the plugin as well if you want to check.

One point I would like to mention here if you get a popup saying the plugin manager itself needs updates, so go ahead and update it first and then install XML Tools Plugin.

Manual Installation

Using a plugin manager, it is easy to install this Plugin, but if you do not have a plugin manager, you need to use the manual method. In the manual method, you have to download the plugin and copy the files to the Notepad++ folder explained in detail below.

Steps to Install XMLTools Plugin Manually,

  1. Close Notepad++
  2. Download the latest XMLTool from this location
  3. Extract XMLTools-3.0.5.0-x86.zip to the local folder
  4. Copy XMLTools.dll file to npp plugin subfolder. In my case C:\Program Files (x86)\Notepad++\plugins
  5. Start notepad++

That’s it. You have successfully installed the plugin.

XMLTools Plugin

Using XML Tools

You can use this plugin to edit XML files in Notepad++. This provides basic editing features like Pretty print, Comment / Uncomment, Conversion XML <-> Text and other tasks.

Let’s cover some in brief.

I am going to use part of the sample XML available on this site. Just copy and paste it in Notepad++.

<?xml version="1.0"?>
<catalog>
   <book id="bk101">
      <author>Gambardella, Matthew</author>
      <title>XML Developer's Guide</title>
      <genre>Computer</genre>
      <price>44.95</price>
      <publish_date>2000-10-01</publish_date>
      <description>An in-depth look at creating applications 
      with XML.</description>
   </book>
   <book id="bk102">
      <author>Ralls, Kim</author>
      <title>Midnight Rain</title>
      <genre>Fantasy</genre>
      <price>5.95</price>
      <publish_date>2000-12-16</publish_date>
      <description>A former architect battles corporate zombies, 
      an evil sorceress, and her own childhood to become queen 
      of the world.</description>
   </book>
 </catalog>

Now go to Plugins->XML Tools and Linarize XML.

This removes entire formatting on XML and converts it to a single line

<?xml version="1.0"?><catalog><book id="bk101"><author>Gambardella, Matthew</author><title>XML Developer's Guide</title><genre>Computer</genre><price>44.95</price><publish_date>2000-10-01</publish_date><description>An in-depth look at creating applications  with XML.</description></book><book id="bk102"><author>Ralls, Kim</author><title>Midnight Rain</title><genre>Fantasy</genre><price>5.95</price><publish_date>2000-12-16</publish_date><description>A former architect battles corporate zombies,  an evil sorceress, and her own childhood to become queen  of the world.</description></book></catalog>

Pretty Print XML

This option allows you to properly format the XML. Select the linarized xml above and click on Pretty Print (XML Only – with line breaks) to format it properly as shown below.

<?xml version="1.0"?>
<catalog>
	<book id="bk101">
		<author>Gambardella, Matthew</author>
		<title>XML Developer's Guide</title>
		<genre>Computer</genre>
		<price>44.95</price>
		<publish_date>2000-10-01</publish_date>
		<description>An in-depth look at creating applications  with XML.</description>
	</book>
	<book id="bk102">
		<author>Ralls, Kim</author>
		<title>Midnight Rain</title>
		<genre>Fantasy</genre>
		<price>5.95</price>
		<publish_date>2000-12-16</publish_date>
		<description>A former architect battles corporate zombies,  an evil sorceress, and her own childhood to become queen  of the world.</description>
	</book>
</catalog>

You can also comment/Uncomment, Validate and Enable syntax check using this plugin. I would suggest you to explore by yourself as it is very easy.

Summary

XML Tools plugin adds basic XML editing capability to Notepad++. Those are not advance one but it will get your work done.

I hope you found this useful. Please share and subscribe.

Share This:

1 thought on “XML Tools Plugin for Notepad++ – Features, Download, How to Install and Use”

Comments are closed.