Listing 3 (test2.xml) is an example of an invaliddocument.
清单3 (test2 . xml)是一个无效文档的示例。
2
Intentionally produce an invaliddocument for several reasons and see what happens.
故意出于不同的原因生成一个无效文档并看看会发生什么。
3
The second sample document, as shown in Listing 3, contains well-formed XML, but is an invaliddocument according to the corresponding XML schema since the required element is missing.
第二个示例文档如 清单 3 所示,它包含格式良好的 XML,但是根据相应的 XML 模式,它是无效的文档,因为缺少必需的 元素。