Hi!
I have generated XML file through following code
PHP Code:header("Content-type: text/xml");
$query = "SELECT * FROM xml ORDER BY id";
$resultID = mysql_query($query, $linkID) or die("Data not found.");
$xml_output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$xml_output .= "<listings>\n";
for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
$row = mysql_fetch_assoc($resultID);
$xml_output .= "\t<listing>\n";
$xml_output .= "\t\t<category>".$row['category']."</category>\n";
$xml_output .= "\t\t<id>".$row['id']."</id>\n";
$xml_output .= "\t\t<title>".$row['title']."</title>\n";
$xml_output .= "\t\t<url>auctiondetails.php?id=".$row['id']."</url>\n";
$xml_output .= "\t\t<city>".$row['city']."</city>\n";
$xml_output .= "\t\t<state>".$row['state']."</state>\n";
$xml_output .= "\t\t<zip_code>".$row['zip']."</zip_code>\n";
$xml_output .= "\t\t<condition>New</condition>\n";
$xml_output .= "\t\t<create_time>".$row['create_time']."</create_time>\n";
//$xml_output .= "\t\t<description>".str_replace("\"",""",str_replace(">",">",str_replace("<","<",str_replace("&", "&", $row['description']))))."</description>\n";
$xml_output .= "\t\t<description>".html_entity_decode($row['description'])."</description>\n";
$xml_output .= "\t\t<expire_time>".$row['expire_time']."</expire_time>\n";
$xml_output .= "\t\t<image_url>".$row['image_url']."</image_url>\n";
$xml_output .= "\t\t<price>".$row['price']."</price>\n";
$xml_output .= "\t</listing>\n";
}
$xml_output .= "</listings>";
echo $xml_output;
And following is the value of $row['description'], which in my opinion, giving error.
<center><h4><br><br></h4></center><!-- ##### TEMPLATE CODE BEGINS HERE #### --> <br /><table width=740 border=2 bordercolor=#000000 cellpadding=40 cellspacing=0 bgcolor=white align=center background=http://i20.photobucket.com/albums/b224/Velvetstouch/back.jpg> <tr><td> <table width=660 border=2 bordercolor=#000000 cellpadding=20 cellspacing=0 background="<http://www.deadzoom.com/member/velvetstouch/Bubbles.gif>"> <tr><td style="font-family: comic sans ms; font-size: 18px"> <h2 style="font-family: comic sans ms; font-size: 24px" align=center><center><img src=http://i20.photobucket.com/albums/b224/Velvetstouch/springposieshead.gif><CENTER></CENTER></CENTER> <TR> <TD align=middle bgColor=WHITE><FONT face="Comic Sans Ms" color=hotpink size=6> <B>HEIDI ~ A LITTLE GOLDEN BOOK ~ 1982!<B></U></B><BR><BR></FONT></B></TD></TR> <TR> </h2><div align=justify><p style="font-family: comic sans ms; font-size: 18px"> <h3> <tr bgcolor="#ffffff"> <td colspan="3"> <table width="550" border="0" cellpadding="10" cellspacing="1" width="100%" align="center"> <tr bgcolor="#ffffff"> <td colspan="3"> <table width="550" border="0" cellspacing="0" cellpadding="4" bgcolor="#000000" align="center"> <tr> <td bgcolor="#FFFFFF" align="center"><span id="ttl"><font color="#cc0000"><b></b></font></span><br><br><table border="0" cellspacing="2" cellpadding="4" width="100%"> <tr><td class="bordergall" bgcolor="#eeeeee" width="30%" align="center"><b>BOOK</b></td><td colspan="4" class="bordergbt"> </td></tr><tr><td class="bordergry"><p><span id="small"> <U></u></span><br><b>A LITTLE GOLDEN BOOK!</b></p></td><td class="bordergry"><p><span id="small"><u> <class="bordergry"><p> </p></td></td></tr></table><br> <p><img src=http://i20.photobucket.com/albums/b224/Velvetstouch/lgbheidi.jpg></center> </center> <CENTER><BR><B></A></B></CENTER></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD bgColor=white><FONT face="Helvetica,Comic Sans Ms" color=black size=6><B><CENTER>HEIDI ~ A LITTLE GOLDEN BOOK ~ 1982!<FONT> <CENTER></CENTER></TD></TR> </style><body background=http://i20.photobucket.com/albums/b224/Velvetstouch/tanbk1.jpg bgproperties=fixed> <TR> <TD><FONT face="CARBON BLACK" color=black size=4><U><B> <B></U></B><BR><BR> <center>HEIDI ~ A LITTLE GOLDEN BOOK ~ 1982! Adapted from the original story by Johanna Spyri and pictures by Corinne Malvern. Published by Western Publishing Inc., copyright 1982. The number on the front of this book is 207-52.<p><font size=4><b>Heidi is a wonderful little book that has awesome illustrations as you read through this book with your child. This book would make a nice addition to your collection or to your child's library!<p><font size=4><b> This hardcover book measures 6 1/2" X 7 3/4". It shows very little shelf wear as pictured. The binding is nice and intact along with all for corners. This book has been gently read but well taken care of! There is no writing, marks or dog-eared pages or tears to any of the pages. <p><font size=4><b> <br>Please give the gift of reading to a child. If you have any questions or need more pictures, please email me and I will be happy to assist you. <BR><BR></FONT></B></B></P></B></TD></TR> <P><B></B><BR><B> <br><!-- PayPal Logo --> <table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"> <tr><td align="center"><a href="https://www.paypal.com/us/auction/pal=6MRLKCWFNP6TE" target="_blank"><img src="http://www.paypal.com/en_US/i/logo/logo3pv.gif" border="0" alt="PayPal-eBays service to make fast, easy, and secure payments for your eBay purchases!" title="PayPal-eBays service to make fast, easy, and secure payments for your eBay purchases!"></a></td></tr> <tr><td align="center"><table cellpadding=0 cellspacing=0 border=0> <tr> <td valign=top align=left><img src="https://www.paypal.com/en_US/i/logo/logo_ccVisa.gif" border=0 alt=" Visa"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccMC.gif" border=0 alt=" Mastercard"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccDiscover.gif" border=0 alt=" Discover"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccAmex.gif" border=0 alt=" American Express"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccEcheck.gif" border=0 alt=" eCheck"></td> </tr> </table> </td></tr> </table> <!-- End PayPal Logo --> <br> </CENTER> <P><B></B><BR><B> <CENTER> </td></tr></td></tr></table><p><p><table border=10 width=100% bordercolor=BLACK cellpadding=25 bgcolor=white><tr><td><font face=arial color=hotpink size=5><b>PAYMENT TERMS</b><p><font face=arial size=4 color=black> <center> <Center><img src=http://i20.photobucket.com/albums/b224/Velvetstouch/springhatblnk4.gif> <center>United States Buyers may pay with Cashier Checks, Money Orders, Personal Checks or PAYPAL. I may hold personal checks for 10-14 days for clearance. All payments must be received within 7-10 days of close of the auction or the item will be relisted.<br><font color=black><FONT color=black SIZE=4>International Buyers must pay via PAYPAL in the amount using U.S. Funds. No over payments will be accepted.</center><p><hr><p><font face=arial color=hotpink size=5><b>SHIPPING CHARGES</b><p><font face=arial size=4 color=black> <center>United States Buyers are to add $2.50 for shipping. I would be happy to combine shipping on any two or more of my items to help save on cost. Just let me know. Insurance is available for an additional cost of $1.30 if desired. If insurance is not purchased, I cannot be responsible for the item once it has been shipped. <P><font size=4>International Buyers must email me first for a quote based on your location.</center><p><hr><p><font face=arial color=hotpink size=5><b>RETURN POLICY</b><p><font face=arial size=4 color=black> <center>I will except returns with a reasonable explanation. All returns must be returned within 5-7 days in the same manner and condition is which it was received. All shipping and handling is the buyers responsibility and will not be refunded. </center><p><hr><p><font face=arial color=hotpink size=5><b>FEEDBACK POLICY</b><p><font size=4 color=black> <center>I am an experienced seller and am proud of my 100% positive feedback from two other sites. I strive for customer satisfaction and will always leave my buyers appropriate feedback. I contact my buyers within 24 hours of close of aution, if you do not hear from me via email, please attempt to email me due to the fact that many people have spam blockers on their email accounts. Please see my About Me page and bid with confidence. Thanks for stopping by and have a great day! <CENTER><P><img src=http://i20.photobucket.com/albums/b224/Velvetstouch/cid_00a801c5510be8950ea06901a8c0-1.gif> <br><P><p><CENTER> <img src="http://i14.photobucket.com/albums/a306/tugboatofjewels/autismawareness2.gif"> <br> <p><CENTER/> <br><br> </td></tr><br><h3> </p></div> <h3 style="font-family: comic sans ms; font-size: 20px; font-weignt: bold" align=left></h3><div align=justify><p style="font-family: comic sans ms; font-size: 18px"> </p></div> <p style="font-family: comic sans ms; font-size: 18px" align=center> <p style="text-align: center; font-family: arial; font-size: 14px"></p> </td></tr> </table> </td></tr> </table> <!-- ##### TEMPLATE CODE ENDS HERE ##### --><br><br><br>
/********************************/
But when I run the page, It gives me error [below the web page] . For clarification/details kinldy visit following link :
http://vibersol.com/sitesdemo/odle/rss.php
Can anyone help me in this regards
Thanks in Advance





Bookmarks