48

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?

  • Are you just editing XML specific to the Mac (like 'plist' and 'sdef') or are you editing a variety of schemas? – Philip Regan Feb 15 '11 at 20:04
  • @Philip : I wanted a general solution to parse the XML files. – prosseek Feb 15 '11 at 21:18
  • Obligatory: vim is good enough for me! – Jason Salaz Sep 25 '12 at 23:14

14 Answers 14

20

OS X Software for Editing XML

  • 7
    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 2: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
  • URL of XMLMate is dead. – Hauke Mar 5 at 10:36
7

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

6

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.

  • 1
    Just to add: Ctrl/⌘ + Shift + F will format the XML. – arun Apr 7 '17 at 18:38
4

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.

  • 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

If you have the Apple Developer Tools installed, then you have XCode and this includes the Property List Editor app (Apple preference plist files are often in XML format, hence the app name).

You can find the app here: /Developer/Applications/Utilities/Property List Editor.app

  • 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 8 '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 2:18
2

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.

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.

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.

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.

  • The OP already mentioned XMLmind. – guwac Nov 14 '12 at 14:53
  • Also, XMLmind is Java, so shouldn't it hang as well, @jde? – hd1 May 13 '14 at 0:27
0

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

0

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.

0

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 How to Answer on how to provide a quality answer. - From Review – fsb Dec 12 '17 at 17:48
  • @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 How to Answer for tips. – fsb Dec 12 '17 at 22:11
-2

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

enter image description here

You must log in to answer this question.

protected by nohillside Dec 22 '17 at 5:13

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .