具有外部参考的xml文档 [英] xml document having external references
本文介绍了具有外部参考的xml文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以使xml文档引用同一机器上其他xml文件中定义的变量/元素?
Is there a way wherein an xml document can refer to a variable/element which is defined in some other xml file on the same machine?
推荐答案
当然,像这样:
outer.xml:
outer.xml:
<!DOCTYPE outer [
<!ELEMENT outer ANY>
<!ENTITY inner SYSTEM "inner.xml" >
]>
<outer>
&inner;
&inner;
</outer>
inner.xml
inner.xml
<inner/>
这篇关于具有外部参考的xml文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文