From bernhard.rapp at student.tugraz.at Thu Jun 21 04:39:04 2018 From: bernhard.rapp at student.tugraz.at (Bernhard Rapp) Date: Thu Jun 21 04:41:45 2018 Subject: [xsde-users] Update existing data model with differencial XML Message-ID: <20180621103904.Horde.Ccl6Q2bmo-ZbK2Qon-Xx8DA@webmail.tugraz.at> Hi, I would like to ask, if there is an efficient way, to update an existing data model (build by parsing the first XML) with an "differential" one(second XML). I see the possibility to write a custom parser, which should make it possible to add the extra code. But I just want to make sure, that I don't oversee the obvious easy way to do so :) The "differential" XML is within an dedicated Element-Node (), as you can see in the example below. I didn't find any hint to such a thing. Thank you very much in advance, Bernhard --- Again, what I want by example: 1.) first XML to setup data structure first 1 2 second 3 4 2.) second XML to update data structure first 5 3.) data structure should be: first 5 2 second 3 4 From boris at codesynthesis.com Mon Jun 25 09:21:24 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Jun 25 09:24:09 2018 Subject: [xsde-users] Update existing data model with differencial XML In-Reply-To: <20180621103904.Horde.Ccl6Q2bmo-ZbK2Qon-Xx8DA@webmail.tugraz.at> References: <20180621103904.Horde.Ccl6Q2bmo-ZbK2Qon-Xx8DA@webmail.tugraz.at> Message-ID: Bernhard Rapp writes: > I would like to ask, if there is an efficient way, to update an existing > data model (build by parsing the first XML) with an "differential" > one(second XML). > > I see the possibility to write a custom parser, which should make it > possible to add the extra code. But I just want to make sure, that I don't > oversee the obvious easy way to do so :) No, there is no automatic way to do this. Your update semantics is application-specific so there will need to be application-specific code to handle it. Boris