<?php
header("Content type: text/xml; charset=gb2312");
echo "<?xml version='1.0' encoding='gb2312' ?>";
echo "<MAIN text='     服务管理' expand='false'><SUB text='服务请求' URL='http://2000-4' target='_blank'></SUB><SUB text='定单管理' URL='http://2000-4' target='_blank'></SUB></MAIN>";?>

解决方案 »

  1.   

    谢谢,另外你知道在FLASH MX中
    怎样接受到他中的XML数据吗?
    我用的是
    topic_xml= new XML();
    loadXML("showxml.php");function loadXML(theURL)
    {
    topic_xml.load(theURL);
    topic_xml.ignoreWhite=true;
    topic_xml.onLoad=parseXML;}
    接受不到,是不是loadXML();中装载的XML数据文件的后缀只能是.xml呢?
    如果真是如此,那么FLASH MX中如何才能接收到PHP中动态输出的XML数据呢?请您帮忙,先谢谢了
      

  2.   

    看看洋文:
    http://were-here.com/forums/showthread.php?threadid=136038