6

I have installed GNU emacs 23.2.1, and nxml-mode-20041004.

I want to validate an xml file using an xsd file, but the emacs complain

No schema loader available for file extension `xsd'

How could I make this loader for xsd file extension?

Thanks for advice

xjtuzyc
  • 61
  • 1
  • 2

2 Answers2

4

You cannot use a W3C XML Schema (xsd). Emacs nxml-mode validates XML documents using a compact syntax RELAX NG schema (rnc).

For more information, see http://infohost.nmt.edu/tcc/help/pubs/rnc/.

mzjn
  • 48,958
  • 13
  • 128
  • 248
4

You can't, but you can try to convert the xsd schema to (rng/rnc), it's not a 100 % accurate, see this question: xsd to rnc (or rng) conversion (unix command line)

Community
  • 1
  • 1
antonj
  • 21,236
  • 6
  • 30
  • 20