Insert XML from one file into another with xmlstarlet?

萝らか妹 提交于 2020-01-05 04:36:11

问题


Is there a way to insert XML from one file into another using xmlstarlet or am I stuck stringing together a bunch of -s commands? I have a fairly large chunk to insert. Would I be better off writing some xsl with that chunk in it?


回答1:


Would I be better off writing some xsl with that chunk in it?

I think you would be better off using XSL; the document() function lets you get XML from another file. xmlstarlet's ed subcommand doesn't have access to document() and it lacks a way of accessing other files.



来源:https://stackoverflow.com/questions/11696424/insert-xml-from-one-file-into-another-with-xmlstarlet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!