xml document having external references

此生再无相见时 提交于 2020-01-06 20:06:46

问题


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?


回答1:


Sure, like this:

outer.xml:

<!DOCTYPE outer [
    <!ELEMENT outer ANY>
    <!ENTITY inner SYSTEM "inner.xml" >
]>
<outer>
    &inner;
    &inner;
</outer>

inner.xml

<inner/>


来源:https://stackoverflow.com/questions/10780482/xml-document-having-external-references

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