[Judge] PHP Basics - Exam 21 December - Problem {04} Book Store
На първия нулев тест ми излиза това:
<div><p>MSXML3: A Comprehensive Guide</p><ul><li>O'Brien, Tim</li><li>Computer</li><li>6.95</li><li>2000-12-01</li><li>The Microsoft MSXML3 parser is covered in detail, with attention to XML DOM interfaces, XSLT processing, SAX and more.</li></ul></div><div><p>Maeve Ascendant</p><ul><li>Corets, Eva</li><li>Fantasy</li><li>6.95</li><li>2000-11-17</li><li>After the collapse of a nanotechnology society in England, the young survivors lay the foundation for a new society.</li></ul></div><div><p>Oberon's Legacy</p><ul><li>Corets, Eva</li><li>Fantasy</li><li>5.00</li><li>2001-03-10</li><li>In post-apocalypse England, the mysterious agent known only as Oberon helps to create a new life for the inhabitants of London. Sequel to Maeve Ascendant.</li></ul></div><div><p>Lover Birds</p><ul><li>Randall, Cynthia</li><li>Romance</li><li>5.95</li><li>2000-09-02</li><li>When Carla meets Paul at an ornithology conference, tempers fly as feathers get ruffled.</li></ul></div> Your output: <div><p>MSXML3: A Comprehensive Guide</p><ul><li>O'Brien, Tim</li><li>Computer</li><li>6.95</li><li>2000-12-01</li><li>The Microsoft MSXML3 parser is covered in detail, with attention to XML DOM interfaces, XSLT processing, SAX and more.</li></ul></div><div><p>Maeve Ascendant</p><ul><li>Corets, Eva</li><li>Fantasy</li><li>6.95</li><li>2000-11-17</li><li>After the collapse of a nanotechnology society in England, the young survivors lay the foundation for a new society. </li></ul></div><div><p>Oberon's Legacy</p><ul><li>Corets, Eva</li><li>Fantasy</li><li>5.00</li><li>2001-03-10</li><li>In post-apocalypse England, the mysterious agent known only as Oberon helps to create a new life for the inhabitants of London. Sequel to Maeve Ascendant. </li></ul></div><div><p>Lover Birds</p><ul><li>Randall, Cynthia</li><li>Romance</li><li>5.95</li><li>2000-09-02</li><li>When Carla meets Paul at an ornithology conference, tempers fly as feathers get ruffled. </li></ul></div>
Всичко е точно, само не мога да разбера защо ми чупи аутпута. Пробвах го с друг код и работи както трябва, така че съм сигурен, че е от мен проблема.
Това е моят код:
http://pastebin.com/wzh0TDFC