title: Python regEx to find positions of xml data
body: <p>I want to extract the position of XML data with python regEx or using any other method and the data part can be numbers, words,ip or any tags.</p>
  
  <pre><code>PUT /mg/co.xml HTTP/1.1
  Host: 19.16.7.59
  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gehko/20100101 Firefox/31.0
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN. --&gt;
  &lt;io:zzzz xmlns:io="http://kfj/ledm/iomgmt/2008/11/30" xmlns:dd="http://jkfhkj/dictionaries/1.0/" xmlns:dd3="http://jfja/dictionaries/2009/04/06" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jcjhjk/ledm/iomgmt/2008/11/30 ../../schemas/gfjbj.xsd"&gt;
      &lt;io:aaaa&gt;
          &lt;dd3:bbbb&gt;hjgjg&lt;/dd3:bbbb&gt;
      &lt;/io:aaaa&gt;
      &lt;io:ccccc&gt;
          &lt;io:dddd&gt;
              &lt;dd3:ffff&gt;15.34.2.5&lt;/dd3:ffff&gt;
          &lt;/io:dddd&gt;
          &lt;io:eeee&gt;
              &lt;dd3:gggg&gt;67&lt;/dd3:gggg&gt;
          &lt;/io:eeee&gt;
          &lt;io:iiii&gt;
              &lt;dd3:jjjj&gt;&lt;script&gt;jgfjkgkj&lt;/script&gt;&lt;/dd3:jjjj&gt;
          &lt;/io:iiii&gt;
      &lt;/io:cccc&gt;
  &lt;/io:zzzz&gt;
  </code></pre>
  
  <p><strong>Expected Output:</strong> </p>
  
  <pre><code>(the data given below are approximate positions)
  
  hjgjg [start off = 59, end off= 64]
  15.43.2.5 [start off= 74, end off= 84]
  67 [start offset=95, end off=97]
  &lt;script&gt;jghjhdjk&lt;/script&gt;[ start offset=102, end off=124]
  </code></pre>
  
  <p>Can anybody please help me sorting out this?</p>