Parsing vcxproj with python and lxml
<p>I'm trying to parse a vcxproj with Python and lxml. When I attempt to do that nothing is chown during print unless I delete what's in <code>&lt;Project &gt;</code>.</p>

<p>Here is my .vcxproj (I reduced it to test) :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  &lt;ItemGroup Label="ProjectConfigurations"&gt;
    &lt;ProjectConfiguration Include="Debug|Win32"&gt;
      &lt;Configuration&gt;Debug&lt;/Configuration&gt;
      &lt;Platform&gt;Win32&lt;/Platform&gt;
    &lt;/ProjectConfiguration&gt;
    &lt;ProjectConfiguration Include="Debug|x64"&gt;
      &lt;Configuration&gt;Debug&lt;/Configuration&gt;
      &lt;Platform&gt;x64&lt;/Platform&gt;
    &lt;/ProjectConfiguration&gt;
    &lt;ProjectConfiguration Include="ReleaseDebug|Win32"&gt;
      &lt;Configuration&gt;ReleaseDebug&lt;/Configuration&gt;
      &lt;Platform&gt;Win32&lt;/Platform&gt;
    &lt;/ProjectConfiguration&gt;
    &lt;ProjectConfiguration Include="ReleaseDebug|x64"&gt;
      &lt;Configuration&gt;ReleaseDebug&lt;/Configuration&gt;
      &lt;Platform&gt;x64&lt;/Platform&gt;
    &lt;/ProjectConfiguration&gt;
    &lt;ProjectConfiguration Include="Release|Win32"&gt;
      &lt;Configuration&gt;Release&lt;/Configuration&gt;
      &lt;Platform&gt;Win32&lt;/Platform&gt;
    &lt;/ProjectConfiguration&gt;
    &lt;ProjectConfiguration Include="Release|x64"&gt;
      &lt;Configuration&gt;Release&lt;/Configuration&gt;
      &lt;Platform&gt;x64&lt;/Platform&gt;
    &lt;/ProjectConfiguration&gt;
  &lt;/ItemGroup&gt;
&lt;/Project&gt;
</code></pre>

<p>And my python code :</p>

<pre><code>#!/usr/bin/python3
# -*- coding: utf-8 -*-

from lxml import etree

tree = etree.parse("core.xml")

for conf in tree.xpath("/Project/ItemGroup/ProjectConfiguration/Configuration"):
    print(conf.text)
</code></pre>

<p>If I run like this, script works but show nothing. If I delete <code>DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"</code> in node <strong>Project</strong> script works...</p>

<p>I'm new to xml, maybe I'm doing something wrong. can you help me please to  solve this ?</p>

<p>Thanks for help.</p>