문제

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?

도움이 되었습니까?

해결책

Sure, like this:

outer.xml:

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

inner.xml

<inner/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top