安装包含本地参考和全部已发布模式的完整包。
install xmlxml@name,元素文本使用 #text。
config.@env 与 config.application.name 指向不同
xml <file> [key|options] · xml dump <file>xml <file>显示
xml <file> <key>按路径显示精确的元素、属性(@name)或 #text
xml dump <file>显示规范化的
-f <text|mask> [-k|-v]在键或值中查找匹配项;* 和 ? 表示掩码
-w <key> : <value>写入值并规范化
-w <key> < <file>写入从另一个文件读取的值
-d <key>按点路径删除值
-c验证
重新保存
可直接在页面中运行预先准备的示例。结果已预先生成并在浏览器中显示;服务器不会执行任何终端命令。
安装当前兼容版本。完整功能请选择 Base,精简包请选择 Minimum;已安装模块的更新请使用 upgrade。
Base 与 Minimum 是同一当前模块版本的两个包。
安装包含本地参考和全部已发布模式的完整包。
install xml安装精简包。该包不包含本地参考;
install xml -m安装这个确切的已发布版本。
install xml -v 1.1.6让 upgrade 检查兼容性,仅在需要时替换已安装块。
upgrade xml删除扩展块,不影响核心和其他模块。
install xml -u示例可复制,但网站不会执行。请先检查路径、权限和破坏性选项。
xml config/app.xmlconfig.@env production
config.application.name lil-shop
config.application.debug true
config.database.host localhost
config.database.port 3306xml config/app.xml config.application.namelil-shopxml config/app.xml config.@envproductionxml config/app.xml config.database.port3306xml config/app.xml -f "config.database.*" -kconfig.database.host localhost
config.database.port 3306xml config/app.xml -f "localhost" -vconfig.database.host localhostxml config/app.xml -f "debug"config.application.debug truexml config/app.xml -w config.database.port : 3307config.database.port 3307xml config/app.xml -w config.application.name < config/from-value.txtconfig.application.name new-shop
xml config/app.xml -d config.application.debugconfig.@env production
config.application.name lil-shop
config.database.host localhost
config.database.port 3306xml config/app.xml -cValid XMLxml dump config/app.xml<?xml version="1.0" encoding="UTF-8"?>
<config env="production">
<application>
<name>lil-shop</name>
<debug>true</debug>
</application>
<database>
<host>localhost</host>
<port>3306</port>
</database>
</config>
xml config/app.xml unknown.keyPath not foundxml config/invalid.xml -cInvalid XMLxml config/missing.xmlFile not foundxml config/app.xml -w config.database.portValue required after : or <xml config/app.xml -d configXML data must have exactly one root elementxml config/app.xml -w config.missing.child : 5Parent path is not a collectionsandbox/config/app.xml该示例使用受保护的 /sandbox/ 文档工作区中的文件或目录。
<?xml version="1.0" encoding="UTF-8"?>
<config env="production">
<application><name>lil-shop</name><debug>true</debug></application>
<database><host>localhost</host><port>3306</port></database>
</config>