Code2care : TechZone Apps & Tutorials

Indent XML Formatting In Notepad++



XML files are really hard to read if not in proper indentations. A easy way to do so is by using text editors like sublime and notepad++.

If you have a xml file with data unformatted, notepad++ is a great tool to format (indent or prettify) your xml file contents.

But the XML formatting plugin is not added to notepad++ by default. So you need to download libXML2-based plugin called XML tools


Dowloading XML tools plugin


    Go to notepad++ menu, under Plugins -> Plugin Manager -> Show plugin Manager.

    Plugin Manager Notepad++
    Now look for XML tools and tick the respective check-box, and Download the plugin.

    Select XML Tools under Plugin Manager Notepad++
    Download XML Tools Notepad++
    You will be asked to restart notepad++ after the plugin is installed to take effect.


Lets test the xml plugin


    Open your xml file that needs to be formatted.

    XML file unformatted data
    Now go to Plugins -> Plugin Manager -> XML Tools -> Pretty Print (XML Only), you will see that the data of the xml file is now well formatted.
    Pretty print XML in Notepad++ using XML tools

    Result :

    Result - XML file Prettified using Notepad++


With XML tools plugin you can do a lot with xml files, some of the features this tool has,
  • Pretty print.
  • XML Syntax Checker.
  • Linarize XML.
  • XML Schema (XSD) + DTD Validation.
  • XML tag autoclose.
  • Current XML Path.
  • XPath expression evaluation.
  • Conversion XML to Text/Text to XML.
  • Comment / Uncomment.



Top





Posts related to notepadplusplus.


1. How to Do Column Mode Editing in Notepad++

2. Setting up Cloud feature with Notepad++

3. Base64 Encoding Decoding In Notepad++

4. Add blank lines after each lines using Notepad++ text editor

5. 97 Useful Notepad++ Keyboard Shortcuts List

6. Compare Files with Notepad++ Plugin

7. Convert SQL to CSV in Notepad++

8. 15 Notepad++ Editor alternatives for Mac OS X

9. Disable Control Scroll Zoom-in and Zoom-out in Notepad++

10. How to Convert CSV file to SQL Script using Notepad++

11. Using Document Map in Notepad++

12. Add Blank Lines Notepad++

13. How to remove blank lines from a file using Notepad++

14. Add Text at Start and End of Each Line Notepad++

15. Indent XML Formatting In Notepad++

16. Replace tabs by spaces or comma Notepad++

17. ASCII to HEX and HEX to ASCII Conversion Notepad++

18. Error opening file for writing Notepad++ Setup

19. Launch Notepad++ html document in any web browser

20. How to do Multi-Line Editing in Notepad++

    more...
Code2care : Lines of Code for Change
Code2care is an initiative to publish and share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities.





Android app on Google Play    








Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17