xml document having external references
-
11-06-2021 - |
Question
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?
La solution
Sure, like this:
outer.xml:
<!DOCTYPE outer [
<!ELEMENT outer ANY>
<!ENTITY inner SYSTEM "inner.xml" >
]>
<outer>
&inner;
&inner;
</outer>
inner.xml
<inner/>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow