<?xml version="1.0" encoding="UTF-8" ?> - <root> - <content> <item>Cinderella</item> <item>Cindy</item> </content> </root> |
#!c:\perl\bin\perl.exe #print "Content-type: text/html\n\n"; print "Content-type: text/xml\n\n"; print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; print "<!-- Copyright w3school.com.cn -->"; print "<note>"; print " <to>George</to>"; print " <from>John</from>"; print " <heading>Reminder</heading>"; print " <body>Don't forget the meeting this weekend!</body>"; print "</note>"; |
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |