title: XML to base64 using python
body: <p>How to convert complete xml file to base64 string using python/ scala?</p>
  <p>I have tried b64 module ,but it requires a string(bytes-like) to  be passed to it . But how to do that with ML given it's multiline structure and hierarchy.
  Could anyone give an example on how to do it.</p>
  <p>Thanks.</p>