用于描述目录树的文件属性的XML语言? [英] An XML language for describing file attributes of a directory tree?
问题描述
我有一个应用程序,它将以文本形式记录文件
系统的目录列表。也就是说,应该这样说:
文件名是:abc.txt
最后修改日期是:2009 -12-31T01:23
只读属性是:True
隐藏属性是:False
这些列表在长期存档中将持续多年,所以对于未来的信息考古学家来说,这种语言应该是不言而喻的。该语言应该能够描述常用PC平台文件系统的最常用文件属性:NTFS,FAT,HFS +,ext2 / 3等。它应该能够处理非拉丁文件名,不同的时间戳语义在不同的文件系统上,等等。
当然,构造这个数据的语言的明显选择是
某种基于XML的语言。任何人都可以指向一个已经存在
的语言来描述文件属性和
目录属性的层次结构,就像在一个文件系统中一样?我希望从语言设计者为了获得正确的语义而创建的工作中受益,创建模式或DTD,计算出是否应该是XML元素或属性等的细节。
我看了一下很明显的地方: http://xml.coverpages。 web 请建议我应该调查的语言。它有助于获得语言的名称,以及一个指向URL的指针,在该URL中描述了语言及其相关工具,语法定义等。 ! I have an application in mind which will record directory listings of a file
system in text form. That is, it should say something like: The listings will persist for years in a long-term archive, so the language should be self-evident to an information archaeologist of the future. The language should be able to describe the most commonly-used file attributes of common PC platform file systems: NTFS, FAT, HFS+, ext2/3, etc. It should be able to handle non-Latin file names, different semantics for time stamps on different file systems, etc. Of course, the obvious choice of a language for structuring this data is
some XML-based language. Can anyone point me to a language which already
exists for describing hierarchical structures of file attributes and
directory attributes, as in a file system? I'm hoping to benefit from the work those language designers did to get the semantics right, create the schema or DTD, work out the niggling details of whether something should be an XML element or attribute, etc. I've looked in the obvious places: http://xml.coverpages.com, web
search engines, the archives of XML-L and comp.text.xml, and here. I didn't find any traces of such languages. The search was complicated a bit because the search term "file attributes" gets lots of hits on the term attributes as used in XML. Please suggest languages I should investigate. It helps to have the name of the language, and a pointer to a URL where the language and its related tools, syntax definitions, etc. are described. Thanks in advance! Tree size is using an XML format to describe directory and file trees. 这篇关于用于描述目录树的文件属性的XML语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
搜索引擎, XML-L 和 comp.text.xml 的存档和这里。我没有发现这种语言的任何痕迹。搜索很复杂一点,因为搜索词文件属性在XML中使用的术语属性获得大量的命中。
File name is: abc.txt
Last modification date is: 2009-12-31T01:23
Read-only attribute is: True
Hidden attribute is: False