发明授权
US06718516B1 Method for verifying context between multiple related XML tags in document object model (DOM)
失效
用于验证文档对象模型(DOM)中的多个相关XML标签之间的上下文的方法
- 专利标题: Method for verifying context between multiple related XML tags in document object model (DOM)
- 专利标题(中): 用于验证文档对象模型(DOM)中的多个相关XML标签之间的上下文的方法
-
申请号: US09409373申请日: 1999-09-30
-
公开(公告)号: US06718516B1公开(公告)日: 2004-04-06
- 发明人: Christopher Shane Claussen , Gregory Alan Flurry , Matthew Dale McClain , Lin Xu , Benjamin Charles ZumBrunnen
- 申请人: Christopher Shane Claussen , Gregory Alan Flurry , Matthew Dale McClain , Lin Xu , Benjamin Charles ZumBrunnen
- 主分类号: G06F1500
- IPC分类号: G06F1500
摘要:
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.
信息查询