EVENT GENERATION FOR XML SCHEMA COMPONENTS DURING XML PROCESSING IN A STREAMING EVENT MODEL
First Claim
1. A computer program product comprising a computer usable medium including computer usable program code for processing a document that is structured according to a document definition, said computer program product comprising:
- computer usable program code for receiving event information corresponding to a first element of information within the document;
computer usable program code for identifying a portion of the document definition describing the first element of information; and
computer usable program code for forwarding the event information as a first event corresponding to the first element and for generating a second event corresponding to the portion of the document definition describing the first element, wherein the first event and the second event are generated as part of a single, serial process.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and computer program for processing structured documents follows a processing framework that enables generation of events corresponding to instance document elements and events corresponding to definition components in a single serial process. The process comprises creating a graph data structure in which nodes of the graph represent components of a document definition. The process further involves reading an instance document conforming to the document definition, identifying elements of the document that correspond to nodes of the graph, identifying a path between nodes of the graph that correspond to elements of the document, and traversing the path to generate a start event when moving from a parent node to a child node and an end event when moving from a child node to a parent node.
19 Citations
18 Claims
-
1. A computer program product comprising a computer usable medium including computer usable program code for processing a document that is structured according to a document definition, said computer program product comprising:
-
computer usable program code for receiving event information corresponding to a first element of information within the document; computer usable program code for identifying a portion of the document definition describing the first element of information; and computer usable program code for forwarding the event information as a first event corresponding to the first element and for generating a second event corresponding to the portion of the document definition describing the first element, wherein the first event and the second event are generated as part of a single, serial process. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer program product comprising a computer usable medium including computer usable program code for processing a document that is structured according to a document definition, said computer program product comprising:
-
computer usable program code for receiving event information corresponding to a first element of information within the document; computer usable program code for identifying a first element of information within the document according to the event information received; computer usable program code for identifying a portion of the document definition describing the first element of information; and computer usable program code for generating a first event corresponding to the first element and a second event corresponding to the portion of the document definition describing the first element, wherein the first event and the second event are generated as part of a single, serial process. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer program product comprising a computer usable medium including computer usable program code for XML processing and event generation, said computer program product comprising:
-
computer usable program code for identifying a first element declaration of an XML schema; computer usable program code for creating a graph data structure with a node corresponding to the first element declaration; computer usable program code for identifying a plurality of schema components and a second element declaration, wherein the plurality of schema components and the second element declaration relate to the first element declaration, and for identifying a relationship between the first element declaration, the plurality of schema components, and the second element declaration; computer usable program code for creating a node in the graph corresponding to each of the schema components and a node corresponding to the second element declaration, wherein the relationship is reflected in the graph; computer usable program code for receiving event information corresponding to a first element of an XML instance document corresponding to the first element declaration; computer usable program code for receiving event information corresponding to a second element of the XML instance document corresponding to the second element declaration; computer usable program code for identifying a path in the graph from the first element declaration to the second element declaration, wherein the path includes at least one of the plurality of nodes corresponding to the schema components; and computer usable program code for traversing the path, generating a start event corresponding to a child node when traversal is from a parent node to the child node, and for generating an end event corresponding to the child node when traversal is from the child node to the parent node.
-
Specification