CN101876901B - Method for realizing single disk block state of webmaster by using extensible markup language (XML) - Google Patents

Method for realizing single disk block state of webmaster by using extensible markup language (XML) Download PDF

Info

Publication number
CN101876901B
CN101876901B CN 200910250025 CN200910250025A CN101876901B CN 101876901 B CN101876901 B CN 101876901B CN 200910250025 CN200910250025 CN 200910250025 CN 200910250025 A CN200910250025 A CN 200910250025A CN 101876901 B CN101876901 B CN 101876901B
Authority
CN
China
Prior art keywords
xml
status
bulk state
deck
file
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.)
Expired - Fee Related
Application number
CN 200910250025
Other languages
Chinese (zh)
Other versions
CN101876901A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN 200910250025 priority Critical patent/CN101876901B/en
Publication of CN101876901A publication Critical patent/CN101876901A/en
Application granted granted Critical
Publication of CN101876901B publication Critical patent/CN101876901B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for realizing the single disk block state of a webmaster by using extensible markup language (XML), and relates to application of the XML in single disk management. The method is characterized by comprising the following steps of: 1, generating a block state resolution and definition file; 2, generating an XML block state display file; and 3, displaying the singledisk block state. The method for realizing the single disk block state of the webmaster by using the XML has the advantages of displaying the single disk block state by a block display method, quickly modifying the display mode as required, along with unified display mode and easy maintenance.

Description

