php output xml format string

高洛峰
Release: 2016-12-01 10:02:46
Original
2350 people have browsed it

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; 
?>
Copy after login


Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template