$book->removeChild($a);
It's a bit hard to tell because you haven't used <code> tags around your code, but I don't see where you are assigning any value to $a so it is probably undef when you try to use it as an argument to removeChild().
Also, please don't use $a as a variable name - it has a special meaning for sort and can bite you if you are not careful.
In reply to Re: LibXML error when trying to delete a node in DOM
by hippo
in thread LibXML error when trying to delete a node in DOM
by msivask
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |