Methods and apparatus for parsing extensible markup language (XML) data streams
AssigneeMicrosoft Corporation
InventorsGreg S. Friedman, Christopher J. Lovett, Nanshan Zeng
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsGreg S. Friedman, Christopher J. Lovett, Nanshan Zeng
Estimating the term…
Various features enable an XML data stream to be parsed without the need to build a hierarchical tree structure for the XML document. In the described embodiment, the concept of an element or namespace stack is utilized as a way of organizing parsing activities and maintaining a definable place within the structure of the XML document. Various structures work together with the element or namespace stack to facilitate piecewise parsing of the XML data stream. One structure is a namespace hierarchy that is a collection of namespace objects that each represent a namespace specification that is encountered in the XML data stream. Each object includes a namespace prefix and an associated namespace specification. This structure creates a hierarchical organization that is used for mapping a particular encountered namespace specification into a unique value that represents both the namespace specification and an element tag in which the namespace specification occurs. Another structure is a dictionary collection that contains one or more dictionaries. Each dictionary is specifically associated with a namespace specification that is encountered in the XML data stream. The dictionaries contain entries for one or more tag names and each name's associated unique token. The token is returned and placed on the element stack along with another special value that enables the proper state to be maintained during processing of the XML data stream. The stack also includes a text accumulation buffer that can hold any text that is contained within an element (between the element tags). When an XML element is encountered, the element stack is used to organize parsing activities as the parser makes its way through the XL data stream.
A method of parsing an XML data stream comprising:
A method of parsing an XML data stream comprising:
A method of parsing an XML data stream comprising:
One or more computer-readable media having computer-readable instructions thereon which, when executed, cause the computer to:
One or more computer-readable media having computer-readable instructions thereon which, when executed, cause the computer to:
One or more computer-readable media having computer-readable instructions thereon which, when executed, cause the computer to:
Dependencies are inferred from the claim text.