Solved

combine two xml files in one

Posted on 2012-12-27
2
250 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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