title: How can I parse through XML code and get required properties and values
body: <p>I am using angular and I am recieving an xml response from my api call. Out of XML want name attribute of property bpmn:task.</p>
  
  <pre><code>&lt;bpmn:process&gt;
  &lt;bpmn:task Id= "Loopin809" name="Process 1"  &gt;
  &lt;bpmn:Incoming&gt; Sequence 1&lt;/bpmn:Incoming&gt;
  &lt;bpmn:Outgoing&gt; Sequence 2&lt;/bpmn:Outgoing&gt;
  &lt;/bpmn:task&gt;
  &lt;bpmn:task Id= "Loopin8091" name="Process 2"  &gt;
  &lt;bpmn:Incoming&gt; Sequence 3&lt;/bpmn:Incoming&gt;
  &lt;bpmn:Outgoing&gt; Sequence 4&lt;/bpmn:Outgoing&gt;
  &lt;/bpmn:task&gt;
  &lt;bpmn:task Id= "Loopin80973" name="Process 3"  &gt;
  &lt;bpmn:Incoming&gt; Sequence 5&lt;/bpmn:Incoming&gt;
  &lt;bpmn:Outgoing&gt; Sequence 6&lt;/bpmn:Outgoing&gt;
  &lt;/bpmn:task&gt;
  &lt;/brpmn:process&gt;
  </code></pre>
  
  <p>I tried converting XML into JSON using NgxXml2Json, however, I am not able get the property "name", I am able to retrieve ID, but the name is what I am not able to retrieve. All I want is vale of name inside bpmn:task property.  (Hint name="Process 1" )</p>