Solved

combine two xml files in one

Posted on 2012-12-27
2
243 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
Comment Utility
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
Comment Utility
Got it. Thanks.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
xml asp.net 1 1,176
Make a UI for entering XML 3 65
Group all sequential comments all in one binder <p>, using XSL 10 41
Create XML 5 30
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

16 Experts available now in Live!

Get 1:1 Help Now