support reading from XML::LibXML::Document/Element
readXML from STDIN by default (close #9)