При разборе из файла,
у напечатать все значения «ClCompiler» дочернего элемента «ItemGroup» моего XML-файла.
мой код на питонеtree = minidom.parse(project_path)
itemgroup = tree.getElementsByTagName('ItemGroup')
print (itemgroup[0].toxml())
мой результат<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="../../avmedia/source/framework/MediaControlBase.cxx"/>
<ClCompile Include="../../avmedia/source/framework/mediacontrol.cxx"/>
<ClCompile Include="../../avmedia/source/framework/mediaitem.cxx"/>
<ClCompile Include="../../avmedia/source/framework/mediamisc.cxx"/>
</ItemGroup>
ЕСС
ожидаемый результат <ClCompile Include="../../basic/source/basmgr/basmgr.cxx"/>
<ClCompile Include="../../basic/source/basmgr/vbahelper.cxx"/>
<ClCompile Include="../../basic/source/classes/codecompletecache.cxx"/>
ЕСС
часть моего xml<ItemGroup>
<ClCompile Include="../../basic/source/basmgr/basicmanagerrepository.cxx"/>
<ClCompile Include="../../basic/source/basmgr/basmgr.cxx"/>
<ClCompile Include="../../basic/source/basmgr/vbahelper.cxx"/>
<ClCompile Include="../../basic/source/classes/codecompletecache.cxx"/>
</ItemGroup>