@staticmethod<EOL><INDENT>def export_xml_file_no_di(directory, filename, bpmn_diagram):<DEDENT>
diagram_graph = bpmn_diagram.diagram_graph<EOL>process_elements_dict = bpmn_diagram.process_elements<EOL>definitions = BpmnDiagramGraphExport.export_definitions_element()<EOL>for process_id in process_elements_dict:<EOL><INDENT>process_element_attr = process_elements_dict[process_id]<EOL>process = BpmnDiagramGraphExport.export_process_element(definitions, process_id, process_element_attr)<EOL>nodes = diagram_graph.nodes(data=True)<EOL>for node in nodes:<EOL><INDENT>node_id = node[<NUM_LIT:0>]<EOL>params = node[<NUM_LIT:1>]<EOL>BpmnDiagramGraphExport.export_node_data(bpmn_diagram, node_id, params, process)<EOL><DEDENT>flows = diagram_graph.edges(data=True)<EOL>for flow in flows:<EOL><INDENT>params = flow[<NUM_LIT:2>]<EOL>BpmnDiagramGraphExport.export_flow_process_data(params, process)<EOL><DEDENT><DEDENT>BpmnDiagramGraphExport.indent(definitions)<EOL>tree = eTree.ElementTree(definitions)<EOL>try:<EOL><INDENT>os.makedirs(directory)<EOL><DEDENT>except OSError as exception:<EOL><INDENT>if exception.errno != errno.EEXIST:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>tree.write(directory + filename, encoding='<STR_LIT:utf-8>', xml_declaration=True)<EOL>
Exports diagram inner graph to BPMN 2.0 XML file (without Diagram Interchange data).

:param directory: string representing output directory,
:param filename: string representing output file name,
:param bpmn_diagram: BPMNDiagramGraph class instance representing a BPMN process diagram.