Selective parsing of an XML document
First Claim
Patent Images
1. A method for selectively parsing an XML document, comprising:
- allowing a user to request an XML element by calling a parsing routine;
passing a name of the requested XML element to a base parser;
reading the XML document with the base parser and generating one or more XML events, each of said XML events being associated with the requested XML element in the XML document; and
constructing an event stream and placing the one or more XML events onto the event stream.
2 Assignments
0 Petitions
Accused Products
Abstract
A streaming parser API expands a base parser by building an iterative method on top of the base parser. The iterative method allows a user to pass a selected element type to the base parser, which can step through the XML document until it locates a matching element. The base parser can then extract the element, process the element as an event, and place the event on an event stream for use by an application.
51 Citations
14 Claims
-
1. A method for selectively parsing an XML document, comprising:
-
allowing a user to request an XML element by calling a parsing routine; passing a name of the requested XML element to a base parser; reading the XML document with the base parser and generating one or more XML events, each of said XML events being associated with the requested XML element in the XML document; and constructing an event stream and placing the one or more XML events onto the event stream. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-readable medium, comprising:
-
means for allowing a user to request an XML element by calling a parsing method; means for passing a name of the requested XML element to a base parser; means for reading an XML document using the base parser and generating one or more XML events, each associated with the requested XML element in the XML document; and means for constructing an event stream from the one or more XML events and placing the one or more events onto the event stream.
-
-
12. A computer-readable memory for storing the claimed program instructions for execution by a computer for selectively parsing an XML document, comprising:
-
computer code for allowing a user to request an XML element by calling a parsing method; computer code for passing a name of the requested XML element to a base parser; computer code for reading an XML document using the base parser and generating one or more XML events, each associated with the requested XML element in the XML document; and computer code for constructing an event stream from the one or more XML events and placing the one or more events onto the event stream.
-
-
13. A system for selectively parsing an XML document, comprising:
-
a parsing component operable to; allow a user to request an XML element; and pass a name of the requested XML element to a base parser; and said base parser operable to; read the XML document and generate one or more XML events, each of said XML events being associated with the requested XML element in the XML document; and construct an event stream and place the one or more XML events onto the event stream.
-
-
14. A computer system comprising:
-
a processor; and object code executed by said processor, said object code configured to; allow a user to request an XML element by calling a parsing method; pass a name of the requested XML element to a base parser; read an XML document using the base parser and generating one or more XML events, each associated with the requested XML element in the XML document; and construct an event stream from the one or more XML events and place the one or more events onto the event stream.
-
Specification