Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
For the advantage that makes technical solution of the present invention is clearer, below in conjunction with drawings and Examples the present invention is elaborated.
Embodiment one
The present embodiment provides a kind of XML document management method, and as shown in Figure 1, described method comprises:
101, receive the gerentocratic management request of XML document, described management request indication is carried out multinomial bookkeeping to XML document;
102, according to described management request, described XML document is carried out described multinomial bookkeeping;
103, generate the new document identification of described XML document.
Embodiment of the invention XML document management method, the gerentocratic management request of XML document indication is carried out multinomial bookkeeping to XML document, according to this management request, XML document is carried out after the multinomial bookkeeping, just generates the new document identification of this XML document.Compared with prior art, comprise multinomial bookkeeping in the gerentocratic management request of XML document, after the multinomial bookkeeping of finishing XML document, just generate the new document identification of this XML document, by reducing the number of times of bookkeeping, can reduce the number of times that document identification is upgraded.
Embodiment two
In the present embodiment, as the XML document supvr, XML document administrative client XDMC A sends the request of revising certain XML document content in the network to XML document management server XDMS; As the XML document subscriber, XML document administrative client XDMC B and XML document administrative client XDMC C subscribe to this XML document to XDMS.
As shown in Figure 2, described XML document management method comprises:
201, XDMS receives the subscribe request of XDMC B, and this subscribe request is for certain XML document of the network that pulls subscription.
202, XDMS receives the subscribe request of XDMC C, and this subscribe request is for this XML document of the network that pulls subscription.
203, XDMS receives the management request of XDMC A, and this management request indication is carried out multinomial bookkeeping to this XML document;
Wherein, described management request can have two kinds of forms:
Form 1: described management request indication is carried out respectively different bookkeepings to many parts content of this XML document, at least one during described different bookkeepings can comprise establishment, upgrade and delete; Concrete methods of realizing can for:
Create the XDCP order, in the XDCP order, redefine the content that comprises in the message body of POST order and this POST order; Definition management element<modify in the message body of this POST order 〉, be used to refer to concrete content of operation, use should<modify operation can realize renewal, establishment and the deletion to the XML document content simultaneously; At<modify〉use the XPATH among the W3C (World Wide Web Consortium, World Wide Web Consortium) in the element, realize the operation to the XML document content.
Form 2: described management request indication is carried out the same bookkeeping to many parts content of this XML document, described bookkeeping can for create, upgrade or deletion in one of them; Concrete methods of realizing can for:
Create the XDCP order, in the XDCP order, redefine the POST order, message header to this POST order is expanded, URI (Uniform Resource Identifier in this POST order, the unified resource sign) increases the Content parameter in, in this Content parameter, comprise a plurality of contents of needs operation; Simultaneously, utilize the URI separator to realize adopting same request to the operation of XML document many parts content, thereby reduce the management number of times.
204, XDMS carries out described multinomial bookkeeping according to this management request to this XML document.
Particularly, when this management request during for the form 1 in the step 203, at least a operation during then XDMS creates, upgrades and delete a plurality of parts of this XML document;
When this management request during for the form 2 in the step 203, the wherein a kind of operation during then XDMS creates, upgrades or delete a plurality of parts of this XML document.
205, XDMS generates the new document identification of this XML document.
206, XDMS returns response message to XDMC A, comprises the document identification that this is new in this response message.
207, XDMS returns notification message to XDMC B, comprises document identification that this is new and all changes content of this XML document in this notification message.
208, XDMS returns notification message to XDMC C, comprises document identification that this is new and all changes content of this XML document in this notification message.
In the present embodiment, the sequencing of described step 201, step 202 and step 203 can be not construed as limiting, and the sequencing of described step 206, step 207 and step 208 can be not construed as limiting.
Embodiment of the invention XML document management method, XDMS is according to the management request of XDMC A, same XML document is carried out after the multinomial bookkeeping, just generate the new document identification of this XML document, and return notification message to XML document subscriber XDMC B and XDMC C.Compared with prior art, by reducing the number of times of bookkeeping, can reduce the number of times that document is upgraded, thereby avoid frequently return to document sign and document change notification to the XML document subscriber, reduce data and signaling in internetwork transmission, improved user's Quality of experience.
Embodiment three
The present embodiment provides a kind of XML document management method, and as shown in Figure 3, described method comprises:
301, receive the gerentocratic management request of XML document, described management request indication is carried out a bookkeeping to XML document, and described management request also comprises and is used to indicate the sign that whether also has for the follow-up management request of described XML document;
302, described XML document is carried out described bookkeeping;
303, according to described sign, judge whether described XML document supvr also has the follow-up management request for described XML document;
304, carry out subsequent treatment according to judged result.
Embodiment of the invention XML document management method, comprise in the gerentocratic management request of XML document and be used to indicate the sign that whether also has for the follow-up management request of XML document, after according to this management request this XML document being managed operation, judge that whether this XML document supvr also has the follow-up management request for this XML document, carries out subsequent treatment according to judged result.Compared with prior art, by in the management request, adding sign, judge whether document identification is upgraded according to sign, avoided all document identification being upgraded after each bookkeeping, reduced the number of times that document identification is upgraded.
Embodiment four
In the present embodiment, as the XML document supvr, XML document administrative client XDMC A sends the request of revising certain XML document content in the network to XML document management server XDMS; As the XML document subscriber, XML document administrative client XDMC B and XML document administrative client XDMC C subscribe to this XML document to XDMS.
As shown in Figure 4, described XML document management method comprises:
401, XDMS receives the subscribe request of XDMC B, and this subscribe request is for certain XML document of the network that pulls subscription.
402, XDMS receives the subscribe request of XDMC C, and this subscribe request is for this XML document of the network that pulls subscription.
403, XDMS receives the management request of XDMC A, and this management request indicating carries out a bookkeeping to this XML document, also comprises in this management request being used to indicate the sign that whether also has for the follow-up management request of this XML document.
404, according to described management request, XDMS carries out described bookkeeping to this XML document.
405, XDMS is according to described sign, judges whether XDMC A also has the follow-up management request for this XML document, when XDMC A also has follow-up management request for this XML document, and execution in step 406; As XDMC A during not for the follow-up management request of this XML document, execution in step 407.
406, XDMS returns response message to XDMC A, comprises the current document identification of this XML document in this response message, and returns execution in step 403.
407, XDMS generates the new document identification of this XML document.
408, XDMS returns response message to XDMC A, comprises the document identification that this is new in this response message.
409, XDMS returns notification message to XDMC B, comprises document identification that this is new and all changes content of this XML document in this notification message.
410, XDMS returns notification message to XDMC C, comprises document identification that this is new and all changes content of this XML document in this notification message.
In the present embodiment, the sequencing of described step 401, step 402 and step 403 can be not construed as limiting, and the sequencing of described step 408, step 409 and step 410 can be not construed as limiting.
Embodiment of the invention XML document management method according to the management request of XDMC A, when judging XDMC A not for the follow-up management request of same XML document, just generates the new document identification of this XML document, and returns notification message to XDMC B and XDMC C.Compared with prior art, by in the management request, adding sign, judge whether document identification is upgraded according to sign, avoided all document identification being upgraded after each bookkeeping, reduced the number of times that document identification is upgraded, thereby avoided to the XML document subscriber frequently return to document the sign and the document change notification, reduced data and signaling in internetwork transmission, improved user's Quality of experience.
Embodiment five
In the present embodiment, as the XML document supvr, XML document administrative client XDMC A sends the request of revising certain XML document content in the network to XML document management server XDMS; As the XML document subscriber, XML document administrative client XDMC B and XML document administrative client XDMC C subscribe to this XML document to XDMS.
As shown in Figure 5, described XML document management method comprises:
501-504, can with reference to step 401-404, not repeat them here.
505, XDMS is according to described sign, judges whether XDMC A also has the follow-up management request for this XML document, when XDMC A also has follow-up management request for this XML document, and execution in step 506.
506, XDMS returns response message to XDMC A, comprises the current document identification of this XML document in this response message.
507, when XDMS in Preset Time, do not receive XDMC A for next bar management request of this XML document the time, and/or, when the number of times that receives the gerentocratic management request for this XML document of described XML document reaches preset value, generate the new document identification of this XML document;
Wherein, described Preset Time is set in advance by XDMS, be specially that XDMC A sends, for the maximum time intervals of adjacent two management requests of this XML document.
508, XDMS sends prompting message to XDMC A, comprises the document identification that this is new in this prompting message.
509, XDMS receives the affirmation message that XDMC A returns.
510, XDMS returns notification message to XDMC B, comprises document identification that this is new and all changes content of this XML document in this notification message.
511, XDMS returns notification message to XDMC C, comprises document identification that this is new and all changes content of this XML document in this notification message.
In the present embodiment, the sequencing of described step 510 and step 511 can be not construed as limiting.
Embodiment of the invention XML document management method, when XDMS in Preset Time, do not receive XDMC A for next bar management request of this XML document the time, and/or, when the number of times for the management request of this XML document that receives XDMC A reaches preset value, XDMS generates new document identification, and return notification message to XDMC B and XDMC C, thereby, at the number of times that reduces the document identification renewal, avoid frequently return to document sign and when the document change notification of XML document subscriber, avoided not receiving in long-time that next bar management is asked and the problem that can't upgrade document identification and can't return to XDMC B and XDMC C notice.
Embodiment six
In the present embodiment, as the XML document supvr, XML document administrative client XDMC A sends the request of revising certain XML document content in the network to XML document management server XDMS; As the XML document subscriber, XML document administrative client XDMC B and XML document administrative client XDMC C subscribe to this XML document to XDMS.
As shown in Figure 6, described XML document management method comprises:
601-604, can with reference to step 401-404, not repeat them here.
605-606, can with reference to step 505-506, not repeat them here.
607, when XDMS does not receive next bar management request of XDMC A in Preset Time, this XML document is returned to virgin state, i.e. state before the step 403.
Embodiment of the invention XML document management method, when XDMS in Preset Time, do not receive XDMC A for next bar management request of this XML document the time, XDMS returns to virgin state with this XML document, thereby, at the number of times that reduces the document identification renewal, avoid frequently return to document sign and when the document change notification of XML document subscriber, avoided not receiving in long-time that next bar management is asked and the problem that can't upgrade document identification and can't return to XDMC B and XDMC C notice.
Embodiment seven
The present embodiment provides a kind of XML document management server, and as shown in Figure 7, described XML document management server 70 comprises:
Receiver module 701 is used for receiving XML document supvr 71 management request, and described management request indication is carried out multinomial bookkeeping to XML document;
Operational module 702 is used for according to described management request, and described XML document is carried out described multinomial bookkeeping;
Generation module 703 is for the new document identification that generates this XML document.
Embodiment of the invention XML document management server, the gerentocratic management request of XML document indication is carried out multinomial bookkeeping to XML document, according to this management request, XML document is carried out after the multinomial bookkeeping, just generates the new document identification of this XML document.Compared with prior art, comprise multinomial bookkeeping in the gerentocratic management request of XML document, after the multinomial bookkeeping of finishing XML document, just generate the new document identification of this XML document, by reducing the number of times of bookkeeping, can reduce the number of times that document identification is upgraded.
Embodiment eight
The present embodiment provides a kind of XML document management server, and as shown in Figure 8, described XML document management server 70 comprises:
Receiver module 701 is used for receiving XML document supvr 71 management request, and described management request indication is carried out multinomial bookkeeping to XML document; Wherein, described receiver module 701 can also be for the subscribe request that receives XML document subscriber 72, and this subscribe request is used for pulling subscription this XML document;
Operational module 702 is used for according to described management request, and described XML document is carried out described multinomial bookkeeping;
Generation module 703 is for the new document identification that generates this XML document.
Further, described XML document management server 70 can also comprise:
Respond module 704 is used for returning response message to described XML document supvr 71, comprises the document identification that this is new in this response message;
Notification module 705 is used for returning notification message to described XML document subscriber 72, comprises document identification that this is new and all changes content of this XML document in this notification message.
Wherein, described receiver module 701, the concrete management request that is used for receiving XML document supvr 71, described management request indication is carried out respectively different bookkeepings to many parts content of described XML document, perhaps many parts content of described XML document is carried out identical bookkeeping.
Embodiment of the invention XML document management server according to the gerentocratic management request of XML document, carries out after the multinomial bookkeeping same XML document, just generates the new document identification of this XML document, and returns notification message to the XML document subscriber.Compared with prior art, by reducing the number of times of bookkeeping, can reduce the number of times that document is upgraded, thereby avoid frequently return to document sign and document change notification to the XML document subscriber, reduce data and signaling in internetwork transmission, improved user's Quality of experience.
Embodiment nine
The present embodiment provides a kind of XML document management server, and as shown in Figure 9, described XML document management server 90 comprises:
Receiver module 901 be used for to receive XML document supvr 91 management request, and described management request indication is carried out a bookkeeping to XML document, and described management request also comprises and is used to indicate the sign that whether also has for the follow-up management request of described XML document;
Operational module 902 is used for described XML document is carried out described bookkeeping;
Judge module 903 is used for according to described sign, judges the follow-up management request whether described XML document supvr 91 also has for described XML document;
Processing module 904 is used for carrying out subsequent treatment according to the judged result of described judge module.
Embodiment of the invention XML document management server, comprise in the gerentocratic management request of XML document and be used to indicate the sign that whether also has for the follow-up management request of XML document, after according to this management request this XML document being managed operation, judge that whether this XML document supvr also has the follow-up management request for this XML document, carries out subsequent treatment according to judged result.Compared with prior art, by in the management request, adding sign, judge whether document identification is upgraded according to sign, avoided all document identification being upgraded after each bookkeeping, reduced the number of times that document identification is upgraded.
Embodiment ten
Such as Figure 10, Figure 11, shown in Figure 12, described XML document management server 90 comprises:
Receiver module 901 be used for to receive XML document supvr 91 management request, and described management request indication is carried out a bookkeeping to XML document, and described management request also comprises and is used to indicate the sign that whether also has for the follow-up management request of described XML document; Wherein, described receiver module 901 can also be for the subscribe request that receives XML document subscriber 92, and this subscribe request is used for pulling subscription this XML document;
Operational module 902 is used for described XML document is carried out described bookkeeping;
Judge module 903 is used for according to described sign, judges the follow-up management request whether described XML document supvr 91 also has for described XML document;
Processing module 904 is used for carrying out subsequent treatment according to the judged result of described judge module.
Such as Figure 10, Figure 11, shown in Figure 12, described processing module 904 can comprise:
Response unit 9041, when being used for judged result when described judge module 903 and being described XML document supvr 91 in addition for the follow-up management request of described XML document, return response message to described XML document supvr 91, comprise the current document identification of described XML document in the described response message.
As shown in figure 10, described processing module 904 can comprise:
Generation unit 9042 is used for judged result when described judge module 903 and is described XML document supvr 91 less than for the follow-up management request of described XML document the time, generates the new document identification of described XML document;
Alternatively, as shown in figure 10, described response unit 9041 also is used for described XML document supvr 91 and returns response message, comprises the document identification that this is new in this response message.
Alternatively, as shown in figure 11, described generation unit 9042, also be used for when next the bar management for described XML document that does not receive described XML document supvr 91 in Preset Time is asked, and/or, when the number of times for the management request of described XML document that receives described XML document supvr 91 reaches preset value, generate the new document identification of described XML document.
Such as Figure 10, shown in Figure 11, described processing module 904 can also comprise:
Notification unit 9043 is used for returning notification message to described XML document subscriber 92, comprises described new document identification and all changes content of described XML document in the described notification message.
Alternatively, as shown in figure 11, described processing module 904 can also comprise:
Tip element 9044 is used for sending prompting message to described XML document supvr 91, comprises described new document identification in the described prompting message;
Receiving element 9045 is used for receiving the affirmation message that described XML document supvr 91 returns.
Alternatively, as shown in figure 12, described processing module 904 can also comprise:
Recovery unit 9046 is used for when not receiving gerentocratic next bar management for described XML document of described XML document ask in Preset Time described XML document being returned to virgin state.
Embodiment of the invention XML document management server, according to the gerentocratic management request of XML document, when judging the XML document supvr not for the follow-up management request of same XML document, just generate the new document identification of this XML document, and return notification message to the XML document subscriber, thereby avoided all document identification being upgraded after each bookkeeping, reduced the number of times that document identification is upgraded, avoided the XML document subscriber frequently to return to document and identify and the document change notification; Preferably, when in Preset Time, not receiving gerentocratic next bar management request for this XML document of same XML document, generate new document identification, and return notification message to the XML document subscriber, perhaps, this XML document is returned to virgin state, thereby can avoid not receiving next bar management request in long-time and the problem that can't upgrade document identification and can't return to XDMC B and XDMC C notice.
In all embodiment of the present invention, XML document supvr can be different XDMC with the XML document subscriber, also can be same XDMC.
The above-mentioned embodiment of the method that provides can be provided the XML document management server that the embodiment of the invention provides.XML document management method and server that the embodiment of the invention provides go for the XDM system, but are not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process such as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (RandomAccess Memory, RAM) etc.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.