发明申请
US20060117250A1 Method and system for inferring a schema from a hierarchical data structure for use in a spreadsheet
有权
用于从电子表格中使用的分层数据结构推断模式的方法和系统
- 专利标题: Method and system for inferring a schema from a hierarchical data structure for use in a spreadsheet
- 专利标题(中): 用于从电子表格中使用的分层数据结构推断模式的方法和系统
-
申请号: US11326853申请日: 2006-01-06
-
公开(公告)号: US20060117250A1公开(公告)日: 2006-06-01
- 发明人: Chad Rothschiller , Michael McCormack , Eoin Burke , Kelly Lynch , Roy Dumas
- 申请人: Chad Rothschiller , Michael McCormack , Eoin Burke , Kelly Lynch , Roy Dumas
- 申请人地址: US WA Redmond
- 专利权人: Microsoft Corporation
- 当前专利权人: Microsoft Corporation
- 当前专利权人地址: US WA Redmond
- 主分类号: G06F17/00
- IPC分类号: G06F17/00 ; G06F15/00
摘要:
A method and system are provided for inferring a schema from an electronic document containing hierarchical data for use in a spreadsheet application program. The electronic document containing the hierarchical data is received into an application program. The application program may be a spreadsheet application program. The format of the hierarchical data structure may be XML. The hierarchical data includes a set of nodes making up the structure of the hierarchical data. The nodes may be XML elements and attributes. The hierarchical data is then parsed to discover one of the nodes in the hierarchical data. Once the node has been discovered, content associated with the discovered node is saved to a memory location in the computer system. The content may include data associated with the discovered node and the type of data associated with the node. The hierarchical data is then parsed again to discover subsequent nodes until the content for all of the nodes has been saved to the memory location. Then a schema generator generates schema elements using complex rules based on the particular qualities of each discovered node for each discovered node until a schema is generated for the hierarchical data.