Code: Select all
<book>
testbook
</book>
test.xml
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE novel [
<!ENTITY book SYSTEM "book.xml">
]>
<test>
&book;
</test>and i got the output as
Code: Select all
<test>
<book>
<book>
testbook
</book>
</book>
</test>there is extra tag included in test.xml
but the desired output is
Code: Select all
<test>
<book>
testbook
</book>
</test>