Hi <xml>Gurus</xml> 
I've a scenario where the system configuration is maintained in the server as xml dom tree. clients can change the system config either entirely or in parts. when the client wishes to change it entirely, the new domtree would be sent to server. OTOH, if the client wishes to change only partial config, she would send the subtree xml that needs change. in the following scenario:
<system>
<subsys-0>
<config-0>text</config-0>
<config-1>text</config-1>
</subsys-0>
<subsys-1>
<config-0>text</config-0>
<config-1>text</config-1>
</subsys-1>
<system>
eg: client may change the whole <system> or just system/subsys-0/config-1
I'm not making any assumptions on the depth of the tree for partial config change. In either case, the server would like to do syntax validation as well as data type validation as much as possible in the domparser itself. how would i achieve this goal ?
do i need to comeup with individual dtd's for partial changes ? or is there a better way to handle this kind of situation ?
my initial thoughts were: client would specify the operation name which would identify the subtree. eg: client would send the request as part of text based protocol and specifies that the config change is to system/subsys-0/config-1 which would map to the dom sub tree. but this would not solve the validation problems.
if there is a keyword/technology to refer this situation in the xml world, please let me know. i'm not sure how SOAP would fit into this scenario ? i'm wiring the server, client and the text protocol..
the target platform is an embedded system and hence small footprint solution is very necessary.
I apprecate you thoughts/comments/links etc..
//marcus
PS: if this is not the right forum to discuss this, i apologize. and would appreciate pointers to right forum.
I've a scenario where the system configuration is maintained in the server as xml dom tree. clients can change the system config either entirely or in parts. when the client wishes to change it entirely, the new domtree would be sent to server. OTOH, if the client wishes to change only partial config, she would send the subtree xml that needs change. in the following scenario:
<system>
<subsys-0>
<config-0>text</config-0>
<config-1>text</config-1>
</subsys-0>
<subsys-1>
<config-0>text</config-0>
<config-1>text</config-1>
</subsys-1>
<system>
eg: client may change the whole <system> or just system/subsys-0/config-1
I'm not making any assumptions on the depth of the tree for partial config change. In either case, the server would like to do syntax validation as well as data type validation as much as possible in the domparser itself. how would i achieve this goal ?
do i need to comeup with individual dtd's for partial changes ? or is there a better way to handle this kind of situation ?
my initial thoughts were: client would specify the operation name which would identify the subtree. eg: client would send the request as part of text based protocol and specifies that the config change is to system/subsys-0/config-1 which would map to the dom sub tree. but this would not solve the validation problems.
if there is a keyword/technology to refer this situation in the xml world, please let me know. i'm not sure how SOAP would fit into this scenario ? i'm wiring the server, client and the text protocol..
the target platform is an embedded system and hence small footprint solution is very necessary.
I apprecate you thoughts/comments/links etc..
//marcus
PS: if this is not the right forum to discuss this, i apologize. and would appreciate pointers to right forum.