combine two xml files in one

sdc248
sdc248 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
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

Author

Commented:
Got it. Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial