Using Perl how to export Mysql table into xml file the same format as mysqldump do with command like this:
mysqldump --xml -u root -proot dbname tablename >tablename.xml
I know some Perl modules like XML::TreePP easy to use but their problem when they load xml file they have to load the entire file into memory before parsing and if the file size is larger than the allowed process memory will crash.