54

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

21

OS X Software for Editing XML

| improve this answer | |
  • 9
    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
  • 1
    URL of XMLMate is dead. – Hauke Mar 5 '19 at 10:36
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

| improve this answer | |
7

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.

| improve this answer | |
  • 1
    Just to add: Ctrl/⌘ + Shift + F will format the XML. – arun Apr 7 '17 at 18:38
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.

| improve this answer | |
  • Allows folding/collapsing elements to more-easily view the structure and change the order. – automorphic Mar 30 at 16:36
5

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

| improve this answer | |
  • 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.

| improve this answer | |
  • 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" application (Apple plist files are in XML format, hence the name).

You can find the application here:

/Developer/Applications/Utilities/Property List Editor.app
| improve this answer | |
  • 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
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.

| improve this answer | |
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.

| improve this answer | |
1

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

| improve this answer | |
  • 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
  • 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 How to Answer for tips. – fsb Dec 12 '17 at 22:11
  • @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 at 16:08
  • @Conrad I’m holding Jonas to the same standard according to the help center. 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 Ask Different Meta site and you’re free to address it there. – fsb May 31 at 1:50
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.

| improve this answer | |
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.

| improve this answer | |
  • 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

| improve this answer | |
-3

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

enter image description here

| improve this answer | |

You must log in to answer this question.

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