简体   繁体   中英

Join or merge two XML documents

I have two XML documents that I need to join (append one to another). Is there any easy way of doing it in Google Apps Script?

Have a look at JS Merge XML: http://www.binpress.com/app/js-merge-xml/2062

The class allows to merge multiple XML sources (files, strings, objects) into single DOM XML JavaScript object. The merging is performed on the node level adding new elements and replacing existing ones.

You'll need to copy the contents of mergexml.js into a new gs or html (depending if you want it to run server-side or client-side). Then check out the example.js file to see how it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM