fixed some bugs in last check in of libxml filter