CN103246662A - Processing method and device of area data contents in web pages - Google Patents

Processing method and device of area data contents in web pages Download PDF

Info

Publication number
CN103246662A
CN103246662A CN2012100263972A CN201210026397A CN103246662A CN 103246662 A CN103246662 A CN 103246662A CN 2012100263972 A CN2012100263972 A CN 2012100263972A CN 201210026397 A CN201210026397 A CN 201210026397A CN 103246662 A CN103246662 A CN 103246662A
Authority
CN
China
Prior art keywords
xml data
webpage
appointed area
file
data content
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.)
Granted
Application number
CN2012100263972A
Other languages
Chinese (zh)
Other versions
CN103246662B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210026397.2A priority Critical patent/CN103246662B/en
Publication of CN103246662A publication Critical patent/CN103246662A/en
Application granted granted Critical
Publication of CN103246662B publication Critical patent/CN103246662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a processing method and a device of area data contents in web pages. The processing method comprises selecting corresponding XML (Extensible Markup Language) data files for at least one specified area of specified web pages according to user instructions; extracting data contents from the corresponding XML data files of the specified area, combining into an XML data combination file and utilizing area identification to distinguish the data contents corresponding to the specified area; saving the XML data combination file; writing a memory address of the XML data combination file into the web pages; and reading the data contents of the specified area in the XML data combination file according to the memory address of the XML data combination file in the web pages when the web pages are displayed and displaying the data contents of the specified area in corresponding areas of the web pages according to the area identification. According to the processing method and the device of the area data contents in the web pages, the efficiency of development and maintenance of the web pages can be improved and the workloads and costs of the development and maintenance can be reduced.

Description

