I'm trying to create XML record. I started with this:
$doc = new DomDocument('1.0', 'UT开发者_开发问答F-8');
Now I should add this line:
<!DOCTYPE page SYSTEM "http://gv.ca/dtd/character-entities.dtd">
How do I do this?
Chris
Assuming it's PHP, you could consider using DOMImplementation::createDocumentType
and DOMImplementation::createDocument
. See here
精彩评论