XML Data Structure Population Using Predefined Templates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for populating data structures in software applications with XML input data require additional resources, such as CPU time and memory, which can be a challenge in resource-constrained systems like embedded systems.

Innovation Solution

The approach involves loading a schema specific to the programming language into memory and using it to parse XML input data, directly mapping elements and values to corresponding fields in the data structures, thereby reducing resource overhead and facilitating efficient data population in resource-constrained systems.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If XML input data is parsed using conventional methods, then data structures can be populated, but additional CPU time and memory resources are consumed

Engineering Contradiction:
Improvedata population efficiencyVSAvoidCPU time and memory resources
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The patent applies preliminary action by pre-defining data structure templates in the programming language that mirror the XML schema structure. These templates are prepared in advance with all necessary field definitions and mappings, eliminating the need for dynamic schema parsing during data population. The template-based approach allows direct instantiation of data structures without resource-intensive runtime schema analysis.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses copying by creating data structure templates that are exact copies of the expected XML data structure. These templates are defined in the programming language with the same field names, data types, and hierarchical relationships as the XML schema. By copying the structure beforehand, the system avoids the need for complex runtime parsing and can directly populate the pre-defined structures with XML data.

Inventive Principle:
Principle #26Copying

2Adaptability or versatility

If XML schemas are parsed dynamically, then data can be adapted to various formats, but resource overhead increases

Engineering Contradiction:
ImproveXML data format flexibilityVSAvoidresource overhead
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-defining data structure templates in the programming language that mirror the XML schema structure. These templates are prepared in advance with all necessary field definitions and mappings, eliminating the need for dynamic schema parsing during data population. The template-based approach allows direct instantiation of data structures without resource-intensive runtime schema analysis.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses copying by creating data structure templates that are exact copies of the expected XML data structure. These templates are defined in the programming language with the same field names, data types, and hierarchical relationships as the XML schema. By copying the structure beforehand, the system avoids the need for complex runtime parsing and can directly populate the pre-defined structures with XML data.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS8914420B2Populating data structures of software applications with input data provided according to extensible markup language (XML)
Publication Date: 2014.12.16 GAINSPAN CORP
  • US8914420B2 patent drawing
  • US8914420B2 patent drawing
  • US8914420B2 patent drawing

AI summary

An aspect of the present invention populates data structures of a software application with input data provided according to XML. In one embodiment, the input data and a schema is received, with the schema containing another set of data structures according to the programming language in which the software application is written. The input data is parsed according to the schema to identify elements and corresponding values. The identified values are then stored in the fields of the data structures of the application. According to another aspect, the schema received with the input data specifies a mapping of each of the elements in the input data to corresponding fields of data structures of a software application. Accordingly, the specified fields of the data structures are set to the values associated with the corresponding mapped elements in the input data.