Home >Backend Development >XML/RSS Tutorial >php output xml format string

php output xml format string

高洛峰
高洛峰Original
2016-12-01 10:02:462371browse

Copy the code The code is as follows:

<?php 
header("Content-type:text/xml;charset=utf-8"); 
$aaa =<<<html 
<?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?> 
<SubFucParams> 
<Version>1.0.0.0</Version> 
<Publisher>d3e59f1d78f344c682bef3517a4b667f</Publisher> 
<PublisherName>rong</PublisherName> 
<Story> 
<Type>.txt</Type> 
<Title> 
<MainTitle>www</MainTitle> 
</Title> 
<Author> 
<Name>wwww</Name> 
</Author> 
<Source>移动采编</Source> 
<DocContent>Wwwwwww</DocContent> 
<StoryType>Text</StoryType> 
</Story> 
</SubFucParams> 
html; 
echo $aaa; 
?>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:NoneNext article:J2ME Mobile 3D入门教程系列文章之一