A kind of method of dividing bulk state with XML demonstration webmaster single-deck
Technical field
The present invention relates to the application of XML in the single-deck management, specifically a kind of method of dividing bulk state with XML demonstration webmaster single-deck.Said single-deck is the hardware device in the communication network.
Background technology
XML (eXtensible Markup Language, be called for short XML) be extend markup language, it is the same with HTML, all be according to SGML (Standard Generalized Markup Language, be called for short SGML) made fixing, so XML can be considered as the subset of SGML.XML is cross-platform in the Internet environment, depends on the technology of content, is the powerful when pre-treatment structured document information.Expandable mark language XML is a kind of simple data storing language, use a series of simple mark data of description, and these marks can be set up with mode easily, although the space that XML takies will take more space than binary data, XML extremely simply is easy to grasp and use.XML simply makes it be easy to read and write data in any application program, and this makes XML become very soon unique common language of exchanges data.Because the appearance of XML grammer, so that markup language is able to standardization, and being applied to various fields, the message that makes its file content pass on can more easily be transmitted between each platform, help interchange and the data of information to process, in addition, XML is easy to learn, therefore, XML has very important impact for the development of future network information.
XSD refers to XML organization definition (XML Schemas Definition), and XML Schema language is XSD namely.XML Schema has described the structure of XML document, can verify certain XML document with the XML Schema of an appointment, whether meets its requirement to check this XML document.File design person can specify structure and the content that XML document allows by XML Schema, and can check accordingly whether effective an XML document is.XML Schema itself is an XML document, and it meets the XML syntactic structure, can with general XML resolver resolves it.An XML Schema can define: whether the quantity of the attribute that occurs in the element that occurs in the document, the document, daughter element, daughter element, the order of daughter element, element are acquiescence and the fixed value of data type, element or the attribute of sky, element and attribute.
XSD is that DTD (Document Type Definition, DTD (Document Type Definition)) replacer's reason has following 5 points, the one, can expand according to condition in the future, the 2nd, abundanter and useful than DTD, the 3rd, write with XML, the 4th, the supported data type, the 5th, support NameSpace.
The advantage of XML Schema is as follows:
1) XML Schema XML-based does not have special grammer;
2) XML can resolve and process as other XML files;
3) XML Schema supports a series of data type (int, float, Boolean, date etc.);
4) XML Schema provides open-ended data model;
5) XML Schema supports comprehensive NameSpace;
6) XML Schema supports set of properties.
Since 21 century, because the fast development of communications industry, market competition is day by day fierce, and each large communications equipment manufacturer adopts the whole bag of tricks to reduce cost invariably.(said single-deck software is the software that operates on the single-deck in webmastering software exploitation and single-deck software development, said webmastering software is the software that moves on computers, it is in charge of all single-decks), the state of single-deck shows the general HTML (HyperText Mark-up Language) of the employing page, the developer need to make according to protocol contents the page of html format, and often need in html page, use control to realize required display effect, yet there is following shortcoming in html page, makes it can't satisfy the demand of single-deck software development:
1) data and demonstration mix.Because used many controls in the html page, skew and the length of control and data are closely connected, if html page will change display effect, just must again make html page, maintenance cost is very large.
2) need to make different html pages to the different same data of single-deck demonstration, namely html page and single-deck are man-to-man relation.
3) when the state of single-deck is very many, just must make a very large html page, can't realize that piecemeal shows.
Summary of the invention
For the defective that exists in the prior art, the object of the present invention is to provide a kind of method of dividing bulk state with XML demonstration webmaster single-deck, the mode that shows with piecemeal realizes that single-deck divides the demonstration of bulk state, and display mode is unified, the Modify rapidly display mode is easy to safeguard as required.
For reaching above purpose, the technical scheme that the present invention takes is:
A kind of method of dividing bulk state with XML demonstration webmaster single-deck is characterized in that may further comprise the steps:
Step 1, writing minute bulk state resolves and defined file: minute bulk state parsing and defined file and single-deck are the relation of one-to-many, divide in bulk state parsing and the defined file and comprised all status blocks, and each status block has unique state ID corresponding with it, each single-deck selection is several status blocks demonstrations wherein, and the status block that needs to show obtains in minute bulk state parsing and defined file according to state ID;
Step 2, writing XML, to divide bulk state display file: XML to divide bulk state display file and single-deck be man-to-man relation, XML divides the quantity of the status block that bulk state display file shows as required, with the display format of each status block of formal definition of form, there are several status blocks that need to show just to have several forms corresponding with it;
Step 3, single-deck divide bulk state to show: webmastering software reads minute block status data that single-deck reports, and obtains status block quantity and state ID thereof that this single-deck need to show; Parse the status block that each needs show according to state ID and minute block status data in minute bulk state parsing and defined file, each status block that need to show divides bulk state display file to generate final display page according to XML.
On the basis of technique scheme, XML divides bulk state display file to comprise form template and display type, and form template is used for the control table format, and display type is used for representing basic data type.
Of the present inventionly show that with XML the webmaster single-deck divides the method for bulk state to have the following advantages:
1) data are separated with demonstration.Dividing bulk state to resolve with defined file is the status data definition, be responsible for the parsing of status block, and XML divides bulk state display file just to be responsible for the demonstration of status block, and write the skew that does not need computational data when minute bulk state parsing divides bulk state display file file with defined file and XML, the page will change display effect just easily, need not again make minute bulk state parsing and divide bulk state display file with defined file and XML, maintenance cost is low.
2) different single-decks is shown that same status block data do not need to make different XML and divide bulk state display file and minute bulk state to resolve and defined file, needed only status block ID unanimously.
3) when the state of single-deck is very many, do not need to make a very large display page, can realize easily that piecemeal shows.
Description of drawings
The present invention has following accompanying drawing:
Fig. 1 divides the structural representation of boardstatus_new element in bulk state parsing and the defined file
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
The invention discloses a kind of method of dividing bulk state with XML demonstration webmaster single-deck, may further comprise the steps:
Step 1, writing minute bulk state resolves and defined file: minute bulk state parsing and defined file and single-deck are the relation of one-to-many, divide in bulk state parsing and the defined file and comprised all status blocks, and each status block has unique state ID corresponding with it, each single-deck selection is several status blocks demonstrations wherein, and the status block that needs to show obtains in minute bulk state parsing and defined file according to state ID;
Step 2, writing XML, to divide bulk state display file: XML to divide bulk state display file and single-deck be man-to-man relation, XML divides the quantity of the status block that bulk state display file shows as required, with the display format of each status block of formal definition of form, there are several status blocks that need to show just to have several forms corresponding with it;
Step 3, single-deck divide bulk state to show: webmastering software reads minute block status data that single-deck reports, and obtains status block quantity and state ID thereof that this single-deck need to show; Parse the status block that each needs show according to state ID and minute block status data in minute bulk state parsing and defined file, each status block that need to show divides bulk state display file to generate final display page according to XML.
On the basis of technique scheme, XML divides bulk state display file to comprise form template and display type, and form template is used for the control table format, and display type is used for representing basic data type.
Below further specify concrete grammar of the present invention by a preferred embodiments, if some single-decks need to show baseInfo, RecJ0 and three status blocks of SOE, then the implementation flow process is as follows:
Step 1, writing minute bulk state resolves and defined file: minute bulk state parsing and defined file and single-deck are the relation of one-to-many, divide in bulk state parsing and the defined file and comprised all status blocks, and each status block has unique state ID corresponding with it, each single-deck selection is several status blocks demonstrations wherein, and the status block that needs to show obtains in minute bulk state parsing and defined file according to state ID; In this preferred embodiments, divide bulk state to resolve and the expansion of defined file XSD by name, so following bulk state parsing and the defined file of will dividing is equivalent to the information analysis storehouse of all status blocks referred to as the XSD file.What the XSD file carried out status page demonstration utilization is section thinking, single-deck for minute bulk state, the XSD file just is equivalent to a total storehouse of status block, minute bulk state of all single-decks all is stored in this file, and the needed several status blocks of certain single-deck can directly find in the XSD file according to state ID (IDentity).
Fig. 1 has shown the data structure of these three status blocks.Because baseInfo is the default configuration piece, does not need ID number.And state ID corresponding to two status blocks of RecJ0 and SOE is 00030000,0003000B.The corresponding w:if=of difference in defined file " ../blockHead/statusID=' 0003000B ' " and w:if=../blockHead/statusID=' 00030000 ' ".These data structures adopt the relevant XSD cannonical format such as element (xsd:element), complicated type (xsd:complexType), simple types (xsd:simpleType) to describe in the XSD file, below provide corresponding XSD definition format.
Figure GSB00000988861000061
Figure GSB00000988861000071
Figure GSB00000988861000081
Figure GSB00000988861000101
Boardstatus_new is the element (element refers to xsd:element) that closely links to each other with minute bulk state in the XSD file, and wherein: blockNum is the status block number; Baseinfo is single-deck essential information Data Analysis, comprising: reel number, version number, dish time processed, BMU (Board Management Unit) software version number, BMU programming time, dish state of activation etc.Type is type, does not use at present; Record is a minute block state information recording section, the FH (beginning character of each status block of status block table of articles is FH) of beginning is the status block table of articles to Blockname, records sign (blocklable), block length (blocklength), skew (blockoffset), compression type (ziptype), (backup) for subsequent use, piece ID (blockid), piece name (blockname), the blocks of data (blockdata) of each status block.Blockhead in the blocks of data (blockdata) is state piecemeal information header, mainly comprises: state ID (StatusID), block length (datalength), piece name (blockname), data type (datatype), (bak) for subsequent use.And the remainder of blockdata is exactly status block data content: RecJ0 (J0 accepting state piece), SOE (section overhead status block).
Xsd represents the NameSpace of schema, and the literal behind the colon all is the definitional language of XSD.Can be with reference to the schema standard.Wherein, w:if: for the schema expansion, be used for judging whether with this element resolution data, to be thereafter the xpath expression formula.Because the status block type is determined by " status data ID " in " minute block state information head ", so the judgement of w:if will be arranged.The corresponding state ID of each piece so just can know which piece the piece of back is according to the state ID of build, then uses the relevant block definition that data are resolved.
W:show: be the schema expansion.Be used for the control display type, example is as follows:
A) letter
<xsd:simpleType?name=″ASCII″>
<xsd:restriction?base=″xsd:string″/>
</xsd:simpleType>
B) 16 systems
<xsd:simpleType?name=″HEX″>
<xsd:restriction?base=″xsd:hexBinary″/>
</xsd:simpleType>
C) enumeration type
Figure GSB00000988861000111
The using method of above-mentioned display type is as follows:
<xsd:element name=" SOEset " type=" BYTE " w:cn=" expense setting " w:en=" SOE Set " w:show=" SOEset "/〉
When the SOEset value is 0, the local termination of Chinese display, English display Local End, and when the SOEset value is 1, Chinese display transparent transmission, English display Transparency Transmit.
Step 2, writing XML, to divide bulk state display file: XML to divide bulk state display file and single-deck be man-to-man relation, XML divides the quantity of the status block that bulk state display file shows as required, with the display format of each status block of formal definition of form, there are several status blocks that need to show just to have several forms corresponding with it; XML divides bulk state display file to comprise form template and display type, and form template is used for the control table format, and display type is used for representing basic data type.
Below provided the specific embodiment of three kinds of form templates and the specific embodiment of four kinds of display types, its quantity, content all can expand according to actual needs, and finish the function of writing template with script.
Three kinds of templates are as follows:
A) template 1
<template?name=″table1″data=″//baseInfo/*″col=″4″>
<title cn=" single-deck hardware information " en=" board base info "/〉
</template>
Wherein:
Name: template name, table1 represent the first template, and data show according to mode from left to right.
Col: form columns.
Tilte: form topic head.
Cn: Chinese name.
En: English name.
Data: the list data source, use the xpath expression formula, in the XSD file, define.
Template 1 shows below form, and the StatusData in the following table represents concrete status data:
Figure GSB00000988861000121
B) template 2
Figure GSB00000988861000122
Wherein,
Name: template name, table3 represent the second template, are used for showing one group of record.
Sn: the first row of form.
Col element: the header that refers to every hurdle.
Flip: perpendicular row is resolved, when not adding flip for walking crosswise parsing.
Template 2 shows below form, and the StatusData in the following table represents concrete status data:
Figure GSB00000988861000131
C) template 3
Figure GSB00000988861000132
Wherein:
Name: template name, table4 represent the third template, situation that can indicator gauge rule form.
The problem of noting: the current reference position of data is the node of higher level data.
Template 3 shows below form, and the StatusData in the following table represents concrete status data:
Figure GSB00000988861000133
Step 3, single-deck divide bulk state to show: webmastering software reads minute block status data that single-deck reports, and obtains status block quantity and state ID thereof that this single-deck need to show; Parse the status block that each needs show according to state ID and minute block status data in minute bulk state parsing and defined file, each status block that need to show divides bulk state display file to generate final display page according to XML.Webmastering software reads minute block status data that single-deck reports, in conjunction with the XSD file, parse each minute block status data according to the state ID in minute block status data, then according to the form Pagination Display of XML file (XML divides bulk state display file) definition out.Step 3 can also further be subdivided into following step:
1) webmastering software reads minute block status data that single-deck reports, and the block status data form was as follows in described minute:
The status block table of articles
Status data block 1 data 1 ..., status data block 1 data M 1,
Status data block 2 data 1 ..., status data block 2 data M 2,
……,……,
Status data block N data 1 ..., status data block N data M n
Said status block table of articles records sign, title, block length, skew of each status block etc.
Status block table of articles form is as follows:
Figure GSB00000988861000142
2) read XSD file (minute bulk state is resolved and defined file), according to the definition in the file and state ID above-mentioned minute block status data is resolved in certain data structure, the data layout of stipulating in the XSD file should be consistent with above-mentioned minute block status data form.
3) read at last the display file of XML state, in conjunction with the data structure after resolving and the form definition among the XML, with minute bulk state with the form Pagination Display of a plurality of forms out.
The above only is a preferred embodiments of the present invention, and the interest field that the present invention advocates is not limited to this.The present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those skilled in the art work as can make according to the present invention various corresponding changes and distortion, but these changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (2)

