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

Hypertext markup language document content generation and analysis method

A technology of hypertext markup and parsing method, applied in the field of hypertext markup language document content generation and parsing, can solve problems such as large memory consumption, achieve the effects of flexible use, improve rendering efficiency, and save memory resources

Active Publication Date: 2020-08-21
北京飞漫软件技术有限公司
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Therefore, the technical problem to be solved by the present invention is to overcome the defects in the prior art that applications developed using ECMAScript rely heavily on high-performance ECMAScript engines, causing the operation of applications to consume a large amount of memory, thereby providing a hypertext markup language document content generation and analysis method

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
  • Hypertext markup language document content generation and analysis method
  • Hypertext markup language document content generation and analysis method
  • Hypertext markup language document content generation and analysis method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] This embodiment provides a method for generating hypertext markup language document content, such as figure 1 Shown, including:

[0038] Step S110: Define a data set to be replaced according to the data element to be replaced. In a specific embodiment, the data set to be replaced is defined in the head element of a HyperText Mark-up Language (HTML) document, and is described in the present invention. In the embodiment, the format of the data set to be replaced is JSON. In a specific embodiment, the data element to be replaced can be represented by any legal character in the code. In the embodiment of the present invention, the character "archedata" is used to represent the data element to be replaced.

[0039] Step S120: Define a replacement template according to the replacement template element. The replacement template contains the data mapping relationship between each attribute in the data set to be replaced and each attribute in the replacement template. In a specific ...

Embodiment 2

[0126] The embodiment of the present invention provides a method for parsing a hypertext markup language document. The hypertext markup language document includes: a data set to be replaced defined according to the data element to be replaced; a replacement template defined according to the replacement template element, the replacement template contains the data to be replaced The data mapping relationship between each attribute in the set and each attribute in the replacement template; the iterative replacement relationship between the data set to be replaced and the replacement template defined according to the iteration element and the replacement element, where the data attribute of the iteration element is used to specify the data set to be replaced; The with attribute of the replacement element is used to specify the replacement template used. The way of generating the hypertext markup language document is as shown in the above embodiment 1. For the detailed description of...

Embodiment 3

[0192] The embodiment of the present invention provides a computer device, such as Figure 13 As shown, the computer device mainly includes one or more processors 31 and a memory 32, Figure 13 Take one processor 31 as an example.

[0193] The computer equipment may further include: an input device 33 and an output device 34.

[0194] The processor 31, the memory 32, the input device 33, and the output device 34 may be connected by a bus or other means, Figure 13 Take the bus connection as an example.

[0195] The processor 31 may be a central processing unit (Central Processing Unit, CPU). The processor 31 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA), or Chips such as other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, or a combination of the above typ...

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 provides a hypertext markup language document content generation and analysis method. The hypertext markup language document content generation method comprises the steps that a to-be-replaced data set is defined according to to-be-replaced data elements; defining a replacement template according to the replacement template element, wherein the replacement template comprises a data mapping relationship between each attribute in the to-be-replaced data set and each attribute in the replacement template; defining an iterative permutation relationship between the to-be-permuted dataset and a permutation template according to the iterative element and the permutation element, the data attribute of the iterative element being used for specifying the to-be-permuted data set; wherein the width attribute of the replacement element is used for specifying a used replacement template; and generating hypertext markup language document contents according to the to-be-replaced data elements, the replacement template elements, the iteration elements and the replacement elements. The hypertext markup language document does not use a script programming language, so that a large number of script programs do not need to be used during analysis, the rendering efficiency is improved, and a large number of memory resources are saved.

Description

Technical field [0001] The invention relates to the technical field of computer applications, in particular to a method for generating and parsing hypertext markup language document content. Background technique [0002] ECMAScript is a scripting programming language that is used to control the content and rendering behavior of HTML pages. Applications developed using ECMAScript can be applied to different operating systems, greatly improving the efficiency of application development. However, in practical applications, there are many problems in using ECMAScript to develop applications. The main reasons are: [0003] 1. ECMAScript is essentially an interpreted programming language with low operating efficiency. Although in the process of developing the Chrome browser, Google developed the V8 engine, which greatly improved the execution speed of ECMAScript scripts, but the use of ECMAScript programs consumes much more memory (RAM). [0004] 2. The user agent uses the DOM tree to de...

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): G06F40/143G06F40/146G06F40/154G06F40/186
CPCG06F40/143G06F40/146G06F40/154G06F40/186Y02D10/00
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