Hi,
 
I need to merge xmls stored in 2 variables as shown below in 2 cases:-
 
===============================================================
----------------------------------------------------------------------------------------------------------------------
1) Case 1
----------------------------------------------------------------------------------------------------------------------
 
let $xml1 :=  <file id='1'><para id='1'><line>This is line 
1.</line></para></file>
 
let $xml2 :=  <file id='1'><para id='1'><line>This is line 
2.</line></para></file>
 
the output should look something like:-
 
<file id='1'>
    <para id='1'>
          <line>This is line 1.</line>
          <line>This is line 2.</line>
    </para>
</file>
===============================================================
----------------------------------------------------------------------------------------------------------------------------
2) Case 2
-----------------------------------------------------------------------------------------------------------------------------
 
let $xml1 :=  <file id='1'><para id='1'><line>This is line 
1.</line></para></file>
 
let $xml2 :=  <file id='1'><para id='2'><line>This is line 
1.</line></para></file>
 
the output should look something like:-
 
<file id='1'>
    <para id='1'>
          <line>This is line 1.</line>
    </para>
    <para id='2'>
          <line>This is line 1.</line>
    </para>
</file>
 
========================================================
 
Can you please let me know if it is possible using any marklogic function?
 
Thanks and Regards,
Sai.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to