The disposal route of area data content and device in the Webpage
Technical field
The present invention relates to the data processing technique of internet, relate in particular to disposal route and the device of area data content in a kind of Webpage.
Background technology
At present, data processing field at the Webpage of internet, when showing different data contents respectively in need the more than one appointed area in a Webpage, normally each place, the appointed area correspondence in the Webpage is placed an extend markup language (XML, Extensible Markup Language) memory address of data file, network front end (as browser or other can browsing page client) when the display network page, read the data content of corresponding XML data file according to the memory address of the XML data file of each appointed area correspondence, the data content that reads is presented at corresponding zone.
Described XML data file generates, is used for the data file of the data content unit of storage in the net background system, has specific form, the relevant information that has comprised each data content unit, gone to call by network front end and read, show the relevant information of corresponding data content unit at the page.Described data content unit can be some concrete demonstration objects, and each product information that for example is used for the Webpage of display of products is exactly a data content element.
A kind of synoptic diagram of Fig. 1 in the prior art area data content in the Webpage being handled.Referring to Fig. 1; suppose that this Webpage is the Webpage in a kind of e-commerce system; usually can be useful on the Webpage of showing certain sales field merchandise news in this Webpage; more than one commodity zone is arranged in this Webpage; be " new product " such as first zone; second zone is " price reduction ", and the 3rd zone is " short in size " etc.At each appointed area in the Webpage, all correspondence generates a single XML data file that comprises corresponding goods information, and each merchandise news in this XML data file is exactly a data content element.Need in the prior art described more than one XML data file is written in the described Webpage one by one, and it is correct to arrange the regional location that guarantees commodity demonstration correspondence in order.
The shortcoming of above-mentioned prior art is:
On the one hand, usually in Webpage, need the quantity of appointed area of display data content unit a lot, each appointed area all needs the developer manually to write corresponding XML data file information in Webpage and specifies corresponding regional location, therefore the development amount of Webpage is big, development efficiency is lower, and cost is higher.
On the other hand, Webpage need often carry out updating maintenance, for example the Webpage of described displaying sales field merchandise news might each week or shorter interval will revise maintenance once, change the new merchandise news (being the data content unit) in the appointed area; When described Webpage is carried out updating maintenance, need the operation personnel manually memory address and the corresponding regional location of XML data files all in the Webpage to be revised one time one by one, maintenance workload is very big, and maintenance efficiency is lower, maintenance cost is higher, but also makes mistakes easily.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide disposal route and the device of area data content in a kind of Webpage, to improve the efficient of development and maintenance Webpage, reduces workload and the cost of development and maintenance.
Technical scheme of the present invention is achieved in that
The disposal route of area data content in a kind of Webpage comprises:
A, be that corresponding expandable mark language XML data file is selected in the more than one appointed area of the Webpage of appointment according to user instruction;
B, extract data content from the XML data file of described each appointed area correspondence, be combined into an XML data composition file, wherein the data content of each appointed area correspondence is distinguished with area identification;
C, the described XML data composition file of preservation; The memory address of described XML data composition file is written in the described Webpage;
D, when showing described Webpage, memory address according to the described XML data composition file in this Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.
The treating apparatus of area data content in a kind of Webpage comprises the selection module, composite module and the memory module that are arranged in the net background system, and is arranged on the regional display module in the Webpage;
It is the corresponding XML data file of more than one appointed area selection of the Webpage of appointment that described selection module is used for according to user instruction;
Described composite module is used for extracting data content from the XML data file of described each appointed area correspondence, is combined into an XML data composition file, and wherein the data content of each appointed area correspondence is distinguished with area identification;
Described memory module be used for to be preserved described XML data composition file, the memory address of described XML data composition file is written to selects in the specified Webpage of module;
Described regional display module is used for when showing described Webpage, memory address according to the described XML data composition file in this Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.
Compared with prior art, the present invention is combined into an XML data composition file with the XML data file of the more than one appointed area correspondence in the Webpage of appointment, the memory address of this XML data composition file is written in the described Webpage, when showing described Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.Therefore, the present invention only needs exploitation and safeguards that an XML data composition file gets final product when exploitation and the maintaining network page, has improved the efficient of exploitation and the maintaining network page, has reduced workload and the cost of exploitation and the maintaining network page.
Description of drawings
A kind of synoptic diagram of Fig. 1 in the prior art area data content in the Webpage being handled;
Fig. 2 is a kind of processing flow chart of the disposal route of area data content in the Webpage of the present invention;
Fig. 3 is a kind of array mode option command interface synoptic diagram of data content of appointed area of Webpage;
A kind of synoptic diagram that Fig. 4 handles area data content in the Webpage for the present invention;
Fig. 5 is a kind of composition synoptic diagram of the treating apparatus of area data content in the Webpage of the present invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Fig. 2 is a kind of processing flow chart of the disposal route of area data content in the Webpage of the present invention; Referring to Fig. 2, this flow process mainly comprises:
Step 201, be that corresponding XML data file is selected in the more than one appointed area of the Webpage of appointment according to user instruction;
Step 202, extract data content from the XML data file of described each appointed area correspondence, be combined into an XML data composition file, wherein the data content of each appointed area correspondence is distinguished with area identification;
Step 203, the described XML data composition file of preservation; The memory address of described XML data composition file is written in the described Webpage;
Step 204, when showing described Webpage, memory address according to the described XML data composition file in this Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.
In described step 201, can show specially that in an embodiment of the present invention an array mode options interface supplies the user to operate, and select corresponding XML data file according to user's operational order, perhaps can also further carry out more detailed selection.
Fig. 3 is a kind of array mode option command interface synoptic diagram of data content of appointed area of Webpage.Referring to Fig. 3, described Webpage among this embodiment is the Webpage in a kind of e-commerce system, left side first row 301 are the area identification of XML data file corresponding region in the array mode options interface of this Webpage, this area identification is order each appointed area that needs display data content in the corresponding current network page respectively, in the interface, also comprise zone interpolation button 302, click this button 302 and can increase an area identification again, also comprise regional delete button 312 in addition in the interface, click this delete button 312 and can delete an appointed area.
All single XML data files for candidate of the present invention generate in advance, when selecting the XML data file of a certain appointed area correspondence, two kinds of embodiments are arranged.A kind of embodiment is directly to select from all XML data files that generated.Another kind of embodiment can carry out classified and stored with the XML data file that generates according to XML Data Source type in advance, when selecting the XML data file of a certain appointed area correspondence, select the XML Data Source type of this appointed area correspondence earlier, the left side secondary series is used for selecting XML Data Source type as described in Figure 3, " modification " button 303 of clicking wherein can send user instruction, the XML Data Source type of showing all candidates is chosen a certain concrete XML Data Source type according to user's selection instruction again; Select the concrete XML data file in this XML Data Source type afterwards again, left side the 3rd row are used for the XML data file that the selected XML Data Source of selection secondary series type specifically comprises as described in Figure 3, click the filename that described drop-down menu 304 just can show all XML data files that specifically comprise in the selected XML Data Source of the colleague's secondary series type, choose a certain concrete XML data file according to user's selection instruction again and get final product.
In one embodiment, in step 201, can also further determine the number of corresponding data content unit for each appointed area according to user's instruction.As shown in Figure 3, the number that left side the 4th row described " display of commodity number " are exactly the data content unit of appointed area correspondence, in the described example of Fig. 3, described Webpage is the Webpage in a kind of e-commerce system, the information that a described data content element is exactly commodity (as ID number of commodity, title, price, Time To Market, information such as introductions in detail), the user can insert the number of correspondence for each appointed area in described " display of commodity number ".After the user clicks " preservation " button, then preserve this array mode, be specially from the XML data file of each appointed area correspondence, extracting data content described in the step 202: according to the number of the data content unit of the determined appointed area of step 201 correspondence, from the XML data file of described appointed area correspondence, extract the data content unit of corresponding number, namely wherein each appointed area the number of the data content unit in the corresponding data content that extracts be the number of the data content unit of determined this appointed area correspondence of step 201.For example, the number of the data content unit of regional 1 correspondence is 4 as shown in Figure 3, the number of the data content unit of zone 2 correspondences is 2, then in step 202, from the XML data file of this zone 1 correspondence, extract 4 data content element (i.e. 4 merchandise newss), from the XML data file of regional 2 correspondences, extract 2 data content element (i.e. 2 merchandise newss), the number of other corresponding data content unit that extract, zone repeats no more as shown in Figure 3.Afterwards, each the regional data content unit that extracts is combined in the XML data composition file according to area identification, in this XML data composition file, record each area identification successively, each area identification all corresponding record has the data content unit (being the information of each commodity) of this zone correspondence.
Afterwards in step 203, XML data composition file after preservation combines, its memory address is written to the specified Webpage of step 201 as described in certain specified network page of e-commerce system, and described memory address specifically can be represented with URL(uniform resource locator) (URL).
Step 204 reads the data content unit in each area identification in this XML data composition file successively when showing described Webpage, according to area identification the data content unit that reads is presented in the zone of this area identification correspondence of Webpage.For example, regional 1 corresponding record 4 data content unit, namely 4 merchandise newss then are presented at these 4 merchandise newss in the zone 1 in the Webpage in order.
In one embodiment, in the step 201 in that described instruction according to the user is Webpage after each appointed area selects corresponding XML data file, can also readjust the corresponding appointed area of appointment XML data file wherein further according to user's adjustment instruction.As shown in Figure 3, just shown a kind of concrete adjustment instruction in the 5th row described " adjustment position " of left side, for example the downward arrow in " the adjustment position " of 1 corresponding row of click on area row then triggers information such as the described XML data file of one's own profession and display of commodity number is moved down delegation, and the result is that the corresponding appointed areas of information such as this XML data file and display of commodity number have become zone 2 by zone 1.In like manner, then triggering information such as the described XML data file of one's own profession and the display of commodity number delegation that moves up to upward arrow in " the adjustment position " of 4 corresponding row of click on area row for example, the result is that the corresponding appointed areas of information such as this XML data file and display of commodity number have become zone 3 by zone 4.By this follow-up adjustment, can make opening and maintainer revise the array mode of XML data file easily, further improved efficient, reduced development and maintenance cost.
A kind of synoptic diagram that Fig. 4 handles area data content in the Webpage for the present invention.Referring to Fig. 4, the single XML data file of each appointed area correspondence that the present invention will generate in advance is combined into an XML data composition file, with this XML data composition file storage, and its memory address is written in the Webpage of appointment, can reach the effect of filling in a plurality of XML data files in the prior art.And development, with follow-up content maintenance work, all no longer need to revise described Webpage, only need to upgrade single XML content data file, and utilize array mode option command interface shown in Figure 3 that the XML data file of each appointed area in the Webpage is reconfigured to get final product, the data content that reconfigures can be updated in the XML data composition file automatically, then can read and show up-to-date data when described Webpage moves again.Therefore, prior art does not need the front network page is made an amendment relatively, has improved work efficiency, the workload and the cost that have reduced exploitation and safeguarded.Simultaneously, other is revised owing to needn't carry out code level to the front network page, the error rate that can also reduce exploitation and safeguard.
The invention also discloses the treating apparatus of area data content in a kind of Webpage, be used for carrying out said method of the present invention.Fig. 5 is a kind of composition synoptic diagram of the treating apparatus of area data content in the Webpage of the present invention.Referring to Fig. 5, this treating apparatus comprises:
Select module, being used for according to user instruction is the corresponding XML data file of more than one appointed area selection of the Webpage of appointment.This selection module can show the interface of the described array mode option instruction of Fig. 3, is used for the prompting user and imports user instruction, and select corresponding XML data file.
Composite module is used for extracting data content from the XML data file of described each appointed area correspondence, is combined into an XML data composition file, and wherein the data content of each appointed area correspondence is distinguished with area identification.
Memory module be used for to be preserved described XML data composition file, the memory address of described XML data composition file is written to selects in the specified Webpage of module.
Above-mentioned selection module, composite module, memory module are arranged in the net background system of website system.
The zone display module, be arranged in the described Webpage of network front end (namely selecting the Webpage of module appointment), be used for when showing described Webpage according to request of access, memory address according to the described XML data composition file in this Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.
In one embodiment, described selection module specifically is used for: at the described more than one appointed area of Webpage, select the XML Data Source type of this appointed area correspondence earlier according to user instruction, select the concrete XML data file in this XML Data Source type again, shown in Fig. 3 left side second row and left side the third line.
In one embodiment, described selection module is further used for determining the number of corresponding data content unit according to user's instruction for each appointed area, shown in the fourth line of Fig. 3 left side; In the data content that described composite module extracts from the XML data file of each appointed area correspondence, each appointed area the number of the data content unit in the corresponding data content that extracts be the number of the data content unit of selecting determined this appointed area correspondence of module.
In one embodiment, described selection module is further used for: be after corresponding XML data file is selected in each appointed area of Webpage in the instruction according to the user, adjustment instruction according to the user, readjust the corresponding appointed area of appointment XML data file wherein, the up and down arrows shown in the fifth line of Fig. 3 left side is used for adjusting the appointed area of current line correspondence.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. the disposal route of area data content in the Webpage is characterized in that, comprising:
A, be that corresponding expandable mark language XML data file is selected in the more than one appointed area of the Webpage of appointment according to user instruction;
B, extract data content from the XML data file of described each appointed area correspondence, be combined into an XML data composition file, wherein the data content of each appointed area correspondence is distinguished with area identification;
C, the described XML data composition file of preservation; The memory address of described XML data composition file is written in the described Webpage;
D, when showing described Webpage, memory address according to the described XML data composition file in this Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.
2. method according to claim 1 is characterized in that, steps A specifically comprises:
At each appointed area of Webpage, according to the XML Data Source type that this appointed area correspondence is selected by user instruction elder generation, select the concrete XML data file in this XML Data Source type again.
3. method according to claim 1 is characterized in that,
Further comprise in the steps A: the number of determining corresponding data content unit according to user's instruction for each appointed area;
Extracting data content described in the step B from the XML data file of appointed area correspondence is specially: according to the number of the data content unit of the determined appointed area of steps A correspondence, extract the data content unit of corresponding number from the XML data file of described appointed area correspondence.
4. method according to claim 1, it is characterized in that, in the steps A in that described instruction according to the user is Webpage after each appointed area selects corresponding XML data file, further comprise: according to user's adjustment instruction, readjust the corresponding appointed area of appointment XML data file wherein.
5. the treating apparatus of area data content in the Webpage is characterized in that, comprises the selection module, composite module and the memory module that are arranged in the net background system, and is arranged on the regional display module in the Webpage;
It is the corresponding XML data file of more than one appointed area selection of the Webpage of appointment that described selection module is used for according to user instruction;
Described composite module is used for extracting data content from the XML data file of described each appointed area correspondence, is combined into an XML data composition file, and wherein the data content of each appointed area correspondence is distinguished with area identification;
Described memory module be used for to be preserved described XML data composition file, the memory address of described XML data composition file is written to selects in the specified Webpage of module;
Described regional display module is used for when showing described Webpage, memory address according to the described XML data composition file in this Webpage, read the data content of each appointed area in this XML data composition file, be presented in the corresponding region of this Webpage according to the data content of area identification with each appointed area.
6. device according to claim 5, it is characterized in that, described selection module specifically is used for: at the described more than one appointed area of Webpage, according to the XML Data Source type of user instruction elder generation this appointed area correspondence of selection, select the concrete XML data file in this XML Data Source type again.
7. device according to claim 5 is characterized in that,
Described selection module is further used for determining for each appointed area according to user's instruction the number of corresponding data content unit;
In the data content that described composite module extracts from the XML data file of each appointed area correspondence, each appointed area the number of the data content unit in the corresponding data content that extracts be the number of the data content unit of selecting determined this appointed area correspondence of module.
8. device according to claim 5, it is characterized in that, described selection module is further used for: be after corresponding XML data file is selected in each appointed area of Webpage in the instruction according to the user, according to user's adjustment instruction, readjust the corresponding appointed area of appointment XML data file wherein.
CN201210026397.2A 2012-02-07 2012-02-07 The treating method and apparatus of area data content in Webpage Active CN103246662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210026397.2A CN103246662B (en) 2012-02-07 2012-02-07 The treating method and apparatus of area data content in Webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210026397.2A CN103246662B (en) 2012-02-07 2012-02-07 The treating method and apparatus of area data content in Webpage

