title: Extract some part of an XML
body: <p>I have an xml and I want to extract some part of that. But I am unable to get it.
  If I used variables and put every key in variables I can get that part but it is a very lengthy process. So is there any short process for it?</p>
  
  <p>Below is the XML : </p>
  
  <pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;xs:nml
  xmlns:xs=\"http://www.netgear.com/protocol/transaction/NMLSchema-0.9\" src=\"nas\" dst=\"dpv_1461117132000\" locale=\"en-us\"&gt;
  &lt;xs:transaction ref-id=\"\" type=\"0\"&gt;
      &lt;xs:response ref-id=\"njl_id_1941\" status=\"success\"&gt;
          &lt;xs:result&gt;
              &lt;xs:get-s resource-id=\"network_link_list\" resource-type=\"network_link_collection\"&gt;
                  &lt;network_link_collection&gt;
                      &lt;network_link resource-id=\"eth0\"&gt;
                          &lt;link&gt;eth0&lt;/link&gt;
                          &lt;ifname&gt;eth0&lt;/ifname&gt;
                          &lt;speed&gt;1000&lt;/speed&gt;
                          &lt;path/&gt;
                          &lt;duplex&gt;full&lt;/duplex&gt;
                          &lt;vlanid&gt;0&lt;/vlanid&gt;
                          &lt;iptype&gt;ipv4dhcp&lt;/iptype&gt;
                          &lt;ipv6type&gt;ipv6dhcp&lt;/ipv6type&gt;
                          &lt;ip&gt;0.0.0.0&lt;/ip&gt;
                          &lt;subnet&gt;255.255.255.0&lt;/subnet&gt;
                          &lt;broadcast&gt;0.0.0.0&lt;/broadcast&gt;
                          &lt;ipv6&gt;::&lt;/ipv6&gt;
                          &lt;subnet6&gt;::&lt;/subnet6&gt;
                          &lt;prefixlength&gt;64&lt;/prefixlength&gt;
                          &lt;ipv6_link&gt;::&lt;/ipv6_link&gt;
                          &lt;prefixlength_link&gt;64&lt;/prefixlength_link&gt;
                          &lt;mac&gt;6C:B0:CE:1C:CA:AE&lt;/mac&gt;
                          &lt;mtu&gt;1500&lt;/mtu&gt;
                          &lt;router&gt;0.0.0.0&lt;/router&gt;
                          &lt;router6&gt;0.0.0.0&lt;/router6&gt;
                          &lt;state&gt;down&lt;/state&gt;
                          &lt;dnscollection/&gt;
                          &lt;routecollection/&gt;
                          &lt;ntpcollection/&gt;
                      &lt;/network_link&gt;
                  &lt;/network_link_collection&gt;
              &lt;/xs:get-s&gt;
          &lt;/xs:result&gt;
      &lt;/xs:response&gt;
  &lt;/xs:transaction&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want the xml which comes inside <code>network link</code> collection.</p>