Method for verifying context between multiple related XML tags in document object model (DOM)
First Claim
1. A method for processing a Document Object Model (DOM), comprising the steps of:
- replacing a current element being processed in the DOM with a placeholder element including attributes indicating a state of the current element;
adding a clean-up element to the DOM in a given position;
upon later encountering the clean-up element, processing state information from a set of elements; and
thereafter, removing the clean-up element from the DOM.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for processing a Document Object Model (DOM) tree to verify context between multiple related XML tags. One or more of these related XML tags are custom tags. According to the invention, contextual relationships between the related XML tags are verified using the DOM itself to indicate state. In a preferred embodiment, the inventive method begins during the processing of the DOM tree with a current element being processed replacing itself with a placeholder element. The placeholder element includes attributes indicating its state. If a clean-up element does not already exist for the element being processed, the current element creates a clean-up element and adds it to the DOM, for example, as a child node to the root position. When the clean-up element is later encountered, this element scans the entire DOM for all the related tags (now placeholders) of interest. The clean-up element loads the state information from each and processes the state information accordingly. When complete, the clean-up element removes itself from the DOM.
-
Citations
20 Claims
-
1. A method for processing a Document Object Model (DOM), comprising the steps of:
-
replacing a current element being processed in the DOM with a placeholder element including attributes indicating a state of the current element;
adding a clean-up element to the DOM in a given position;
upon later encountering the clean-up element, processing state information from a set of elements; and
thereafter, removing the clean-up element from the DOM. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 10)
-
-
9. A method for processing an XML Document Object Model (DOM) tree, comprising the steps of:
-
replacing each of a set of given tag elements in the DOM tree with a placeholder element including attributes indicating a state of the given tag element;
adding a clean-up element to the DOM tree in a given position;
upon later encountering the clean-up element, processing state information from a set of related tag elements; and
thereafter, removing the clean-up element from the DOM tree. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A computer program product in a computer-readable medium for processing a Document Object Model (DOM) tree, comprising:
-
means for replacing a current element being processed in the DOM tree with a placeholder element including attributes indicating a state of the current element;
means for adding a clean-up element to the DOM tree in a given position;
means operative upon later encountering the clean-up element for processing state information from a set of elements; and
means responsive to completion of the processing for removing the clean-up element from the DOM tree. - View Dependent Claims (17, 18, 19, 20)
-
Specification