@@ -30,8 +30,7 @@ def dict_to_xml_element(data, root):
30
30
sub_element = ET .SubElement (root , key )
31
31
dict_to_xml_element (value , sub_element )
32
32
elif isinstance (value , list ):
33
- sub_element = ET .SubElement (root , key + '_list' )
34
- list_to_xml_element (value , sub_element , key )
33
+ list_to_xml_element (value , root , key )
35
34
else :
36
35
ET .SubElement (root , key ).text = str (value )
37
36
@@ -46,7 +45,7 @@ def dict_to_xml(data, output_file):
46
45
"you may not use this file except in compliance with the License.\n "
47
46
"You may obtain a copy of the License at\n \n "
48
47
" http://www.apache.org/licenses/LICENSE-2.0\n \n "
49
- "Unless required by applicable law or agreed to in writing, software \n "
48
+ "Unless required by applicable law or agreed to in writing, software\n "
50
49
"distributed under the License is distributed on an \" AS IS\" BASIS,\n "
51
50
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n "
52
51
"See the License for the specific language governing permissions and\n "
0 commit comments