CN107798001B - Webpage processing method, device and equipment - Google Patents

Webpage processing method, device and equipment Download PDF

Info

Publication number
CN107798001B
CN107798001B CN201610757362.4A CN201610757362A CN107798001B CN 107798001 B CN107798001 B CN 107798001B CN 201610757362 A CN201610757362 A CN 201610757362A CN 107798001 B CN107798001 B CN 107798001B
Authority
CN
China
Prior art keywords
code
template
xml
display component
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610757362.4A
Other languages
Chinese (zh)
Other versions
CN107798001A (en
Inventor
郝佳
苗壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201610757362.4A priority Critical patent/CN107798001B/en
Publication of CN107798001A publication Critical patent/CN107798001A/en
Application granted granted Critical
Publication of CN107798001B publication Critical patent/CN107798001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method, a device and equipment for processing a webpage, wherein the method comprises the following steps: acquiring an extensible markup language (XML) code corresponding to a display component of a webpage to be displayed according to the webpage access request; determining the type of the display component according to a code at a preset position in the XML code; acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template; converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components; the HTML code is used for displaying the webpage by the browser. The embodiment can improve the efficiency of webpage development.

Description

Webpage processing method, device and equipment
Technical Field
The present invention relates to internet technologies, and in particular, to a method, an apparatus, and a device for processing a web page.
Background
For a website, the front end generally refers to the foreground part of the website, including the presentation layer and the structural layer of the website, and is generally realized by a client; for a website, the backend is usually referred to as the background part of the website, and is usually implemented by a backend server.
In the prior art, when a browser sends a web page request to a backend server, the backend server sends a hypertext Markup Language (HTML) code to the browser, the browser loads the HTML code and performs rendering according to the HTML code, and a final page is displayed on a window of the browser after the rendering is completed.
However, since the syntax rule of the HTML code is complex, not only is the requirement for the developer high, but also the developer needs to spend a lot of time writing the HTML code, which results in very low efficiency of web page development.
Disclosure of Invention
The invention provides a webpage processing method, a webpage processing device and webpage processing equipment, which are used for improving webpage development efficiency.
In one aspect, the present invention provides a method for processing a web page, including:
acquiring an extensible markup language (XML) code corresponding to a display component of a webpage to be displayed according to the webpage access request;
determining the type of the display component according to a code at a preset position in the XML code;
acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components; the HTML code is used for displaying the webpage by the browser.
As a possible implementation manner, the obtaining an HTML code template matching the type of the display component includes:
acquiring a template identifier matched with the type of the display component in a grammar rule base;
and acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
As a possible implementation manner, the keyword at a preset position in the XML code is used to indicate the type of the display component, and the obtaining, in the grammar rule base, the template identifier matching the type of the display component includes:
acquiring a first character of the keyword, and determining a template class to which the first character belongs in the grammar rule base;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
As a possible implementation manner, the converting the XML code according to the HTML code template to obtain a hypertext markup language HTML code for displaying the display component includes:
extracting a first attribute and an attribute value in the XML code;
and acquiring a second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute to obtain an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
According to the method and the device, the first attribute and the attribute value in the XML code corresponding to the display component are extracted, the second attribute matched with the first attribute is obtained in the HTML code template, the attribute value is assigned to the second attribute, other conversion is not needed, the HTML code for displaying the display component is obtained, the XML code is quickly converted into the HTML code, the HTML code can be quickly returned to the browser, and the response speed of the webpage access request is improved.
As a possible implementation manner, the determining the type of the display component according to the code at the preset position in the XML code includes:
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
As a possible implementation manner, the acquiring an XML code corresponding to a display component of a web page to be displayed includes:
intercepting all XML codes in the page codes of the webpage to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
The XML code corresponding to the display component is acquired from the intercepted XML code according to the code identification of the XML code corresponding to the display component, and the XML code corresponding to the display component can be acquired quickly, so that the HTML code can be returned to the browser quickly, and the response speed of the webpage access request is improved.
As a feasible implementation manner, the code identifier is a preset function head and a preset function tail; the acquiring the XML code from the intercepted XML code according to the code identifier of the XML code comprises the following steps:
acquiring a preset XML code from the intercepted XML codes, wherein the preset XML code comprises a preset function head and a preset function tail;
and determining the XML code between the head of the preset function and the tail of the preset function as the XML code.
As a possible implementation manner, the intercepting an XML code in the page code of the web page to be displayed includes:
intercepting all XML codes in the page codes of the webpage to be displayed through a preset template engine.
As a possible implementation manner, the display component includes at least one web page element of the following: text, pictures, audio, animation, or video.
As a possible implementation manner, the web page to be displayed corresponds to at least one display component.
As a possible implementation manner, the XML code is a code that satisfies a preset syntax rule.
In another aspect, the present invention provides a web page processing apparatus, including:
the XML code acquisition module is used for acquiring an extensible markup language XML code corresponding to a display component of a webpage to be displayed according to the webpage access request;
the type determining module is used for determining the type of the display component according to the code at the preset position in the XML code;
the template acquisition module is used for acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
the conversion module is used for converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components; the HTML code is used for displaying the webpage by the browser.
As a possible implementation manner, the template obtaining module includes:
the template identifier acquisition unit is used for acquiring a template identifier matched with the type of the display component in a grammar rule base;
and the template acquisition unit is used for acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
As a possible implementation manner, the keyword at the preset position in the XML code is used to indicate the type of the display component, the template identifier obtaining unit is specifically used to,
acquiring a first character of the keyword, and determining a template class to which the first character belongs in the grammar rule base;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
As a possible implementation, the conversion module is specifically configured to,
extracting a first attribute and an attribute value in the XML code;
and acquiring a second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute to obtain an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
As a possible implementation, the type determination module is specifically configured to,
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
As a possible implementation, the XML code acquisition module is specifically configured to,
intercepting all XML codes in the page codes of the webpage to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
In yet another aspect, the present invention provides a web page processing apparatus, including:
the input device is used for receiving a webpage access request sent by a browser;
the processor is coupled with the input device and used for acquiring extensible markup language (XML) codes corresponding to display components of the webpage to be displayed according to the webpage access request;
the processor is further used for determining the type of the display component according to the code at the preset position in the XML code;
the processor is further used for acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
the processor is further used for converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components;
and the output device is coupled with the processor and used for sending the HTML codes to the browser so as to enable the browser to display the webpage according to the HTML codes.
As a possible implementation, the processor is further specifically configured to,
acquiring a template identifier matched with the type of the display component in a grammar rule base;
and acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
As a possible implementation manner, the keyword at a preset position in the XML code is used to indicate the type of the display component, and the processor is further specifically configured to obtain a first character of the keyword, and determine, in the grammar rule base, a template class to which the first character belongs;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
As a possible implementation manner, the processor is further specifically configured to extract a first attribute and an attribute value in the XML code;
and acquiring a second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute to obtain an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
As a possible implementation, the processor is further specifically configured to,
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
As a possible implementation manner, the processor is specifically configured to intercept all XML codes in the page code of the web page to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
As a feasible implementation manner, the code identifier is a preset function head and a preset function tail; the processor is also particularly adapted to,
acquiring a preset XML code from the intercepted XML codes, wherein the preset XML code comprises a preset function head and a preset function tail;
and determining the XML code between the head of the preset function and the tail of the preset function as the XML code.
As a possible implementation manner, the processor is further specifically configured to intercept all XML codes in the page codes of the web page to be displayed through a preset template engine.
The method determines the type of a display component according to codes at a preset position in XML codes, then obtains an HTML code template matched with the type of the display component, converts the XML codes according to the HTML code template to obtain HTML codes of a hypertext markup language for displaying the display component, and developers can convert the simple XML codes into complex HTML codes through the HTML code template only by compiling the simple XML codes, so that the efficiency of developing webpages by the developers is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application scenario of an alternative web page process of the present invention;
fig. 2 is a schematic flowchart of a web page processing method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a structure of a grammar rule base according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a web page processing method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an exemplary ring assembly according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a web page processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a web page processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a web page processing device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
For purposes of clarity, the definitions of certain words and phrases used herein will first be described.
eXtensible Markup Language (XML) is a simple data storage Language that describes data using a series of simple tags that can be created in a convenient manner. Namely, XML is a set of descriptive languages that are strict in use of the above rules, but simple.
HyperText Markup Language (HTML) is a Markup Language designed for "web page creation and other information visible in a web browser".
Velocity is a Java-based template engine framework that provides a template language that can be used on objects and variables defined in Java. Velocity provides an ant task called Anaka, which can read XML files.
A display component: a component of a web page comprising at least one web page element of: text, pictures, audio, animation, or video. For example: the ring ratio component comprises characters of yesterday acquisition time rate and a ring ratio picture; or the weather component comprises weather pictures and weather data, and the plurality of display components form the webpage.
Content elements in XML code: indicating the content of the web page display.
The invention provides a webpage processing method, which is used for solving the problem of low development efficiency caused by that developers develop webpages through HTML codes in the prior art. In this embodiment, a developer only needs to write a simple XML code, and on the Web server side, the Web server can convert the simple XML code into a complex HTML code and then send the complex HTML code to the Web browser, so that the Web server completes the final Web page display. The following describes an application scenario of the present invention with reference to fig. 1.
Fig. 1 is a schematic diagram of an application scenario of an optional web page process according to the present invention. As shown in fig. 1, when a user inputs a website on a Web browser or a Web client, the Web browser obtains the website input by the user, queries the DNS server 20 for an IP address of the website, the DNS server investigates the IP address of the queried website, and returns the IP address of the website to the Web browser, the Web browser sends a Web page access request to the Web server according to the IP address, the Web browser obtains an XML code corresponding to a display component of a Web page to be displayed, converts the XML code into an HTML code according to an HTML code template, the Web server sends the HTML code to the Web browser, and finally the Web browser performs rendering according to the HTML code to display the Web page. The Web client or the Web browser in this embodiment may be borne on a terminal device, and the terminal device may be a computer, a mobile phone, a tablet, or other device that can browse a Web page through the browser.
Therefore, developers or persons without any development basis can quickly develop the webpage through the simple XML codes, that is, the developers only need to write the simple XML codes, and the Web server can convert the XML codes into the complex HTML codes according to the HTML code template on the Web server side, so that the development efficiency of the webpage is improved.
Furthermore, the embodiment realizes the conversion from the XML code to the HTML code through the HTML code template, does not need other complicated conversion files or conversion processes, improves the conversion efficiency, and can perform operations such as addition, deletion, modification and the like on the code template, thereby realizing the flexibility of webpage display.
The following will use a detailed embodiment to describe how the Web server converts the XML code into HTML code according to the HTML code template after receiving the Web page access request.
Fig. 2 is a flowchart illustrating a web page processing method according to an embodiment of the present invention. The execution subject of this embodiment may be a web page processing method apparatus, and the apparatus may be implemented by software and/or hardware. The apparatus may also be configured in a Web server as shown in fig. 1. As shown in fig. 2, the method includes:
step 101, acquiring an XML code corresponding to a display component of a webpage to be displayed according to a webpage access request.
In a specific implementation process, when a webpage access request sent by a browser is received, an XML code corresponding to a display component of the webpage to be displayed is acquired from a memory. As will be understood by those skilled in the art, the webpage comprises a plurality of display components, and correspondingly, XML codes corresponding to the plurality of display components are obtained. For convenience of description, the present embodiment takes an XML code as an example for detailed description. The XML code may be code that a developer writes according to preset syntax rules. Since the XML code is a simple descriptive language, it is very easy for a developer to grasp and write.
And 102, determining the type of the display component according to the code at the preset position in the XML code.
After the XML code is obtained, the type of the display component is determined according to the code at the preset position in the XML code. Specifically, when writing the XML code, the developer writes the type of the display component in the form of a keyword into the XML code. The code at the preset position may specifically be a keyword set at the preset position. The preset position may be, for example, a start position of the code, an end position of the code, or a start code in a preset line of the code. Taking a specific example as an example, a keyword for indicating the type of a display component is extracted in the outermost configuration item of the XML code.
The type of the display component may be divided according to the corresponding shape of the display component. For example, if the extracted keyword is "ring", the type of the display component is "ring" type, and the extracted keyword is "polyline", the type of the display component is "polyline", and the like, the display component may also be divided according to the content meanings corresponding to the display component, for example, the display component may be divided into "rain amount", "wind force", and the like according to different content meanings in weather. The present embodiment is not particularly limited in the manner of dividing the types of display elements. Optionally, the extracted keyword may also be an english keyword, for example, if the extracted keyword is "ring", the type of the display component is "ring", and if the extracted keyword is "rain", the type of the display component is "rainfall".
103, acquiring an HTML code template matched with the type of the display component; and the type of each display component has a corresponding relation with the HTML code template.
HTML code templates are stored in a local memory of the Web server or an external memory of the Web server, and each type of display component corresponds to the HTML code templates. The corresponding relationship may be a preset corresponding relationship.
For example, the type of the display component is a "ring" type, corresponding to HTML code template 1; the type of the display component is a column type and corresponds to an HTML code template 2; the type of the display component is a "polyline" type, corresponding to the HTML code template 3, etc.
According to the corresponding relation between the type of each display component and the HTML code template, the HTML code template matched with the type of the display component can be obtained.
And step 104, converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components.
Specifically, the XML code includes a plurality of first attributes and attribute values therein. For example, the first attribute is A1, and the attribute value is "yesterday delivery timeliness". Correspondingly, the HTML code includes a plurality of second attributes and attribute values, and in this embodiment, the assignment of the second attribute in the HTML code template is null. After the HTML code template is obtained, a second attribute a2 matching the first attribute a1 may be obtained, where the first attribute and the second attribute express the same meaning, and then the attribute value is assigned to the second attribute, resulting in the HTML code. I.e. to assign "yesterday delivery timeliness" to the second attribute a 2. Because the HTML code is complex, HTML code templates and the particular form of the HTML code are not listed here.
In this embodiment, the HTML code is code for a browser to display a web page. Therefore, after the XML code is converted into HTML code, the HTML code is sent to the browser, and after the browser receives the HTML code, the browser performs rendering according to the HTML code to display the corresponding display component. As will be appreciated by those skilled in the art, when rendering of all HTML code by the browser is complete, the final complete web page may be displayed.
According to the webpage processing method provided by the embodiment, the type of the display component is determined according to the code at the preset position in the XML code, then the HTML code template matched with the type of the display component is obtained, the XML code is converted according to the HTML code template, and the HTML code for displaying the display component is obtained.
The detailed embodiment is used to describe the specific implementation process of step 103. Specifically, in a grammar rule base, acquiring a template identifier matched with the type of a display component; and acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
In this embodiment, the grammar rule base stores the corresponding relationship between the template identifiers and the types of the display components, and those skilled in the art can understand that each template identifier corresponds to one HTML code template. The first table shows a specific embodiment to illustrate the correspondence between the template identifier and the type of the display component.
Watch 1
Type of display assembly Template identification HTML code template
Of the "Ring" type ring HTML code template 1
Of the "polyline" type broken line HTML code template 2
Type of "rainfall rain HTML code template 3
Optionally, in order to improve that the template identifier matched with the type of the display component is found in the grammar rule base, in this embodiment, the template identifiers are classified to obtain a plurality of template classes, so that the grammar rule base further stores the plurality of template classes. When the HTML code template matching the type of the display component is determined, the template class matching the type of the display component may be searched first, and then the matching HTML template may be searched in the template class.
In particular, a keyword at a preset position in the XML code is used to indicate the type of the display component. After the keywords are acquired, the first characters of the keywords are acquired, the template class to which the first characters belong is determined in a grammar rule base, and then template identifications matched with the keywords are acquired in the template class.
In this embodiment, the keywords may be english keywords, chinese keywords, or keywords of other language types. Here, referring to fig. 3, an english keyword is taken as an example to describe a specific implementation process of obtaining the template identifier, and keywords of other language types are similar, which is not described herein again.
Fig. 3 is a schematic structural diagram of a grammar rule base according to an embodiment of the present invention. In this embodiment, the keyword is an english keyword. In this embodiment, the template identifier is also implemented by using an english keyword. When the english keyword for indicating the type of the display component is the same as the english keyword for indicating the template identification, the two match. As shown in fig. 3, the grammar rule base is classified by 26 english alphabets, and includes a plurality of english keywords for indicating template identifications under each classification. Therefore, the first character of the english keyword may be extracted, and then the template class may be searched by using the first character, and then the template identifier may be searched in the template class. Taking a specific example as an example, if the keyword extracted from the preset position in the XML code is "ring", the first character of the keyword "ring" is obtained as "R", then the keyword "ring" used for indicating the template identifier is searched in the R class, and then the HTML code template corresponding to the template identifier is obtained.
It will be understood by those skilled in the art that when the keyword for indicating the type of the display component is a chinese keyword, it may be classified by 26 english letters in the grammar rule base as well, and at this time, the first letter of the chinese pinyin for the first chinese character of the chinese keyword may be obtained, and then the template class may be searched for by using the first letter, and then the template identification may be searched for in the template class. Taking a specific example as an example, if the keyword extracted from the preset position in the XML code is "ring ratio", the initial letter of the keyword "ring" is obtained as "H", then the keyword "ring" for indicating the template identifier is searched in the H class, and then the HTML code template corresponding to the template identifier is obtained.
In the embodiment, by acquiring the first character of the keyword, the template class to which the first character belongs is determined in the grammar rule base; and then, template identifications matched with the keywords are obtained in the template classes, and the HTML code templates are classified, so that the process of matching all the HTML code templates in a grammar rule base is not needed, and the process of matching only in the template class corresponding to the first character of the keyword is needed, so that the processing process is reduced, the processing operation efficiency is improved, HTML codes can be quickly returned to users, and the user experience is improved.
The following describes the web page processing method of the present invention in detail with reference to an alternative embodiment. In this embodiment, a description will be given by taking as an example that the type of the display component of one web page to be displayed is the "ring" type.
Fig. 4 is a flowchart illustrating a web page processing method according to an embodiment of the present invention. As shown in fig. 4, the method includes:
step 401, receiving a web page access request sent by a browser.
The specific steps can be referred to the embodiment shown in fig. 1, and this embodiment is not described herein again.
Step 402, intercepting all XML codes in the page codes of the webpage to be displayed.
Specifically, all XML codes are intercepted in the page codes of the webpage to be displayed through a preset template engine. The preset template engine may be a Velocity template engine.
And step 403, acquiring the XML code corresponding to the display component from the intercepted XML codes according to the code identifier of the XML code corresponding to the display component.
Those skilled in the art will understand that the page code of the web page includes not only the XML code corresponding to each display component, but also other XML codes. Therefore, the XML code corresponding to the display component needs to be obtained from the intercepted XML code.
Specifically, the XML code corresponding to the display component may be obtained from the intercepted XML code according to the code identifier of the XML code. The code identifier may be a preset symbol located at the head and tail of the XML code, or a preset function head located at the head of the XML code, and a preset function tail located at the tail of the XML code.
For a specific example, the head of the preset function is # legao (), and the tail of the preset function is # end. And acquiring a preset XML code from the intercepted XML codes, wherein the XML code comprises a preset function head and a preset function tail. Specifically, intercepted XML code is scanned, and if "# legacy ()" is found, it represents that the following code from the preset function header is the XML code to be found, until "# end". Thus, "# legacy ()" together with "# end" locates the XML code to be found. And finally, determining the XML code between the head of the preset function and the tail of the preset function as the XML code corresponding to the display component.
According to the method and the device for acquiring the XML code, the XML code corresponding to the display component is acquired from the intercepted XML code according to the code identification of the XML code corresponding to the display component, and the XML code corresponding to the display component can be acquired quickly, so that the HTML code can be returned to the browser quickly, and the response speed of the webpage access request is improved.
And step 404, determining the type of the display component according to the code at the preset position in the XML code corresponding to the display component.
The implementation of step 404 is similar to that of step 102, and this embodiment is not described here again. This embodiment is described herein by taking a specific embodiment as an example.
Specifically, a keyword for indicating the type of the display component is extracted in the outermost configuration item of the XML code. For example, in the XML code corresponding to the display component, the keyword extracted from the outermost configuration item for indicating the type of the display component is "ring", and the keyword is used for indicating that the type of the display component is a "ring" type, that is, the display component is a ring component.
Step 405, obtaining an HTML code template matched with the type of the display component.
The implementation process of step 405 is similar to step 103, and this embodiment is not described herein again. It should be noted that the HTML code template matched with the "ring" type is a generic HTML code template of a ring component. In this embodiment, for convenience of description, the HTML code template 1 may be referred to, and the ring corresponding to the HTML code template 1 may represent ring content with any meaning. For example, the ring component can be used to express yesterday shipping timeliness, yesterday sales, monthly house price increases, quarter house volume, and the like.
And step 406, extracting the first attribute and the attribute value in the XML code corresponding to the display component.
In the foregoing embodiment, it has been determined that the type of display component is the "ring" type. The first attribute of the XML code corresponding to the ring component is extracted as 'A1', and the attribute value is 'yesterday delivery timeliness rate'. One skilled in the art will appreciate that the first attribute may also be multiple, for example, the ring component corresponds to a further first attribute in the XML code, the first attribute is "B1" and the attribute value is "ring ratio".
Those skilled in the art will appreciate that step 405 is not strictly time-sequential to step 406.
And 407, acquiring a second attribute matched with the first attribute from the HTML code template, and assigning the attribute value to the second attribute to obtain an HTML code for displaying the display component.
And acquiring a second attribute matched with the first attribute in the HTML code template 1. For example, the second attribute that the first attribute "a 1" matches is "a 2", and "yesterday ship timeliness rate" is assigned to the second attribute of "a 2"; the second attribute that the first attribute "B1" matches is "B2", and the "ring ratio" is assigned to the second attribute "B2", resulting in HTML code for displaying the ring component.
Step 408, the HTML code is sent to the browser, so that the browser displays the web page according to the HTML code.
On the browser side, rendering is performed according to the HTML code, and finally, the specific display of the ring component is shown in FIG. 5. Fig. 5 is a diagram illustrating an effect of the ring assembly according to an embodiment of the present invention. As shown in fig. 5, the ring component displays the relevant content of yesterday delivery timeliness, including yesterday delivery timeliness of 65%, ring ratio increase of 28%, and ring picture with yesterday delivery timeliness.
According to the method and the device, the first attribute and the attribute value in the XML code corresponding to the display component are extracted, the second attribute matched with the first attribute is obtained in the HTML code template, the attribute value is assigned to the second attribute, other conversion is not needed, the HTML code for displaying the display component is obtained, the XML code is quickly converted into the HTML code, the HTML code can be quickly returned to the browser, and the response speed of the webpage access request is improved.
A web page processing apparatus according to one or more embodiments of the present application will be described in detail below. The web page processing apparatus may be implemented on various devices, such as a server device, a server, a web server, and the like. Those skilled in the art will appreciate that the web page processing apparatus may be constructed by configuring the steps taught in the present embodiment using commercially available hardware components. For example, the modules related to the control function and the update function in the following embodiments may be implemented by using components such as a single chip microcomputer, a microcontroller, and a microprocessor from companies such as texas instruments, intel corporation, and ARM corporation.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of a web page processing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
the XML code acquisition module 11 is configured to acquire an XML code corresponding to a display component of a webpage to be displayed according to a webpage access request;
a type determining module 12, configured to determine a type of the display component according to a code at a preset position in the XML code;
the template acquisition module 13 is used for acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
the conversion module 14 is configured to perform conversion processing on the XML code according to the HTML code template to obtain a hypertext markup language HTML code for displaying the display component; the HTML code is used for displaying the webpage by the browser.
The web page processing apparatus provided in the embodiment of the present application may implement the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a web page processing apparatus according to an embodiment of the present invention. The embodiment is implemented on the basis of the embodiment in fig. 6, and specifically includes the following steps:
the template acquisition module 13 includes:
a template identifier obtaining unit 131, configured to obtain, in a grammar rule base, a template identifier matching the type of the display component;
a template obtaining unit 132, configured to obtain an HTML code template matching the type of the display component according to the template identifier, where the grammar rule base stores a corresponding relationship between the template identifier and the type of the display component.
Optionally, the keyword at the preset position in the XML code is used to indicate the type of the display component, the template identifier obtaining unit 131 is specifically used to,
acquiring a first character of the keyword, and determining a template class to which the first character belongs in the grammar rule base;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
Optionally, the conversion module 14 is specifically configured to,
extracting a first attribute and an attribute value in the XML code;
and acquiring a second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute to obtain an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
Optionally, the type determining module 12 is specifically configured to,
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
Optionally, the XML code obtaining module 11 is specifically configured to,
intercepting all XML codes in the page codes of the webpage to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
Optionally, the display component comprises at least one web page element of: text, pictures, audio, animation, or video.
Optionally, the webpage to be displayed corresponds to at least one display component.
Alternatively, the XML code is a code satisfying a preset syntax rule.
The web page processing apparatus provided in the embodiment of the present application may implement the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of a web page processing device according to an embodiment of the present invention, and as shown in fig. 8, the device may include an input device 20, a processor 21, an output device 23, a memory 24, and at least one communication bus 25. The communication bus 25 is used to realize communication connection between the elements. The memory 24 may comprise a high speed RAM memory, and may also include a non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiment.
Alternatively, the processor 21 may be implemented by, for example, a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components.
Optionally, the input device 20 may include a variety of input devices, such as at least one of a device-oriented device interface, a software programmable interface, and a transceiver. The output device 23 may comprise a variety of output devices, and may comprise at least one of a device-oriented device interface, a software programmable interface, and a transceiver, for example.
In this embodiment, the input device 20 is configured to receive a web page access request sent by a browser;
a processor 21, coupled to the input device 20, configured to obtain, according to a web page access request, an extensible markup language XML code corresponding to a display component of a web page to be displayed;
the processor 21 is further configured to determine a type of the display component according to a code at a preset position in the XML code;
the processor 21 is further configured to obtain an HTML code template matching the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
the processor 21 is further configured to perform conversion processing on the XML code according to the HTML code template to obtain a hypertext markup language HTML code for displaying the display component;
an output device 23, coupled to the processor 21, for sending the HTML code to the browser, so that the browser displays the web page according to the HTML code.
Optionally, the processor is further specifically configured to,
acquiring a template identifier matched with the type of the display component in a grammar rule base;
and acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
Optionally, the keyword at a preset position in the XML code is used to indicate the type of the display component, and the processor 21 is further specifically configured to obtain an initial character of the keyword, and determine, in the grammar rule base, a template class to which the initial character belongs;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
Optionally, the processor 21 is further specifically configured to extract a first attribute and an attribute value in the XML code;
and acquiring a second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute to obtain an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
Optionally, the processor 21 is also specifically configured to,
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
Optionally, the processor 21 is specifically configured to intercept all XML codes in the page code of the webpage to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
Optionally, the code identifier is a preset function head and a preset function tail; the processor is also particularly adapted to,
acquiring a preset XML code from the intercepted XML codes, wherein the preset XML code comprises a preset function head and a preset function tail;
and determining the XML code between the head of the preset function and the tail of the preset function as the XML code.
Optionally, the processor 21 is further specifically configured to intercept all XML codes in the page code of the webpage to be displayed through a preset template engine. Optionally, the display component comprises at least one web page element of: text, pictures, audio, animation, or video.
Optionally, the webpage to be displayed corresponds to at least one display component.
Alternatively, the XML code is a code satisfying a preset syntax rule.
The web page processing device provided by the embodiment of the present application may execute the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
The readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (25)

1. A method for processing a web page, comprising:
acquiring an extensible markup language (XML) code corresponding to a display component of a webpage to be displayed according to the webpage access request;
determining the type of the display component according to a code at a preset position in the XML code;
acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components; the HTML code is used for displaying the webpage, a second attribute included in the HTML code expresses the same meaning as a first attribute included in the XML code, and an attribute value of the second attribute is assigned to be an attribute value of the first attribute matched with the second attribute.
2. The method of claim 1, wherein obtaining an HTML code template matching the type of the display component comprises:
acquiring a template identifier matched with the type of the display component in a grammar rule base;
and acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
3. The method according to claim 2, wherein the keyword at the preset position in the XML code is used for indicating the type of the display component, and the obtaining of the template identifier matching with the type of the display component in the grammar rule base comprises:
acquiring a first character of the keyword, and determining a template class to which the first character belongs in the grammar rule base;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
4. The method of claim 1, wherein the converting the XML code according to the HTML code template to obtain HTML code for displaying the display component comprises:
extracting the first attribute and attribute value in the XML code;
and acquiring the second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute, and obtaining an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
5. The method of claim 1, wherein determining the type of the display component from the code at the predetermined location in the XML code comprises:
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
6. The method according to claim 1, wherein the obtaining XML code corresponding to the display component of the web page to be displayed comprises:
intercepting all XML codes in the page codes of the webpage to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
7. The method of claim 6, wherein the code is identified as a preset function header and a preset function trailer; the acquiring the XML code from the intercepted XML code according to the code identifier of the XML code comprises the following steps:
acquiring a preset XML code from the intercepted XML codes, wherein the preset XML code comprises a preset function head and a preset function tail;
and determining the XML code between the head of the preset function and the tail of the preset function as the XML code.
8. The method of claim 6, wherein intercepting XML code in the page code of the web page to be displayed comprises:
intercepting all XML codes in the page codes of the webpage to be displayed through a preset template engine.
9. The method of any of claims 1 to 8, wherein the display component comprises at least one web page element selected from the group consisting of: text, pictures, audio, animation, or video.
10. The method according to any one of claims 1 to 8, wherein the web page to be displayed corresponds to at least one display component.
11. The method according to any one of claims 1 to 8, wherein the XML code is a code that satisfies a preset syntax rule.
12. A web page processing apparatus, comprising:
the XML code acquisition module is used for acquiring an extensible markup language XML code corresponding to a display component of a webpage to be displayed according to the webpage access request;
the type determining module is used for determining the type of the display component according to the code at the preset position in the XML code;
the template acquisition module is used for acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
the conversion module is used for converting the XML codes according to the HTML code template to obtain hypertext markup language (HTML) codes for displaying the display components; the HTML code is used for displaying the webpage, a second attribute included in the HTML code expresses the same meaning as a first attribute included in the XML code, and an attribute value of the second attribute is assigned to be an attribute value of the first attribute matched with the second attribute.
13. The apparatus of claim 12, wherein the template acquisition module comprises:
the template identifier acquisition unit is used for acquiring a template identifier matched with the type of the display component in a grammar rule base;
and the template acquisition unit is used for acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
14. The apparatus according to claim 13, wherein the keyword at the preset position in the XML code is used to indicate the type of the display component, the template identifier obtaining unit is specifically used to,
acquiring a first character of the keyword, and determining a template class to which the first character belongs in the grammar rule base;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
15. The apparatus of claim 12, wherein the conversion module is specifically configured to,
extracting the first attribute and attribute value in the XML code;
and acquiring the second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute, and obtaining an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
16. The apparatus of claim 12, wherein the type determination module is specifically configured to,
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
17. The apparatus according to claim 12, wherein the XML code acquisition module is specifically configured to,
intercepting all XML codes in the page codes of the webpage to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
18. A web page processing apparatus, comprising:
the input device is used for receiving a webpage access request sent by a browser;
the processor is coupled with the input device and used for acquiring extensible markup language (XML) codes corresponding to display components of the webpage to be displayed according to the webpage access request;
the processor is further used for determining the type of the display component according to the code at the preset position in the XML code;
the processor is further used for acquiring an HTML code template matched with the type of the display component; the type of each display component has a corresponding relation with an HTML code template;
the processor is further configured to perform conversion processing on the XML code according to the HTML code template to obtain a hypertext markup language HTML code for displaying the display component, where a second attribute included in the HTML code and a first attribute included in the XML code express the same meaning, and an attribute value of the second attribute is assigned to be an attribute value of the first attribute matched with the second attribute;
and the output device is coupled with the processor and used for sending the HTML codes to the browser so as to enable the browser to display the webpage according to the HTML codes.
19. The apparatus of claim 18, wherein the processor is further specific to,
acquiring a template identifier matched with the type of the display component in a grammar rule base;
and acquiring an HTML code template matched with the type of the display component according to the template identifier, wherein the grammar rule base stores the corresponding relation between the template identifier and the type of the display component.
20. The apparatus according to claim 19, wherein a keyword at a predetermined location in the XML code is used to indicate the type of the display component, and wherein the processor is further configured to obtain a first character of the keyword, and determine a template class to which the first character belongs in the grammar rule base;
acquiring a template identifier matched with the keyword in the template class; and a plurality of template classes are also stored in the grammar rule base, and a template identifier matched with the keyword is stored in each template class.
21. The apparatus of claim 18, wherein the processor is further specifically configured to extract the first attribute and attribute value in the XML code;
and acquiring the second attribute matched with the first attribute from the HTML code template, assigning the attribute value to the second attribute, and obtaining an HTML code for displaying the display component, wherein the assignment of the second attribute in the HTML code template is null.
22. The apparatus of claim 18, wherein the processor is further specific to,
extracting a keyword indicating a type of the display component in an outermost configuration item of the XML code.
23. The device according to claim 18, wherein the processor is specifically configured to intercept all XML code in the page code of the web page to be displayed;
and acquiring the XML codes from the intercepted XML codes according to the code identifications of the XML codes.
24. The apparatus of claim 23, wherein the code is identified as a preset function header and a preset function trailer; the processor is also particularly adapted to,
acquiring a preset XML code from the intercepted XML codes, wherein the preset XML code comprises a preset function head and a preset function tail;
and determining the XML code between the head of the preset function and the tail of the preset function as the XML code.
25. The device of claim 23, wherein the processor is further configured to intercept all XML code in the page code of the web page to be displayed through a preset template engine.
CN201610757362.4A 2016-08-29 2016-08-29 Webpage processing method, device and equipment Active CN107798001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610757362.4A CN107798001B (en) 2016-08-29 2016-08-29 Webpage processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610757362.4A CN107798001B (en) 2016-08-29 2016-08-29 Webpage processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN107798001A CN107798001A (en) 2018-03-13
CN107798001B true CN107798001B (en) 2022-03-22

Family

ID=61528219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610757362.4A Active CN107798001B (en) 2016-08-29 2016-08-29 Webpage processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN107798001B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614565B (en) * 2018-04-04 2020-06-23 京东数字科技控股有限公司 Webpage generation method and device
CN109067726B (en) * 2018-07-24 2021-04-13 北京知道创宇信息技术股份有限公司 Identification method and device for station building system, electronic equipment and storage medium
CN109635175B (en) * 2018-11-06 2021-12-31 北京字节跳动网络技术有限公司 Page data splicing method and device, readable storage medium and electronic equipment
CN112329413B (en) * 2019-08-02 2024-07-02 阿里巴巴集团控股有限公司 Template building method, file generating method, template system, template device and computer equipment
CN110704136B (en) * 2019-09-27 2023-06-20 北京百度网讯科技有限公司 Method for rendering applet components, client, electronic device and storage medium
CN111125605B (en) * 2019-12-31 2022-07-29 北京创鑫旅程网络技术有限公司 Page element acquisition method and device
CN112269576A (en) * 2020-08-07 2021-01-26 北京沃东天骏信息技术有限公司 Component display method and device, server and storage medium
CN114077827A (en) * 2020-08-17 2022-02-22 阿里巴巴集团控股有限公司 Data report processing system, method and computer equipment
CN112861483A (en) * 2021-02-07 2021-05-28 吉林省科学技术信息研究所 Online editing method for demonstration manuscript

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987850A (en) * 2005-12-20 2007-06-27 腾讯科技(深圳)有限公司 Method for realizing AJAX webpage
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
CN102646039A (en) * 2012-02-29 2012-08-22 河海大学 Software interface generating system and method based on extensible markup language (XML) Schema
CN105426172A (en) * 2015-10-30 2016-03-23 北京金海明天软件技术有限公司 XML analysis technique and template language based dynamic WEB page generation method
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8260845B1 (en) * 2007-11-21 2012-09-04 Appcelerator, Inc. System and method for auto-generating JavaScript proxies and meta-proxies
US20100077320A1 (en) * 2008-09-19 2010-03-25 United States Government As Represented By The Secretary Of The Navy SGML/XML to HTML conversion system and method for frame-based viewer
CN103544024A (en) * 2013-11-12 2014-01-29 深圳如果技术有限公司 Method and system for generating browser page and terminal device
CN104915204A (en) * 2015-06-08 2015-09-16 小米科技有限责任公司 Web processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987850A (en) * 2005-12-20 2007-06-27 腾讯科技(深圳)有限公司 Method for realizing AJAX webpage
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
CN102646039A (en) * 2012-02-29 2012-08-22 河海大学 Software interface generating system and method based on extensible markup language (XML) Schema
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN105426172A (en) * 2015-10-30 2016-03-23 北京金海明天软件技术有限公司 XML analysis technique and template language based dynamic WEB page generation method

Also Published As

Publication number Publication date
CN107798001A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107798001B (en) Webpage processing method, device and equipment
US11977598B2 (en) Systems and methods for obtaining search results
CN106598574B (en) Page rendering method and device
WO2018133452A1 (en) Webpage rendering method and related device
CN107729475B (en) Webpage element acquisition method, device, terminal and computer-readable storage medium
CN108427731B (en) Page code processing method and device, terminal equipment and medium
WO2019153685A1 (en) Text processing method, apparatus, computer device and storage medium
CN107491477B (en) Emotion symbol searching method and device
CN109582909A (en) Webpage automatic generation method and device, electronic equipment and storage medium
CN103377287A (en) Method and device for putting in item information
US11256912B2 (en) Electronic form identification using spatial information
US8671389B1 (en) Web application resource manager on the web and localizable components
CN107992523B (en) Function option searching method of mobile application and terminal equipment
CN111209374B (en) Data query display method, device, computer system and readable storage medium
US8706572B1 (en) Generating product image maps
CN111291158B (en) Information query method and device, electronic equipment and storage medium
EP3961426A2 (en) Method and apparatus for recommending document, electronic device and medium
CN104102704A (en) System control displaying method and system control displaying device
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
RU2632149C2 (en) System, method and constant machine-readable medium for validation of web pages
CN112947900B (en) Web application development method and device, server and development terminal
CN108959289B (en) Website category acquisition method and device
CN110489528B (en) Electronic dictionary reconstruction method based on electronic book content and computing equipment
CN110189171B (en) Feature data generation method, device and equipment
CN112487138A (en) Information extraction method and device for formatted text

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180412

Address after: Four story 847 mailbox of the capital mansion of Cayman Islands, Cayman Islands, Cayman

Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd.

Address before: Cayman Islands Grand Cayman capital building a four storey No. 847 mailbox

Applicant before: ALIBABA GROUP HOLDING Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant