# Need a (free) XML editor

**URL:** <https://boards.straightdope.com/t/need-a-free-xml-editor/759814>\
**Category:** In My Humble Opinion\
**Created:** [July 13, 2016, 2:09pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814 "2016-07-13T14:09:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoCoolUserName](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@NoCoolUserName](https://boards.straightdope.com/u/NoCoolUserName)\
**Post date:** [July 13, 2016, 2:09pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/1 "2016-07-13T14:09:10Z")

</div>

Here’s a factual question: What XML editor would you recommend?

---

<div class="post-metadata">

**Author:** ![gnoitall](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@gnoitall](https://boards.straightdope.com/u/gnoitall)\
**Post date:** [July 13, 2016, 2:11pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/2 "2016-07-13T14:11:30Z")

</div>

vi

No, I’m not joking, even if it seems that way.

But I’m a sick sick man. Being a sysadmin is something you never really recover from.

Let me ask the logical counter-question. What platform or operating system? That affects what’s available.

---

<div class="post-metadata">

**Author:** ![Dewey\_Finn](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dewey_finn/32/4222_2.png) [@Dewey\_Finn](https://boards.straightdope.com/u/Dewey_Finn)\
**Post date:** [July 13, 2016, 2:15pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/3 "2016-07-13T14:15:22Z")

</div>

Reported for move to IMHO.

---

<div class="post-metadata">

**Author:** ![NoCoolUserName](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@NoCoolUserName](https://boards.straightdope.com/u/NoCoolUserName)\
**Post date:** [July 13, 2016, 2:26pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/4 "2016-07-13T14:26:55Z")

</div>

> [@gnoitall](#):
>
> vi
> 
> No, I’m not joking, even if it seems that way.
> 
> But I’m a sick sick man. Being a sysadmin is something you never really recover from.
> 
> Let me ask the logical counter-question. What platform or operating system? That affects what’s available.

I would use vi, but I’m forced to be on Windows so I’m hoping for an editor that will at least format the XML in a useful fashion.

---

<div class="post-metadata">

**Author:** ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)\
**Post date:** [July 13, 2016, 2:27pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/5 "2016-07-13T14:27:52Z")

</div>

Notepad ++

---

<div class="post-metadata">

**Author:** ![Raza](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/raza/32/213_2.png) [@Raza](https://boards.straightdope.com/u/Raza)\
**Post date:** [July 13, 2016, 2:29pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/6 "2016-07-13T14:29:12Z")

</div>

I use XML Notepad, mainly for the schema validation, but I am not really _creating_ the XML there, I’m just validating and tweaking output from one of my programs.

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [July 13, 2016, 2:45pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/7 "2016-07-13T14:45:49Z")

</div>

Atom editor: [https://atom.io/](https://atom.io/)

---

<div class="post-metadata">

**Author:** ![Francis\_Vaughan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/francis_vaughan/32/3093_2.png) [@Francis\_Vaughan](https://boards.straightdope.com/u/Francis_Vaughan)\
**Post date:** [July 13, 2016, 3:53pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/8 "2016-07-13T15:53:44Z")

</div>

What is the use case of the XML?

You can edit XML in any ascii text editor. It is however painful. Despite appearances, XML is not really useful for humans to edit directly. A few lines, sure, and maybe modify a tiny snippet to fix a problem or execute a hack. For that anything from vi up. Emacs would be my choice, but I have been known to patch XML with vi.

But for anything serious you want XML aware tools. Emacs will get you a minimal set. After that you really want to be thinking about the actual XML schema you are using, and what you are doing with it. Generating XML from scratch is not a job for human beings. Personally I tend to use Python and the PyXML library. YMMV.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [July 13, 2016, 3:59pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/9 "2016-07-13T15:59:15Z")

</div>

**Moderator Action**

Listing free editors would be factual enough, but recommendations tend to involve opinions. Let’s move this to IMHO so that folks can give their opinions on different editors as well.

Moving thread from GQ to IMHO.

---

<div class="post-metadata">

**Author:** ![xizor](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/xizor/32/102_2.png) [@xizor](https://boards.straightdope.com/u/xizor)\
**Post date:** [July 13, 2016, 4:52pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/10 "2016-07-13T16:52:05Z")

</div>

> [@ZipperJJ](#):
>
> Notepad ++

I second this suggestion.

---

<div class="post-metadata">

**Author:** ![RickG](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/rickg/32/5174_2.png) [@RickG](https://boards.straightdope.com/u/RickG)\
**Post date:** [July 13, 2016, 9:27pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/11 "2016-07-13T21:27:56Z")

</div>

On virtually any platform, the [Eclipse](https://eclipse.org) platform has a pretty good XML editor built in. It’s an IDE, mostly (but not entirely) focused on Java, but it’s pretty good for any type of code.

On the Mac, [BBEdit](http://barebones.com) is the gold-standard text editor. It has a full-featured 30-day trial, after which the paid features become unavailable, but the free features are still pretty damn good.

Also on any platform, you could use emacs. Who doesn’t love emacs? Soooooo cuddly.

---

<div class="post-metadata">

**Author:** ![Small\_Clanger](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Small\_Clanger](https://boards.straightdope.com/u/Small_Clanger)\
**Post date:** [July 14, 2016, 11:49am UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/12 "2016-07-14T11:49:33Z")

</div>

It depends on what you want to do with the file.

I use different editors depending on whether I want to…

Run macros  
Edit element values  
Search/replace - copy/paste  
Validate against an XSD

There’s no need to be restricted to a single tool.

But Notepad++ is a good place to start.

If you don’t already know vi… probably don’t start there.

---

<div class="post-metadata">

**Author:** ![Suburban\_Plankton](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/suburban_plankton/32/219_2.png) [@Suburban\_Plankton](https://boards.straightdope.com/u/Suburban_Plankton)\
**Post date:** [July 14, 2016, 3:13pm UTC](https://boards.straightdope.com/t/need-a-free-xml-editor/759814/13 "2016-07-14T15:13:51Z")

</div>

Notepad++ has a vi simulator plugin, by the way…so you can have the best of both worlds!
