Streaming validation of XML documents
First Claim
1. A method for streaming validation of eXtensible Markup Language (XML) documents, the method comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:
- A) sending the instructions over transmission media;
B) receiving the instructions over transmission media;
C) storing the instructions onto a machine-readable storage medium; and
D) executing the instructions;
wherein the instructions, when executed by one or more processors, cause the one or more processors to perform the steps of;
receiving a particular event of a series of events which is generated as an XML document is parsed by a parser, wherein the particular event indicates that the parser has encountered a particular part of the XML document;
receiving the particular part of the XML document from the parser;
determining a current validation state for the XML document, wherein the current validation state indicates a validation type associated with the particular part of the XML document, and wherein the current validation state is one of a plurality of validation states for the XML document; and
based at least on the current validation state, validating the particular part of the XML document against an XML schema that defines the structure of the XML document.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for streaming validation of XML documents is provided. A particular event of a series of events is received. The series of events is generated as an XML document is parsed by a parser, and the received particular event indicates that the parser has encountered a particular part of the XML document. The particular part of the XML document indicated by the particular event is then received. A current validation state for the XML document is determined. The current validation state, which is one of a plurality of validation states for the XML document, indicates a validation type associated with the particular part of the XML document. Based on at least the current validation state, the particular part of the XML document is validated against an XML schema that defines the structure of the XML document.
-
Citations
30 Claims
-
1. A method for streaming validation of eXtensible Markup Language (XML) documents, the method comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:
-
A) sending the instructions over transmission media; B) receiving the instructions over transmission media; C) storing the instructions onto a machine-readable storage medium; and D) executing the instructions; wherein the instructions, when executed by one or more processors, cause the one or more processors to perform the steps of; receiving a particular event of a series of events which is generated as an XML document is parsed by a parser, wherein the particular event indicates that the parser has encountered a particular part of the XML document; receiving the particular part of the XML document from the parser; determining a current validation state for the XML document, wherein the current validation state indicates a validation type associated with the particular part of the XML document, and wherein the current validation state is one of a plurality of validation states for the XML document; and based at least on the current validation state, validating the particular part of the XML document against an XML schema that defines the structure of the XML document. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
-
27. A computer system for streaming validation of an extensible Markup Language (XML) document, comprising:
-
a stack of stack-elements, wherein the stack-elements represent schema components of an XML schema, wherein the XML schema defines the structure of the XML document; and a validation driver that is operatively connected to the stack, wherein the validation driver is configured to; receive, from a parser, a series of events which is generated as the XML document is parsed by the parser, wherein the series of events includes at least one start-element event which indicates that the parser has encountered at least one part of the XML document; and for each of the at least one part of the XML document; receive that particular part from the parser; determine a current validation state for the XML document based on information that is stored in a current stack-element that is on top of the stack; and validate that particular part based at least on the current validation state. - View Dependent Claims (28, 29, 30)
-
Specification