I can't read the code from xml file

Gillian

New Member
I've saved javascript code in xml file.but when I get it show as empty xml tag.The XML Code\[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>\[/code\]When I get the tag \[code\]content\[/code\] 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 \[code\]Name\[/code\],\[code\]Type\[/code\], displays without problems.I have no doubt in PHP code.
 
Back
Top