( ! ) Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:\www\up\xml\xml03.php on line 14
Call Stack
#TimeMemoryFunctionLocation
10.0000354352{main}( )...\xml03.php:0

( ! ) Warning: include(http://pub.houheaven.com/Nav02/Nav_deep2.htm): failed to open stream: no suitable wrapper could be found in D:\www\up\xml\xml03.php on line 14
Call Stack
#TimeMemoryFunctionLocation
10.0000354352{main}( )...\xml03.php:0

( ! ) Warning: include(): Failed opening 'http://pub.houheaven.com/Nav02/Nav_deep2.htm' for inclusion (include_path='.;C:\php\pear') in D:\www\up\xml\xml03.php on line 14
Call Stack
#TimeMemoryFunctionLocation
10.0000354352{main}( )...\xml03.php:0

version

说明:目前 XML 只有一个版本:1.0,其值只能是 1.0,但一般不要省略。

示例:<?xml version="1.0"?>


encoding

说明:规定采用哪种编码方式,如 utf-8,ISO-8859-1 等,默认采用 utf-8,所以 encoding 可以省略。

示例:<?xml version="1.0" encoding="utf-8"?>


standalone

说明:当前文档是否独立,即是否要求 DTD 验证。值为 yes、no。

示例:<?xml version="1.0"? standalone="yes">


拓展:处理指令

处理指令以 <? 开始,以 ?> 结束,<? 后面的第一个单词为处理指令的名称,有 xml、xml-stylesheet、php 等。

注意:处理指令必须顶头书写,前面不能有空格或 tab。

示例:<?xml ?>


显示框架
top