1·However, the validator does require some additional metadata to be added to the syntax information and imposes some restrictions in its structure.
但是,验证器的确需要向这个语法信息添加一些额外的元数据并对其结构实施一些限制。
2·Thus far, I have discussed how to structure your XML to pave the way for using a schema validator.
到目前为止,我已经讨论了如何将 XML 格式化,以便为使用模式验证器铺平道路。
3·If you add this type of constraint at development time, the schema validator will reject the invalid data at runtime.
如果您在开发阶段加入这种类型的约束,在运行的时候模式验证器就会拒绝无效数据。
4·Doing so is not always bad, but in this case it has unwittingly kept the schema validator from helping out.
这种做法并不总是坏事,但是在本文的例子中却无意中妨碍了模式验证器的工作。
5·One useful application of this ability involves using the validator to automatically set default values for certain fields if they're not present in the POST submission.
这个功能的一个有用的应用是:如果某些字段没有出现在POST提交中,可以使用验证器自动设置这些字段的默认值。