62

I use XML Editor from XMLmind for editing/viewing XML file in Mac.

It's not bad, but I expect an XML editor for Mac. What options do I have including the commercial/free software?

hairboat
  • 2,903
  • 18
  • 51
  • 72
prosseek
  • 5,694

15 Answers15

23

OS X Software for Editing XML

emallove
  • 190
  • 1
  • 5
  • 11
    Of the many mentioned here, which is your recommendation? Which is better featured? Which is more Mac-like in behaviour? – Vihung Jun 28 '12 at 11:06
  • Please repair the link to EditX that now is not free. Linked is an old version for PowerPC – hectorpal Jan 21 '16 at 02:20
  • ONE colud also use the new Visual Studio Code Editor (my favorite Editor by now) or Atom or MacVIM or Xcode,Netbeans,Eclipse,IntellijIDEA (basically any Programming IDE does also Support XML Syntax Highlighting and most of the also have Code Completition) if you need also DTD/XSD Validation the you need to take a closer look – konqui Aug 11 '16 at 18:55
  • oXygen. Worth every dollar. – james.garriss Mar 13 '17 at 18:50
  • 1
    URL of XMLMate is dead. – Hauke Mar 05 '19 at 10:36
  • The most Mac-like, by far, are Xmplify, then XML Edita, in that order. – Cykelero Jul 21 '20 at 12:54
9

Eclipse works on Mac OS and it is one of the best XML editor around, actually. It has XSD validation, autocompletion towards this schema. Also, it offers a graphical XSD designer.

rds
  • 231
8

Although it's still a beta I have found Xmplify to be a pretty useful XML aware tool. Copes with DTD, XSD, XPath and XSL transformation in the tool

Kevin
  • 4,142
5

IntelliJ IDEA is overall a good IDE, it's available on Mac, and it supports editing XML in ways such as syntax highlighting, collapsing a given scope, and validating XML. I haven't used it much for XML, but I've had good experiences with that IDE for other purposes so thought I would mention it here.

Scott H
  • 171
5

And of course Emacs with psgml-mode or nxml-mode will edit XML.

  • Welcome to Ask Different. We like answers to be more than just a single line. Ideally, you want to explain why your answer is *right." It also helps to provide links, citations, and/or screen shots. Please review our help section How to Answer on writing good answers to questions – Allan Aug 11 '16 at 14:36
3

Testing this and that, I settled down with Text Wrangler, with XML Tidy script. It's free and pretty useful for my purposes.

prosseek
  • 5,694
  • 1
    XML Tidy does indentation ... and I believe it checks well-formedness. Apparently xmllint, which the XML Tidy script uses, can validate. Can you validate XML using XML Tidy within Text Wrangler? – LarsH May 16 '16 at 15:57
2

I found a simple and free software to view, no editor: XML Spy

  • Welcome to Ask Different! We're trying to find the best answers and those answers will provide info as to why they're the best. Explain why you think the software you recommended is better than others out there. See [answer] on how to provide a quality answer. - From Review – fsb Dec 12 '17 at 17:48
  • 1
    @fsb thanks, my suggestion is based that is program is free and simple, fit well for me :) – Jonas WebDev Dec 12 '17 at 21:58
  • That's good but it doesn't tell us anything about the software, why you like it, how it will fit the needs of the OP, etc. We prefer answers to be more than just 1 line. See [answer] for tips. – fsb Dec 12 '17 at 22:11
  • 1
    @fsb the top-rated answer here just rattles off a list of software, with not "tell[ing] us anything about the software, why you like it, how it will fit the needs of the OP, etc." It's not fair to hold Jonas to a different standard than those who have been here a long time. – Conrad May 30 '20 at 16:08
  • @Conrad I’m holding Jonas to the same standard according to the [help]. Site users can downvote answers that don’t follow the site rules, regardless of how long the author has been here. I was trying to help Jonas improve his answers. You question really belongs on the [meta] site and you’re free to address it there. – fsb May 31 '20 at 01:50
2

If you have the Apple Developer Tools installed, then you have Xcode and this includes the "Property List Editor" application (Apple plist files are in XML format, hence the name).

You can find the application here:

/Developer/Applications/Utilities/Property List Editor.app
shim
  • 418
  • 6
    I don't think the Property List Editor can deal with generic XML files, it's intended to edit a specific .plist format. – ghoppe Feb 16 '11 at 20:11
  • 1
    ^ This is true (what ghoppe said). And even now that it's integrated into Xcode, no longer standalone, you just get the raw color coded code with line numbers. No disclosure triangles, etc. like a .plist file gives you. – NOTjust -- user4304 May 08 '13 at 22:37
  • Well, Xcode complaint on an XML not being in the right format. So... it's not exactly generic. – hectorpal Jan 21 '16 at 02:18
1

As an alternative to XMLmind XML Editor there's QXmlEdit It is also free and quite feature rich. It's written in Qt and runs on Mac as well as the other platforms Qt supports.

Phil
  • 111
1

I always believe that an open source is the best and simple solutions. You can try BlueFish, or Brackets, I strongly advise you to try it, you won't lose anything.

Sam
  • 11
1

TextMate.

You can download the source code from GitHub and compile it locally. Then in the preferences install the appropriate language bundle. https://github.com/textmate/textmate

If you like the application I would recommend buying the commercial version to show your support to the author.

thetitan
  • 167
0

I'm looking for the same thing, and I just came across XMLmind XML Editor. I like how it can load my files pretty quickly.

@rds: I've tried using Eclipse to open my XML files, but it would hang with my files (>15MB). I've come to notice any editor built with Java hangs upon trying to open my file, or at least takes an unbearably long time to load it.

daviesgeek
  • 38,901
  • 52
  • 159
  • 203
jde
  • 1
0

I like the look of http://www.sublimetext.com/2 as seen in a Daniel Shiffman tutorial

the r
  • 1
0

Another option is Microsoft VS Code with an XML extension...

I'm using: https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml

You can Cmd+Shift+P and type "XML" to find the utils provided by the extension.

Some keyboard shortcuts are provided, e.g. Ctrl+Shift+Alt+B to format nicely.

Or find elements by XPath query, or display the XPath of the highlighted element.

-2

You can try all in one JSON viewer or all in one XML viewer.

enter image description here

nohillside
  • 100,768
  • Other than the links being swapped (The JSON link goes to the XML viewer and the XML link goes to the JSON viewer), why has this been downvoted?

    I have used both of these to beautify code for publication many times.

    – August Mar 29 '23 at 22:45
  • I guess even though the question asks for a viewer/editor, reading the question they really want an editor. – Matt Sephton Jun 29 '23 at 20:40