Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

combine two xml files in one

Posted on 2012-12-27
2
Medium Priority
?
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
hpdvs2 earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

721 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