try XML::LibXML in another way