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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com