个人日记XML格式?

Personal diary XML formats?

我想知道存在哪些开源标准 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 格式:

  • xCal (RFC-6321) 是 iCalendar 的 XML 格式。
  • WS-Calendar 是 OASIS 的标准日历格式。

您可以为日记条目使用描述或注释字段,并且互操作性会比专有日记格式更好。