Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
concatenate xmls in list to one xml
nc work
6 years ago
196
Reply
I have list of xmls files each item has xml string, I would like to concatenate all xmls in list to one xml.
for e.g.
XML 1:
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
</book>
</catalog>
XML 2:
<catalog>
<book id="bk102">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
</book>
</catalog>
Result needed xml1 and xml2 concatenate to one :
<?xml version="1.0"?>
<catalogs>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
</book>
</catalog>
<catalog>
<book id="bk102">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
</book>
</catalog>
</catalogs>
Thanks
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
browser blink if any new thing happens
Partial view in ASP.net MVC