Publications (2)

Publication Number Publication Date
CN103246662A true CN103246662A (en) 2013-08-14
CN103246662B CN103246662B (en) 2016-08-17

Family

ID=48926187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210026397.2A Active CN103246662B (en) 2012-02-07 2012-02-07 The treating method and apparatus of area data content in Webpage

Country Status (1)

Country Link
CN (1) CN103246662B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414951A (en) * 2013-08-16 2013-11-27 天脉聚源(北京)传媒科技有限公司 Interface display method, device, set top box and server
CN103414950A (en) * 2013-08-16 2013-11-27 天脉聚源(北京)传媒科技有限公司 Interface display method, device, set top box and server
CN105094779A (en) * 2014-05-14 2015-11-25 北大方正集团有限公司 Page design method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040010755A1 (en) * 2002-07-09 2004-01-15 Shinichiro Hamada Document editing method, document editing system, server apparatus, and document editing program
CN101894168A (en) * 2010-06-30 2010-11-24 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN102314428A (en) * 2010-06-30 2012-01-11 上海视加信息科技有限公司 Method for distributively creating webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040010755A1 (en) * 2002-07-09 2004-01-15 Shinichiro Hamada Document editing method, document editing system, server apparatus, and document editing program
CN101894168A (en) * 2010-06-30 2010-11-24 优视科技有限公司 Method and system for layout display of web page of mobile terminal
CN102314428A (en) * 2010-06-30 2012-01-11 上海视加信息科技有限公司 Method for distributively creating webpage

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414951A (en) * 2013-08-16 2013-11-27 天脉聚源(北京)传媒科技有限公司 Interface display method, device, set top box and server
CN103414950A (en) * 2013-08-16 2013-11-27 天脉聚源(北京)传媒科技有限公司 Interface display method, device, set top box and server
CN103414951B (en) * 2013-08-16 2016-09-14 天脉聚源(北京)传媒科技有限公司 A kind of method for showing interface, device, Set Top Box and server
CN103414950B (en) * 2013-08-16 2016-09-14 天脉聚源(北京)传媒科技有限公司 A kind of method for showing interface, device, Set Top Box and server
CN105094779A (en) * 2014-05-14 2015-11-25 北大方正集团有限公司 Page design method

