parameters: (file_or_string=None)
return_statement: return content
docstring: Derive additional content for the XML report.
  
      If the supplied parameter is the path to a file, the contents will be inserted
      into the XML report. If the parameter is just plain string, use that as the
      content for the report. For a file or a string passed in on the commandline,
      this assumes it could contain Unicode content and converts it to a Unicode
      object.
  
      Args:
        file_or_string: a path to a file, or a plain string
  
      Returns:
        content as a unicode object
docstring_summary: Derive additional content for the XML report.
docstring_tokens: Derive additional content for the XML report .
function: def get_xml_content(file_or_string=None):
      """
      Derive additional content for the XML report.
  
      If the supplied parameter is the path to a file, the contents will be inserted
      into the XML report. If the parameter is just plain string, use that as the
      content for the report. For a file or a string passed in on the commandline,
      this assumes it could contain Unicode content and converts it to a Unicode
      object.
  
      Args:
        file_or_string: a path to a file, or a plain string
  
      Returns:
        content as a unicode object
      """
      if file_or_string is None:
        content = u''
      elif os.path.exists(file_or_string):
        with codecs.open(file_or_string, encoding="UTF-8", mode='r') as f:
          content = f.read()
      else:
        # This is a string passed in on the command line. Make sure to return it as
        # a unicode string.
        content = unicode(file_or_string, encoding="UTF-8")
      return content
function_tokens: def get_xml_content ( file_or_string = None ) : if file_or_string is None : content = u'' elif os . path . exists ( file_or_string ) : with codecs . open ( file_or_string , encoding = "UTF-8" , mode = 'r' ) as f : content = f . read ( ) else : # This is a string passed in on the command line. Make sure to return it as # a unicode string. content = unicode ( file_or_string , encoding = "UTF-8" ) return content