we all know using dom in php5 to generate xml file is easy. But I found something not so easy to do with DOM.
first thing is How can I add a DOCTYPE like this to a new generated XML:
<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'
[ <!ENTITY sp \"spanish\"> ]>
or how can I change the DOCTYPE?
and the second, how can I create a open tag with DOM in a XML?