Applying abstraction to object markup definitions
First Claim
1. A method of selecting an abstraction level to use when generating parser output, comprising a step of requesting generation of parser output, by a parser that parses an input, such that the generated output adheres to a different syntax level than a syntax level used when validating the input.
2 Assignments
0 Petitions
Accused Products
Abstract
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.
-
Citations
31 Claims
- 1. A method of selecting an abstraction level to use when generating parser output, comprising a step of requesting generation of parser output, by a parser that parses an input, such that the generated output adheres to a different syntax level than a syntax level used when validating the input.
-
4. The method according to claim 4, wherein the structured document is encoded in Extensible Markup Language (“
- XML”
).
- XML”
- 13. A method of casting objects, further comprising a step of validating an input according to a first syntax level while generating output, from the input, according to a second syntax level.
-
24. A system for applying abstraction to object markup definitions, further comprising:
-
a validating parser;
first means for using the validating parser to validate an input document expressed as an object markup definition, wherein the validation is performed according to a syntax level which allows the object markup definition to be successfully validated; and
second means for using the validating parser to apply abstraction to the object markup definition when generating an output object, responsive to the first means, wherein the application of abstraction generates the output object according to a different syntax level which would not allow the object markup definition to be successfully validated. - View Dependent Claims (25)
-
-
26. A computer program product for improved parsing of input, the computer program product embodied on one or more computer-usable media and comprising:
-
computer-readable program code means for validating an input according to a first schema, wherein the first schema defines a first level that enables content in the input to be successfully validated; and
computer-readable program code means for generating one or more output objects according to a second schema, upon parsing the successfully-validated content in the input, wherein the second schema defines a second syntax level that does not enable the content in the input to be successfully validated. - View Dependent Claims (27, 28, 29, 30)
-
-
31. A method of doing business by providing improved validation and parsing for clients, comprising steps of:
-
providing a validating parser that enables a client to dynamically select an abstraction level for use when generating output from the validating parser;
obtaining an input document to be validated and parsed for the client;
validating the input document with the provided validating parser, wherein the validation is performed according to a first syntax level associated with syntax specified in the input document;
generating output from the input document with the provided validating parser, wherein the generated output has syntax that conforms to the abstraction level that has been dynamically selected by the client and wherein the abstraction level is a refinement of the first syntax level; and
charging a fee for at least one of the providing, obtaining, validating, and generating steps.
-
Specification