Methods and apparatus for parsing extensible markup language (XML) data streams
First Claim
1. A computer-implemented method comprising computer-executable instructions for parsing an Extensible Markup Language (XML) data stream comprising:
- defining a schema comprising a plurality of states, individual states being associated with individual elements of an XML data stream, wherein the individual elements comprises one or more rules for processing the associated individual states;
associating one or more rules with each state;
receiving the XML data stream;
evaluating the XML data stream against one or more of the rules for individual elements contained in the XML data stream; and
disregarding associated portions of the XML data stream if any of the rules that are associated with those portions are violated.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and structures for parsing an Extensible Markup Language (XML) data stream are described. In the described embodiment, one or more schema modules are defined and are associated with HTTP requests that are received from a client. The schema module(s) has a function that determines whether an XML data stream conforms to a given schema that is associated with the HTTP request. If a portion of the XML data stream does not conform to the given schema, then the schema module disregards that XML data stream portion. In the described embodiment, each schema module has a plurality of states associated therewith. Each state is associated with one or more schema requirements that relate to a particular element that is evaluated by the schema module. Each state is different from the other states and the number of states is a function of the number of layers or elements that are contained within a particular XML data stream.
15 Citations
18 Claims
-
1. A computer-implemented method comprising computer-executable instructions for parsing an Extensible Markup Language (XML) data stream comprising:
-
defining a schema comprising a plurality of states, individual states being associated with individual elements of an XML data stream, wherein the individual elements comprises one or more rules for processing the associated individual states; associating one or more rules with each state; receiving the XML data stream; evaluating the XML data stream against one or more of the rules for individual elements contained in the XML data stream; and disregarding associated portions of the XML data stream if any of the rules that are associated with those portions are violated. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-implemented method comprising computer-executable instructions stored for parsing an Extensible Markup Language (XML) data stream comprising:
-
defining a schema module that is associated with an HTTP request type that is received from a client, the schema module having a function that determines whether an XML data stream conforms to a given schema that is associated with the HTTP request type; evaluating an XML data stream with the schema module; utilizing the schema module to track the HTTP request type, wherein the schema module verifies that an output by a node factory contains a valid schema for the HTTP request type; and disregarding a portion of the XML data stream if it does not conform to the given schema. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. An Extensible Markup Language (XML) parsing system comprising:
-
a memory; one or more processors coupled to the memory; a parser operable by the one or more processors configured to receive an XML data stream and generate a series of calls as it parses the XML data stream; a node factory communicatively associated with the parser and configured to receive the parser'"'"'s calls and responsive thereto construct a representation of the XML data stream that the parser is parsing; and a schema module communicatively associated with the node factory and configured to evaluate the node factory'"'"'s representation of the XML data stream and determine whether it conforms to a known schema, wherein the schema comprises a plurality of states associated with individual elements of the XML data stream, wherein the individual elements comprises one or more rules for processing the associated individual states; and disregarding associated portions of the XML data stream if any of the rules that are associated with those portions are violated. - View Dependent Claims (16, 17, 18)
-
Specification