I've saved javascript code in xml file. but when I get it show as empty xml tag.
The XML Code
<ad>
<Name> Ad 1 </Name>
<place> 1 </place>
<Type> code </Type>
<content>
<script type="text/javascript">
<!--
google_ad_client = "pub-*********";
/* 160x600, 28/08/09 */
google_ad_slot = "*********";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</content>
</ad>
When I get the tag content
by using PHP DOMDocument I find it empty,
and when I checked the page source code, I find it empty no javascript exists.
Although when I bring the value of another tag like Name
,Type
, displays without problems.
I have no doubt in PHP code.