1. one kind shows the method that the webmaster single-deck divides bulk state with XML, it is characterized in that may further comprise the steps:
Step 1, writing minute bulk state resolves and defined file: minute bulk state parsing and defined file and single-deck are the relation of one-to-many, divide in bulk state parsing and the defined file and comprised all status blocks, and each status block has unique state ID corresponding with it, each single-deck selection is several status blocks demonstrations wherein, and the status block that needs to show obtains in minute bulk state parsing and defined file according to state ID;
Step 2, writing XML, to divide bulk state display file: XML to divide bulk state display file and single-deck be man-to-man relation, XML divides the quantity of the status block that bulk state display file shows as required, with the display format of each status block of formal definition of form, there are several status blocks that need to show just to have several forms corresponding with it;
Step 3, single-deck divide bulk state to show: webmastering software reads minute block status data that single-deck reports, and obtains status block quantity and state ID thereof that this single-deck need to show; Parse the status block that each needs show according to state ID and minute block status data in minute bulk state parsing and defined file, each status block that need to show divides bulk state display file to generate final display page according to XML.
2. as claimed in claim 1ly show the method that the webmaster single-deck divides bulk state with XML, it is characterized in that: XML divides bulk state display file to comprise form template and display type, form template is used for the control table format, and display type is used for representing basic data type.
CN 200910250025 2009-12-02 2009-12-02 Method for realizing single disk block state of webmaster by using extensible markup language (XML) Expired - Fee Related CN101876901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910250025 CN101876901B (en) 2009-12-02 2009-12-02 Method for realizing single disk block state of webmaster by using extensible markup language (XML)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910250025 CN101876901B (en) 2009-12-02 2009-12-02 Method for realizing single disk block state of webmaster by using extensible markup language (XML)

