Home >Backend Development >XML/RSS Tutorial >How to write xml files in advertising controls

How to write xml files in advertising controls

黄舟
黄舟Original
2017-03-01 17:15:041655browse

The full text of xml is as follows:

<Advertisements>
<Ad> 
<ImageUrl>ggao/1.gif</ImageUrl> 
<NavigateUrl>http://www.microsoft.com</NavigateUrl> 
<AlternateText>Alt Text</AlternateText> 
<KeyWord>Computers</Keyword> 
<ImPRessions>80</Impressions> 
</Ad>
<Ad> 
<ImageUrl>ggao/2.gif</ImageUrl> 
<NavigateUrl>http://www.microsoft.com</NavigateUrl> 
<AlternateText>Alt Text</AlternateText> 
<Keyword>Computers</Keyword> 
<Impressions>80</Impressions> 
</Ad>
<Ad> 
<ImageUrl>ggao/3.gif</ImageUrl> 
<NavigateUrl>http://www.microsoft.com</NavigateUrl> 
<AlternateText>Alt Text</AlternateText> 
<Keyword>Computers</Keyword> 
<Impressions>80</Impressions> 
</Ad>
</Advertisements>

You can paste it directly and pull it. Change the image address to

<Keyword>Computers</Keyword>

and you can remove it

The above is how to write the xml file in the advertising control Content, please pay attention to the PHP Chinese website (www.php.cn) for more related content!


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