代表性样本测试XML文件 [英] Representative sample test XML file
问题描述
我正在为典型的应用程序寻找一个具有代表性的示例测试XML文件.它应包含所有典型的XML功能,例如
I'm looking for a somewhat representative sample test XML file for a typical application. It should contain all typical XML features, such as
- 具有和不具有属性的元素
- 文本(结构化和非结构化)
- 命名空间
- CDATA
- DTD/实体声明
- 评论
- 处理说明
以及一些大约50kb或更多的半敏感数据.有人知道这样的样本文件吗?它应具有与Apache 2.0或类似版本兼容的许可证
And some half-sensible data of around 50kb or more. Does anyone know such a sample document? It should have a license compatible with Apache 2.0 or similar
推荐答案
-
您可以查看XSL示例,例如 这 涉及带有DTD和XSL的XML.这三个都是XML文档,每个文档都具有(几乎)全套XML功能.
You can have a look at XSL examples like this involving either XML with DTD and XSL. All three are XML documents each one with an (almost) full set of XML features.
对于涉及名称空间和属性的其他基本文档,您可能有兴趣查看W3C XSL测试套件.例如,您可以直接下载 .fo基本文件来自FOP供应商.
For other basic documents involving namespace and attributes you might be interested in looking at the W3C XSL test suite. For example, you can directly download a .fo basic file from FOP vendor.
其他显而易见的收集有用示例的地方是W3School的各种教程,例如 DTD示例, SOAP示例,
Other, obvious, place to gather useful examples is at the various tutarials of W3School like in DTD examples, SOAP examples, XML CData examples and so on
这篇关于代表性样本测试XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!