Streaming XML data retrieval using XPath
First Claim
Patent Images
1. A method comprising the computer-implemented steps of:
- receiving streaming input that represents XML data at a stream-based parser;
said stream-based parser receiving at runtime, a set of XPaths and associated content handler instances for registration;
wherein each XPath of the set of registered XPaths is associated with a separate content handler of a plurality of content handlers that are registered with said stream-based parser;
evaluating events from the stream-based parser against the registered XPaths; and
detecting whether received streaming input includes an XPath that matches a registered XPath;
in response to detecting that received streaming input includes an XPath that matches a registered XPath, reading registration information to identify a particular content handler instance that has been registered for said registered XPath, and calling said particular content handler instance;
wherein the steps of receiving, evaluating, and detecting are performed by one or more computing devices.
1 Assignment
0 Petitions
Accused Products
Abstract
An XML Extractor that extracts XML data from streamed input based on registered XPaths is provided. XPaths and associated content handlers instances are registered at runtime with the XML Extractor. The XML Extractor receives streaming input that represents XML data at a stream-based parser, and evaluates the received input against the registered XPaths expression. In response to detecting that the received streaming input includes an XPath that matches a registered XPath expression, the XML Extractor generates output to the content handler associated with the matching registered XPath expression.
29 Citations
26 Claims
-
1. A method comprising the computer-implemented steps of:
-
receiving streaming input that represents XML data at a stream-based parser; said stream-based parser receiving at runtime, a set of XPaths and associated content handler instances for registration; wherein each XPath of the set of registered XPaths is associated with a separate content handler of a plurality of content handlers that are registered with said stream-based parser; evaluating events from the stream-based parser against the registered XPaths; and detecting whether received streaming input includes an XPath that matches a registered XPath; in response to detecting that received streaming input includes an XPath that matches a registered XPath, reading registration information to identify a particular content handler instance that has been registered for said registered XPath, and calling said particular content handler instance; wherein the steps of receiving, evaluating, and detecting are performed by one or more computing devices. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform:
-
receiving streaming input that represents XML data at a stream-based parser; said stream-based parser receiving at runtime, a set of XPaths and associated content handler instance for registration; wherein each XPath of the set of registered XPaths is associated with a separate content handler of a plurality of content handlers that are registered with said stream-based parser; evaluating events from the stream-based parser against the registered XPaths; and detecting whether received streaming input includes an XPath that matches a registered Xpath; in response to detecting that received streaming input includes an XPath that matches a registered XPath, reading registration information to identify a particular content handler instance that has been registered for said registered XPath, and calling said particular content handler instance. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
Specification