摘要 |
<p>A parser for parsing a plurality of data elements arranged in a structured tree within a document, such as an extended mark-up language document, wherein said elements are arranged with a root element at a root level branching to remaining elements at lower levels within branches of the structured tree, said parser comprising: an interface for receiving an external request to provide a next sibling element or a next child element in the structured tree, returning a provided requested element, and repeating the receiving of external requests for the elements until there are no more requests or no more next elements; a next sibling method for providing a next sibling clement by fetching the next and subsequent elements in the document until the next element is a next clement at a specified sibling level in the structured tree and returning the next sibling clement; and a next child method for providing the next child clement by fetching and returning the next element if the next element is a child element or else providing a null result.</p> |