views:

2164

answers:

10

Good XML tools abound, but when it comes to creating (authoring) XSD files (XML schemas), things really don't look good.

Most XML editors do the basic: it let you create stuff, with menus for the proper elements. They don't HELP you in any way, though. A few tools have more advanced features, like creating an XSD based on a sample of XMLs.

Now, giving advice on good practice, or offering libraries of sample XSDs with wizards to customize them? I haven't seen it.

So, what do you consider the BEST XML schema authoring tool?

+2  A: 

XML Spy for me.

duffymo
+1  A: 

Xml Pad for me.

http://xmlpad.com/

Jobo
A: 

Having used several different XML tools, I prefer Stylus Studio.

Paul Lefebvre
+2  A: 

I like the Eclipse XSD editor (included e.g. in Eclipse for Java EE), though for me nothing beats generating the XSD from source code, if that is an option.

Fabian Steeg
"though for me nothing beats generating the XSD from source code" - reminds me of chicken and egg, personally I'd rather have the spec first and then code, but I can see your perspective (working code, yeah I'd be happy to get a schema from that).
bigredbob
@bigredbob I don't think generating the XSD from code and writing the spec first have to contradict - often when persisting objects to XML you already have the spec: the classes in your language. In such a case the XSD is just a different format for the spec, which is often maintained in parallel with the code. Generating the XSD from the code in such a case can avoid that sort of duplication.
Fabian Steeg
+2  A: 

Visual Studio has an XSD utility that does an adequate job of generating an xsd from an xml sample or a class or vice versa or most combinations of xsd, class and xml.

Brody
+2  A: 

Altova's XML Spy has a nice feature set and a powerful GUI.

Tom Conder
+2  A: 

Liquid XML Studio can generate schemas based on multiple samples. It represents schemas graphically and enables editing both with drag&drop and context drop-down menus on the graphical representation as well as on the XML with auto-completion. It also comes with many validating schemas for various standards.

It does assume you know what you are doing, though, and has no wizards. At least on the community (free) version.

Daniel
It bothered me to name a product in a question. I decided I shouldn't have done it and removed it to an answer. Since there are other answers already, it shouldn't look like I'm answering my own question. Because, truly, I'm not. This product is not what I'm looking for.
Daniel
+1  A: 

The best one I've used so far is oXygen XML Editor. It's a little cheaper than XML Spy.

sapporo
A: 

Another vote here for the Eclipse XSD and XML Editor, the code completion is so familiar to what Eclipse developers are used to this means you can create your own templates for code-assistance.

The visual editor / diagrammer is also really clear.

+1  A: 

I've tried XML Spy, Liquid XML, Serna XML, and oXygen XML Editor.

oXygen XML Editor wins hands down (Liquid is a close second). It easily infers sample XSD from XML and XML from XSD. The inferred XSD is created using spliced/divided XSD code that is easier to follow and more understandable. The various views are extremely useful (Text, Grid, Author, and Design). There is even a Documentation tool, which easily transforms all your hard work in to a well-documented pdf file.

thecraic