How to solve the StopIteration issue while the XML tag does not have a value using Python script
<p>I am using ixml to parse the XML doxument.</p>

<pre><code>from lxml import etree
root=etree.XML(full xml tag file content)
 if (next(root.iterfind(".//one_inner_tag")).text is None):
      Print "NONE VALUE"
 else:
      Print root.iterfind(".//one_inner_tag")).text
</code></pre>

<p>While executing this code, I have faced an error like</p>

<pre><code>if (next(root.iterfind(".//one_inner_tag")).text is None):
StopIteration
</code></pre>

<p>Because of the file content does not have that specific tag.
If the Tag does not have a value means I need to print the NONE VALUE. But it prints the error.</p>