<?xml version="1.0" encoding="utf-8"?>
<snow snowNumber="1000">
<flake id="000001" nickname="aa" loc="beijing" message="merry christmas" notify="false" email="aa@126.com" coord="O65656666337d0084008700000000" date="2006-12-18" ths="false" special="true" i="0" graphic="falling1"/>
</snow>
d
输出就可以了,xml也就是一种文档标准罢了
<?php
$dom = new DOMDocument('1.0', 'iso-8859-1');
$element = $dom->createElement('test', 'This is the root element!');
// We insert the new element as root (child of the document)
$dom->appendChild($element);
echo $dom->saveXML();
?>
使用phplib模板输出
普通页面怎么生成,XML文件就怎么生成,LZ加油!
mark
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 文件 生成 利用 如何 element xml the 输出 false 怎么 |
注册
个人空间
