The Validator also reports errors.
Validator也报告错误。
Step 1: Implement the Validator interface.
第1:实现Validator接口。
Setting up the XML validator and other options.
设置XML验证程序以及其他选项。
Listing 17 has the updated validator definition.
清单17中是更新后的验证器定义。
Check links and types with a domain validator.
检查带有域确认器的链接及类型。
Adding a validator attribute to the input component.
为输入组件添加验证器属性。
Implement the create method from the Validator API.
实现ValidatorAPI的create方法。
The add method appends a validator instance to the array.
add方法可将一个验证器实例追加到该数组。
The valid.js file contains a validator for required fields.
js文件包含一个针对所需字段的验证器。
Using a generic text editor plus an external validator.
使用常规文本编辑器,外加外部确认器。
Figure 10 shows what the ready.mobi validator says now.
图10展示了此时ready. mobi验证器所提供的信息。
String validatorID: The unique identifier of the validator.
String validatorID: 确认器的独特标识符。
Build the server-side validator for the server validator control.
为服务器验证控件构建服务器端验证器。
If needed the validator contacts the customer and updates the system.
如果需要,验证员将联系客户并更新系统。
The new validator class is now generated and opened in the workspace.
新确认器类现在得到了生成,并在工作区中打开。
A validator checks that the sitemap is valid for search engines to consume.
验证器用于验证一个站点地图是有效的,搜索引擎可以使用它。
Server field validator—adds server-side validation to HTML form fields.
服务器字段验证器 —向HTML表单字段添加服务器端验证。
EAttribute attribute: The attribute on which this validator should operate.
EAttributeattribute:该确认器应该操作的属性。
In essence, I was implementing my own on-the-fly validator for the bytecode.
从本质上说,我是在实现自己的字节码即时检验器。
The WSDL validator warns you at development time that the operations aren't unique.
WSDL验证器警告您在开发时操作不是唯一的。
The validator correctly flags 4 and 6 as composite (that is, non-prime) numbers.
验证器正确地将4和6 标记为合数(非素数)。
This situation isn't pretty, but a real-world validator tool needs to be aware of it.
这种情况不怎么好,但实用的验证程序工具必须能处理这种情况。
The new XML decomposition also has a strong type validator and type conversion engine.
新的XML分解还具有一个强大的类型验证器和类型转换引擎。
The domain validator can also include global validation logic for the entire domain.
域确认器还包含了整个域的全局确认逻辑。
Next, edit the AdminIndexAction validator to support these two parameters (Listing 2).
其次,编辑adminindexaction验证器以支持这两个参数(清单2)。
As the validator works, it keeps track of the running results as an in-memory XML file.
验证程序工作的过程中将运行结果记录到内存中的一个XML文件中。
Deleting the contents of the field will cause the validator to use the default location again.
删除这个字段的内容会导致验证器再次使用默认位置。
A domain validator contains logic that verifies that units are used properly in a topology.
一个域确认器包含了证实该单元在拓扑中适当应用的逻辑。
This ensures that error messages generated by the validator are correctly displayed in the form.
这确保验证器生成的错误消息正确地显示在表单中。
Thus far, I have discussed how to structure your XML to pave the way for using a schema validator.
到目前为止,我已经讨论了如何将XML 格式化,以便为使用模式验证器铺平道路。
应用推荐