开发者

Creating DOM XML - trying to resolve the 'nbsp' entity problem

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