Also Published As

Publication number Publication date
CN103246662B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
US10832198B2 (en) Guided page navigation
CN101976235B (en) Extensible Word report automatically-generating method based on dynamic web page
US11170063B2 (en) User interface element for surfacing related results
CN101771681B (en) Page display control method, server and system
JP5786105B2 (en) Information processing apparatus, information processing method, information processing program, display control apparatus, and display control program
CN101192231B (en) Bookmark based on context
CN102831252B (en) A kind of method for upgrading index data base and device, searching method and system
US20130326333A1 (en) Mobile Content Management System
US20040215719A1 (en) Method and system for designing, editing and publishing web page content in a live internet session
CN104142826A (en) Method, device and system for constructing page
CN103678511B (en) The method and device of webpage content extraction is carried out according to visual template
CN104462131A (en) Method and device for processing information issuing page
US20090112724A1 (en) Method and equipment for exposing an advertisement using application
CN103207874A (en) Updated webpage content prompting method and system
CN101128816A (en) Method and system for displaying and interacting with paginated content
US20100161586A1 (en) System and method of multi-page display and interaction of any internet search engine data on an internet browser
US20100269093A1 (en) Content Management System and Method for Generating Dynamic Applications
KR100928315B1 (en) Web browsing system
WO2016022137A1 (en) Replicating a web technology
CN103246662A (en) Processing method and device of area data contents in web pages
TWI570579B (en) An information retrieving method utilizing webpage visual features and webpage language features and a system using thereof
CN100553250C (en) The method and apparatus of marking of web pages
CN103970773A (en) Page updating method and device for web page
CN103246680A (en) Method and device for aggregating and displaying webpage contents in browser
CN100416464C (en) Information processor, information processing method and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant