[xsd-users] Need help: how to merge multiple xml files
JW
jianwei.z at gmail.com
Thu Oct 7 17:06:06 EDT 2010
Hi Guys,
I am new to the XSD tool so apologies if this question has been asked or is
too obvious.
Basically, I am trying to parse multiple xml files that have the same schema
into one tree object model while keeping some of them in the memory. Let's
say I have following three xml files:
1. full_elem.xml
2. override_elem.xml
3. override2_elem.xml
First, full_elem.xml will be parsed into object model 1, override_elem.xml
will be parsed into object model 2, and override2_elem.xml will be parsed
into object model 3. Then object model 2 and model 3 will be merged into
one single override object model, for instance, object model 3 merge into
object model 2, overwriting values of same elements in model 2. Object
model 2 will be kept but model 3 be removed. After that, object model 2
will be merged into model 1 and overwriting values of same elements but
model 2 itself will be kept.
At the end, there will be only 2 object models in the memory, model 1 and
model 2. Model 1 has values from all models and model 2 has values from
model 2 and 3.
I have been reading the manuals and wiki but could not find a solution for
this kind of merging. Could any one please give some pointers?
Thank you for your patience.
JW
More information about the xsd-users
mailing list