parameters: (file, messages)
docstring: Writes the given grit.tclib.Message items to the specified open
    file-like object in the XMB format.
docstring_summary: Writes the given grit.tclib.Message items to the specified open
    file-like object in the XMB format.
docstring_tokens: Writes the given grit . tclib . Message items to the specified open file - like object in the XMB format .
function: def WriteXmbFile(file, messages):
    """Writes the given grit.tclib.Message items to the specified open
    file-like object in the XMB format.
    """
    file.write("""<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE messagebundle [
  <!ELEMENT messagebundle (msg)*>
  <!ATTLIST messagebundle class CDATA #IMPLIED>
  
  <!ELEMENT msg (#PCDATA|ph|source)*>
  <!ATTLIST msg id CDATA #IMPLIED>
  <!ATTLIST msg seq CDATA #IMPLIED>
  <!ATTLIST msg name CDATA #IMPLIED>
  <!ATTLIST msg desc CDATA #IMPLIED>
  <!ATTLIST msg meaning CDATA #IMPLIED>
  <!ATTLIST msg obsolete (obsolete) #IMPLIED>
  <!ATTLIST msg xml:space (default|preserve) "default">
  <!ATTLIST msg is_hidden CDATA #IMPLIED>
  
  <!ELEMENT source (#PCDATA)>
  
  <!ELEMENT ph (#PCDATA|ex)*>
  <!ATTLIST ph name CDATA #REQUIRED>
  
  <!ELEMENT ex (#PCDATA)>
  ]>
  <messagebundle>
  """)
    for message in messages:
      _WriteMessage(file, message)
    file.write('</messagebundle>')
function_tokens: def WriteXmbFile ( file , messages ) : file . write ( """<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE messagebundle [
  <!ELEMENT messagebundle (msg)*>
  <!ATTLIST messagebundle class CDATA #IMPLIED>
  
  <!ELEMENT msg (#PCDATA|ph|source)*>
  <!ATTLIST msg id CDATA #IMPLIED>
  <!ATTLIST msg seq CDATA #IMPLIED>
  <!ATTLIST msg name CDATA #IMPLIED>
  <!ATTLIST msg desc CDATA #IMPLIED>
  <!ATTLIST msg meaning CDATA #IMPLIED>
  <!ATTLIST msg obsolete (obsolete) #IMPLIED>
  <!ATTLIST msg xml:space (default|preserve) "default">
  <!ATTLIST msg is_hidden CDATA #IMPLIED>
  
  <!ELEMENT source (#PCDATA)>
  
  <!ELEMENT ph (#PCDATA|ex)*>
  <!ATTLIST ph name CDATA #REQUIRED>
  
  <!ELEMENT ex (#PCDATA)>
  ]>
  <messagebundle>
  """ ) for message in messages : _WriteMessage ( file , message ) file . write ( '</messagebundle>' )