Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
first xml saved on disk

XML
<AriReport>
  <gen_rbl_Ship>1</gen_rbl_Ship>
  <gen_txt_LocationType>regular</gen_txt_LocationType>
  <gen_ta_ReportSubject>accident happend on ship</gen_ta_ReportSubject>
  <gen_txt_NameofPort>missinig</gen_txt_NameofPort>
  <gen_ddl_TaskInvolved>please check this</gen_ddl_TaskInvolved>



get second xml runtime
XML
<AriReport>
  <gen_ddl_Location>cab of crew</gen_ddl_Location>
  <gen_ta_WhatHappened>please check narative</gen_ta_WhatHappened>
  <txtPersonalFactor>5</txtPersonalFactor>
  <gen_txt_ReportSerial>123456</gen_txt_ReportSerial>
</AriReport>


merge like this

XML
<AriReport>
  <gen_rbl_Ship>1</gen_rbl_Ship>
  <gen_txt_LocationType>regular</gen_txt_LocationType>
  <gen_ta_ReportSubject>accident happend on ship</gen_ta_ReportSubject>
  <gen_txt_NameofPort>missinig</gen_txt_NameofPort>
  <gen_ddl_TaskInvolved>please check this</gen_ddl_TaskInvolved>
  <gen_ddl_location>cab of crew</gen_ddl_location>
  <gen_ta_whathappened>please check narative</gen_ta_whathappened>
  <txtpersonalfactor>5</txtpersonalfactor>
  <gen_txt_reportserial>123456</gen_txt_reportserial>


any one help
Posted
Updated 4-Apr-13 12:48pm
v3
Comments
sharmarun 1-Apr-13 6:12am    
got an error of This operation would create an incorrectly structured document.

Your "AriReport" tag is not being closed, from what you've posted, that could be the problem. Otherwise, it's impossible to tell, you haven't posted any code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900