Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

XML metadata objectification analytic method and system

A metadata object and data object technology, applied in the field of data analysis, can solve problems such as increasing the probability of errors, improving the learning curve, and modifying a large number of programs

Active Publication Date: 2011-01-12
山东中创软件商用中间件股份有限公司
View PDF1 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1) Data with a simple text structure is not friendly to developers, such as: type, format, etc. conversion;
[0007] 2) XML data parsing is coupled with business logic processing, which leads to a linear increase in software complexity and increases the probability of errors;
[0008] 3) The complicated XML parsing tool API undoubtedly increases the learning curve and development cost;
[0009] 4) The change of the data structure directly leads to a large number of program modifications

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • XML metadata objectification analytic method and system
  • XML metadata objectification analytic method and system
  • XML metadata objectification analytic method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The embodiment of the present application provides an XML metadata object-oriented analysis method and system, which translates each element in the XML data defined by XMLSchema into a Java class, and uses XMLSchema's namespace and node name to record elements and types in the system corresponding relationship. XML Schema defines the attribute name, type, default value, parent-child element association relationship, etc. of each element. The embodiment of this application directly uses these data to establish the corresponding Java type. These types have the same attribute name, type, and default value as the corresponding element. Values, parent-child element associations, etc., and define getter and setter methods for attributes, so that XML data that conforms to the XML Schema definition can be converted into Java objects.

[0032] The above is the core idea of ​​the present application, in order to enable those skilled in the art to better understand the solution of...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an XML metadata objectification analytic method, a data element in XML data is defined according to an XML Schema. The method comprises the following steps: a data object which is consistent with the structure of the data element is defined, wherein the incidence relations of the data object and the data element are consistent; the XML data are read and analyzed; the data object corresponding to the XML data is instantiated, and the data object of the same structure as the XML data is formed. The XML metadata objectification analytic method and a system predefine the XML Schema of the structure of the XML data, the XML Schema defines the attribute name, type, default, incidence relation of father and son elements and the like of each element, and the embodiment of the invention uses the data directly to establish a corresponding Java type, thus solving the problems in the existing XML processing mode.

Description

technical field [0001] This application relates to the field of data analysis, in particular to an XML-based scalable metadata object analysis method and system. Background technique [0002] XML (Extensible Markup Language) is an extensible markup language. It is a widely supported Internet standard for encoding structured data in a special way. In fact, data encoded in XML can be decoded by any programming language. One can even use a standard text editor to read or write XML data. Many applications, especially modern standards-compliant web browsers, can process XML data directly. [0003] XML Schema files are used to describe the structure of XML documents. The XML Schema language is also known as XML Schema Definition (XSD). The role of XML Schema is to define one or more legal components of an XML document, which defines the elements (Element) that can appear in the document, the attributes that can appear in the element, which elements are sub-elements, and the ord...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
Inventor 景新海刘民罗佳
Owner 山东中创软件商用中间件股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products