How to create an XML document header using ptree?

<?xml version="1.0" encoding="utf-16BE"?> 

    0