Frage

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?

War es hilfreich?

Lösung

Sure, like this:

outer.xml:

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

inner.xml

<inner/>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top