Subject:interspering an xml declaration Author:Sushant Prabhu Date:02 Jan 2007 10:54 PM
Hi All,
How can I acheive this. I am currently using xsl for xml to xml transformation. The new xml generated is forwarded to a method which carries out the xml parsing (confirms to DTD check).
In order to acheive that I need to interspere the DTD reference as XML declaration in the newly generated xml.
This is what I need to add in the start of every xml payload generated.
*********************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE destination SYSTEM "world.dtd" [
<!ENTITY euro "Euro">
]>
************************************
Here is the xsl which I use to render the xml & I need the above xml declaration included