如何使用emacs nxml模式使用xsd模式验证某些xml文件?

xjt*_*zyc 5 xml emacs schema xsd nxml

我已经安装了GNU emacs 23.2.1和nxml-mode-20041004.

我想使用xsd文件验证xml文件,但emacs抱怨

没有可用于文件扩展名的模式加载器`xsd'

我怎么能为xsd文件扩展名创建这个加载器?

谢谢你的建议

mzj*_*zjn 4

您不能使用 W3C XML 架构 (xsd)。Emacs nxml-mode 使用紧凑语法 RELAX NG 模式 (rnc) 验证 XML 文档。

有关更多信息,请参阅https://www.gnu.org/software/emacs//manual/html_node/nxml-mode/Introduction.html