Publications (2)

Publication Number Publication Date
CN101876901A CN101876901A (en) 2010-11-03
CN101876901B true CN101876901B (en) 2013-04-10

Family

ID=43019463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910250025 Expired - Fee Related CN101876901B (en) 2009-12-02 2009-12-02 Method for realizing single disk block state of webmaster by using extensible markup language (XML)

Country Status (1)

Country Link
CN (1) CN101876901B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549936B (en) * 2015-12-21 2020-05-19 腾讯科技(深圳)有限公司 Data table display method and device
CN115051904B (en) * 2022-03-23 2023-09-12 武汉烽火技术服务有限公司 Method and device for managing single disk state based on markup language

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7159125B2 (en) * 2001-08-14 2007-01-02 Endforce, Inc. Policy engine for modular generation of policy for a flat, per-device database
US20030069960A1 (en) * 2001-10-04 2003-04-10 Symons Julie A. Method for describing and comparing data center physical and logical topologies and device configurations
AU2002321152A1 (en) * 2002-07-01 2004-01-19 Siemens Aktiengesellschaft Network management method for the configuration and the interface description of network elements by means of xml
CN100555946C (en) * 2005-08-20 2009-10-28 华为技术有限公司 A kind of method and distribution type network management system of realizing notification service
CN100502311C (en) * 2006-02-22 2009-06-17 华为技术有限公司 Network management system and its method for realizing network management
CN100570580C (en) * 2007-08-02 2009-12-16 中兴通讯股份有限公司 The proving installation of simple network management protocol software and method of testing thereof
CN101394312B (en) * 2008-11-12 2011-06-01 烽火通信科技股份有限公司 Method and system for managing and parsing XML format uni-disk protocol

