N
nospawn
Hi all,
I right now need to join several XML files sharing the same schema
into a single consolidated one e.g.
my_doc_1
<key1>
<key2>
my_value_doc_1_key_2
</key2>
<key3>
my_value_doc_1_key_3
</key3>
<key1>
my_doc_2
<key1>
<key2>
my_value_doc_2_key_2
</key2>
<key3>
my_value_doc_2_key_3
</key3>
<key1>
Would generate
my_consolidated_doc:
<key1>
<key2>
<my_doc_1>my_value_doc_1_key_2</my_doc_1>
<my_doc_2>my_value_doc_2_key_2</my_doc_2>
</key2>
<key3>
<my_doc_1>my_value_doc_1_key_3</my_doc_1>
<my_doc_2>my_value_doc_2_key_3</my_doc_2>
</key3>
<key1>
and the other way around too ... having my_consolidated_doc
get to my_doc_1 and my_doc_2.
Cheapest way according to you? JDOM vs XLST another very
desirable feature is that the transformation does not rely on the
structure so this process will be agnostic to schema refactorings.
TIA,
Best Regards,
GA
I right now need to join several XML files sharing the same schema
into a single consolidated one e.g.
my_doc_1
<key1>
<key2>
my_value_doc_1_key_2
</key2>
<key3>
my_value_doc_1_key_3
</key3>
<key1>
my_doc_2
<key1>
<key2>
my_value_doc_2_key_2
</key2>
<key3>
my_value_doc_2_key_3
</key3>
<key1>
Would generate
my_consolidated_doc:
<key1>
<key2>
<my_doc_1>my_value_doc_1_key_2</my_doc_1>
<my_doc_2>my_value_doc_2_key_2</my_doc_2>
</key2>
<key3>
<my_doc_1>my_value_doc_1_key_3</my_doc_1>
<my_doc_2>my_value_doc_2_key_3</my_doc_2>
</key3>
<key1>
and the other way around too ... having my_consolidated_doc
get to my_doc_1 and my_doc_2.
Cheapest way according to you? JDOM vs XLST another very
desirable feature is that the transformation does not rely on the
structure so this process will be agnostic to schema refactorings.
TIA,
Best Regards,
GA