作者:机加工N_918 | 来源:互联网 | 2023-05-19 10:14
Ineedtoputaratherlargexmlfileintoanotherxmlfile.IconsideredusingCDATAforthis:我需要将
I need to put a rather large xml file into another xml file. I considered using CDATA for this:
我需要将一个相当大的xml文件放入另一个xml文件中。我考虑过使用CDATA:
http://www.w3.org/TR/2000/REC-xml-20001006#sec-cdata-sect http://www.w3schools.com/xml/xml_cdata.asp
but since my xml might also contain CDATA this does not work unless I do some nasty workaround:
但由于我的xml可能还包含CDATA,除非我做一些讨厌的解决方法,否则这不起作用:
http://web-design.blogs.webucator.com/2010/11/20/nesting-cdata-blocks/
Are there better ways of transferring/encoding large nested xml files or is the xml format simply not meant to be used in this way?
是否有更好的方法来传输/编码大型嵌套xml文件,或者xml格式是不是以这种方式使用?
5 个解决方案