有哪些替代语法可用于表达 XML?
存在哪些人类可读和人类可编辑的语法,可以在不损失表达能力的情况下自动与 XML 相互转换。换句话说,此列表的更新版本。其中提到的三种语法是:
- SOX
- PYX
- SLiP
还有其他语法吗? (这并不是关于 XML 的替代品,例如 JSON,而只是人们使用文本编辑器维护 XML 文件的更简单的方法)。
What human-readable and human-editable syntaxes exist that can be automatically converted to and from XML with no loss of expressivity. In other words, an updated version of this list. The three syntaxes mentioned there are:
- SOX
- PYX
- SLiP
Are there others? (This isn't about alternatives to XML, like JSON, but simply easier ways for humans to maintain XML files using a text editor).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
更多答案:
还有一些有用的链接:
Some more answers:
And some useful links:
如果您正在寻找一种简单查看和进行小调整的好方法,我强烈建议您简单地使用美化器和具有代码折叠功能的文本编辑器。我个人使用记事本++,但我确信还有许多其他软件具有这些简单的功能。
具有讽刺意味的是,我现在正在做这样的事情,作为我正在处理的缩进损坏的 XML 文件的中断。最初的开发人员的缩进工作得很好(它是一种非标准语言,库对此很差),但后来的开发人员给予了它......比应有的关注更少。
If you're looking for a good way to simply view and make small tweaks, I would highly recommend simply getting a beautifier and a text editor with code folding. Personally I use notepad++, but I'm sure there's dozens of others with those simple capabilities.
Ironically, I'm on SO right now as a break from an XML file I'm working on with broken indentation. The original developer had the indentation working well (it's in a non standard language for which the libraries are poor) but subsequent developers have given it... less care than it deserves.