I have two XML files...
and
Now I want to merge the two in such...
Any idea?
Thank you,
Code:
<BookList>
<Course Name="History 100" />
</BookList>
and
Code:
<Search>
<SearchResult>
<PageNumber>1</PageNumber>
<RecordsPerPage>10</RecordsPerPage>
<TotalRecords>2</TotalRecords>
<ItemNumber>000007U</ItemNumber>
<ISBN>0205092403</ISBN>
<Description>AMERICAN HISTORY (H)</Description>
<Grade>MIHI</Grade>
<Copyright>79</Copyright>
<Publisher>Prentice Hall Pearson Education</Publisher>
<Category>HISTORY</Category>
<ListPrice>23.41000</ListPrice>
<YourPrice>14.75</YourPrice>
<QuantityAvailable>1</QuantityAvailable>
</SearchResult>
<SearchResult>
<PageNumber>1</PageNumber>
<RecordsPerPage>10</RecordsPerPage>
<TotalRecords>2</TotalRecords>
<ItemNumber>003296U</ItemNumber>
<ISBN>0205092594</ISBN>
<Description>AMERICAN HISTORY (H)</Description>
<Grade>HIGH</Grade>
<Copyright>83</Copyright>
<Publisher>Prentice Hall Pearson Education</Publisher>
<Category>HISTORY</Category>
<ListPrice>44.47000</ListPrice>
<YourPrice>18.25</YourPrice>
<QuantityAvailable>1</QuantityAvailable>
</SearchResult>
</Search>
Now I want to merge the two in such...
Code:
<Course Name="History 100">
<SearchResult>
<PageNumber>1</PageNumber>
<RecordsPerPage>10</RecordsPerPage>
<TotalRecords>2</TotalRecords>
<ItemNumber>000007U</ItemNumber>
<ISBN>0205092403</ISBN>
<Description>AMERICAN HISTORY (H)</Description>
<Grade>MIHI</Grade>
<Copyright>79</Copyright>
<Publisher>Prentice Hall Pearson Education</Publisher>
<Category>HISTORY</Category>
<ListPrice>23.41000</ListPrice>
<YourPrice>14.75</YourPrice>
<QuantityAvailable>1</QuantityAvailable>
</SearchResult>
<SearchResult>
<PageNumber>1</PageNumber>
<RecordsPerPage>10</RecordsPerPage>
<TotalRecords>2</TotalRecords>
<ItemNumber>003296U</ItemNumber>
<ISBN>0205092594</ISBN>
<Description>AMERICAN HISTORY (H)</Description>
<Grade>HIGH</Grade>
<Copyright>83</Copyright>
<Publisher>Prentice Hall Pearson Education</Publisher>
<Category>HISTORY</Category>
<ListPrice>44.47000</ListPrice>
<YourPrice>18.25</YourPrice>
<QuantityAvailable>1</QuantityAvailable>
</SearchResult>
</Course>
Any idea?
Thank you,