Creating <!DOCTYPE and <!ENTITY at beginning of XML using PH
Posted: Thu May 27, 2010 7:30 pm
Hello,
I am in the process of writing many XML files (416) from info on a MySQL Db. I have been sucessful in everything except for getting the following at the beginning of the file:
I have been using the DOMDocument functions within PHP to write the remainder of the file, with pretty good success. I am not sure how to get this information placed before the "root" element.
Any help would be greatly appreciated. I would post the complete PHP script that I have thus far, but it is 850 lines long, and at work.
Thanks
I am in the process of writing many XML files (416) from info on a MySQL Db. I have been sucessful in everything except for getting the following at the beginning of the file:
Code: Select all
<!DOCTYPE dmodule [
<!NOTATION png PUBLIC "pngviewer.exe">
<!NOTATION jpg PUBLIC "jpgviewer.exe">
<!ENTITY SYSTEM "./Illustrations/$filename.jpg" NDATA jpg>
]>Any help would be greatly appreciated. I would post the complete PHP script that I have thus far, but it is 850 lines long, and at work.
Thanks