class_docstr: Initialise a PomdpXWriter Object
  
  Parameters
  ----------
      model: A Bayesian of Markov Model
          The model to write
  
  encoding: String(optional)
      Encoding for text data
  
  prettyprint: Bool(optional)
      Indentation in output XML if true
class_docstr_tok: ["Initialise","a","PomdpXWriter","Object","Parameters","--","--","--","--","--","model",":","A","Bayesian","of","Markov","Model","The","model","to","write","encoding",":","String","(","optional",")","Encoding","for","text","data","prettyprint",":","Bool","(","optional",")","Indentation","in","output","XML","if","true"]
docstr: Return the XML as string.
docstr_tok: ["Return","the","XML","as","string","."]
code: def __str__(self, xml):
      """
      Return the XML as string.
      """
      if self.prettyprint:
          self.indent(xml)
      return etree.tostring(xml, encoding=self.encoding)
  
imports: import xml.etree.ElementTree
  from collections import defaultdict
label_desc: Use image node_id 2 for calling the PomdpXWriter obj's underlying member method code with example usage: obj.__str__(xml) and returns: etree