How can I parse XML data into an array in AngularJS 4?
Here is an example of the XML data:
<data>
<element>ESA</element>
<element>XCAVS</element>
<element>TQSZ</element>
<element>HGDQZ</element>
<element>OMGDS</element>
</data>
I would like to extract the data from the element tags (such as ESA, XCAVS, TQSZ) and convert it into an array using AngularJS 4.
Can someone guide me on how to achieve this?