Also Published As

Publication number Publication date
CN101876901A (en) 2010-11-03

Similar Documents

Publication Publication Date Title
Shklar lang=" en"> Web Applications Architecture</title
CN1794231B (en) Context-free document portions with alternate formats
CN101763423B (en) Method for realizing presentation of tree-structure data in World Wide Web page as well as system and device therefor
CN103123631B (en) The generation of official documents and correspondence, the methods of exhibiting of webpage official documents and correspondence, device and Website server
CN104185845A (en) System and method for providing a binary representation of a web page
CN100489862C (en) Marked language archive analytical method, analytical module and user terminal
CN102831190B (en) A kind of method that CML files are browsed in low side devices
CN102982010A (en) Method and device for abstracting document structure
US20070240168A1 (en) Apparatus and method for modifying an initial event queue for extending an XML processor&#39;s feature set
CN102215126A (en) Method and device for generating performance report
CN107943915A (en) The method and device of OFD file Real time displayings based on HTML5
CN103309806A (en) Device and method for fast developing and testing
CN100492360C (en) Method and system for webpage generation
CN104679453A (en) Information input, storage, typesetting and printing general system and information input, storage, typesetting and printing method
CN101876901B (en) Method for realizing single disk block state of webmaster by using extensible markup language (XML)
CN101272222B (en) Restriction calibration method and device
CN103678341A (en) Database interaction system and method
CN105335205A (en) Virtual instrument scripting language parser and method thereof
CN105808628B (en) Webpage code-transferring method, apparatus and system
CN104978379B (en) The building method and device at a kind of application program data station
CN108427664A (en) A kind of document analysis method and device
Holzner SAMS Teach yourself XML in 21 days
Barth et al. Efficient use of data exchange formats in engineering projects by means of language integrated queries—Engineers LINQ to XML
CN103246962A (en) Enterprise comprehensive information management system
CN101446968B (en) Method for parsing extend markup language

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130410

Termination date: 20201202

CF01 Termination of patent right due to non-payment of annual fee