Applying abstraction to object markup definitions
    1.
    发明申请
    Applying abstraction to object markup definitions 有权
    将抽象应用于对象标记定义

    公开(公告)号:US20050039124A1

    公开(公告)日:2005-02-17

    申请号:US10626340

    申请日:2003-07-24

    IPC分类号: G06F17/27 G06F17/21

    CPC分类号: G06F17/2725

    摘要: Techniques are disclosed for enabling a validating parser to interpret a schema, where that schema may have been extended to multiple levels, and to perform the validation of a structured document according to the extended schema while still allowing a consumer application to request objects or events that are cast at some different level of the schema (including the base schema). Validating the source document according to an extended (i.e., more specific) schema enables improved detection of syntax errors. At the same time, casting objects and events from the parsed document to a level requested by the consumer application allows the consumer to receive only those objects or events for which it is adapted, without requiring the consumer application to include extra code to deal with objects or events it does not recognize in the parser's output. Preferably, the parser simply discards those objects or events which this consumer is not interested in receiving.

    摘要翻译: 公开了用于使验证解析器解释模式的技术,其中该模式可以被扩展到多个级别,并且根据扩展模式来执行结构化文档的验证,同时仍然允许消费者应用请求对象或事件 在模式的一些不同级别(包括基本模式)中被转换。 根据扩展(即更具体)的模式来验证源文档能够改进对语法错误的检测。 同时,将解析的文档中的对象和事件从消费者应用程序转换到消费者应用程序所要求的级别,允许消费者仅接收适用于其的对象或事件,而不需要消费者应用程序包含额外的代码来处理对象 或在解析器的输出中无法识别的事件。 优选地,解析器简单地丢弃该消费者不想接收的那些对象或事件。