博客和/或 CMS 的 XML 格式
我正在编写自己的博客/CMS 引擎(使用 WebApp 和 Google App Engine),并且正在寻找一种轻量级 XML 格式来用于内容存储。
是否有一些现有的格式可用于此目的? 也许是 DocBook 或 ePub 格式的某些子集? 我看了一下这些,它们对于我想做的事情来说似乎有点过分了。
另外,WXR (Wordpress eXtended RSS) 或 Pluxml (pluxml.org) 中的一个也可能适合。
有什么想法吗?
I'm writing my own blog/CMS engine (using WebApp and Google App Engine), and I'm looking for a light-weight XML format to use for content storage.
Is there some already existing format that could be used for this purposes?
Maybe some subset of the DocBook or ePub format?
I had a look at those and they seem to be a little of overkill for what I want to do.
Then again WXR (Wordpress eXtended RSS) or the one from Pluxml (pluxml.org) might be suited as well.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就博客内容的格式而言,很难击败 Atom。
也就是说,XML 提供了一种非常好的传输机制,但是却提供了一种相当差的存储机制。真正的数据库通常是更好的选择。
As far as formats for blog content go, it is hard to beat Atom.
That said, XML makes for a really good transport mechanism, but a fairly poor storage mechanism. A real database is usually a better bet.
如果这是为了与特定平台兼容,那么遵循其定义的架构将是一个好主意。否则,只需构建您自己的 XML 就可以了,因为 XSLT 使您能够根据需要将数据转换为其他格式。
If this is for compatibility with a specific platform, following their defined schema would be a good idea. Otherwise, just structuring your own XML will work since XSLT gives you the ability to transform the data to other formats as needed.