【发布时间】:2015-03-19 16:49:00
【问题描述】:
我想知道存在哪些开源标准 XML 格式来实现可能由个人日记移动或桌面应用程序实现的所有数据(您可以添加的所有可能的功能已经被这种格式支持)。我搜索了互联网,但没有找到任何东西。理想情况下,我所追求的格式将得到广泛实施和支持,并允许轻松地将日记数据备份到服务器,并在一个日记应用程序和另一个应用程序之间来回传输日记数据。当然,最基本的日记只需要这种 XML 文件格式支持的所有功能的一个子集(只是一个日期列表,每个日期都有自己的纯文本注释)。
以下格式着眼于我在一个开放的可互操作标准 XML 中寻找的一些更基本的功能,用于日记文件格式实现:
<?xml version="1.0">
<diary>
<day date="2015-03-01">
<entry categories="dream" topics="mary,lunch">
<text>
Today I dreamt about having lunch with mary in the park. At the end I got scared and ran away.
</text>
</entry>
<entry categories="storytelling idea" topics="engineering,flying">
<text>
Today I was walking to school. One thought that came to me was that of a flying bycicle. I came up with everything required to build one. Now I just need to find all the pieces and assemble them.
</text>
</entry>
</day>
<day date="2015-03-02">
<entry categories="thoughts" topics="beach">
<text>
If everybody went to the beach on the very same day, people would be sitting one on top of the other. It would be really crowded!
</text>
<image src="images/beach001.jpg" />
</entry>
</day>
</diary>
【问题讨论】:
-
你可以定义你自己的,你知道的。当然,除非您在问题中未指定其他软件要求。 XML 已经是一种广泛支持的格式,即使它是自定义定义。
-
是的,没错,我可以定义我自己的,但我更愿意依赖满足软件互操作性要求的标准。如果我自己定义,除了用于创建日记笔记的软件之外,没有其他软件能够阅读它,这对我来说是一个真正的问题。
-
还有哪些软件使用日记本?回答这个问题,你可能会有你的格式。否则,这只是假设,因为您和我的 Google 搜索似乎都没有出现。
标签: xml xsd file-format