开发者

How to use emacs nxml mode validate certain xml file using xsd schema?

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 mak开发者_JAVA技巧e this loader for xsd file extension?

Thanks for advice


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/.


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