Solved

combine two xml files in one

Posted on 2012-12-27
2
245 Views
Last Modified: 2013-01-02
Hi:

I wonder if it would work if I combine content of two xml files into one? Would it work the same way as if the recipient system is getting one file after another?

for example:

 <envelope ack="info" transaction="multi">
....
</envelope>
<envelope ...>
...
</envelope>

The reason I need to do this is to make sure the first xml file get read/processed before the second one.

Thanks.
0
Comment
Question by:sdc248
2 Comments
 
LVL 8

Accepted Solution

by:
hpdvs2 earned 250 total points
ID: 38725008
no.  XML standards requires a SINGLE root element.  
You can however do something like this:
<Envelopes>
  <Envelope>...</Envelope>
  <Envelope>...</Envelope>
</Envelopes>

Parsing requires that the first block is also the last/closes itself with nothing trailing.

http://en.wikipedia.org/wiki/Root_element
0
 

Author Closing Comment

by:sdc248
ID: 38737945
Got it. Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Load XML file into a SQL Server Table using SSIS 2012 9 57
c# code 19 69
XML to Excel using XSL - formatting 3 26
XML XSL Message 3 14
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now