I am new in XMLReader, and I think is kind of hard to find tutorials/code or something advanced to get examples. My question is how can I transform the code I have now, so i
Try simplexml -- it's better:
book as $book) { if (preg_match('/' . preg_quote($search) . '/i', $book->name)) { echo $book->name . ' (' . $book->info . ')'; } }