Expand my Community achievements bar.

Attention: Experience League Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.

Merge XML documents

Avatar

Level 8
Level 8
Hi all,



I have a list of XML documents (from a number of barcodes) and I need to merge them into one xml document.



How can I achieve this?



I have tried the concat-function - but I get an error telling me:



org.xml.sax.SAXParseException: Content is not allowed in prolog.



What can I do?



Sincerely

Kim
1 Reply

Avatar

Level 9
Try converting them to strings (using xpath serialize function), concatenating them together (using xpath concat function), and then turning the result back into xml using the serialize function.

Howard

http://www.avoka.com