I am new to javascript and I am working on a task to get the count of sets that has "machine", "human", or "software" from the month wise and total in any year based on the dates given in . I would appreciate any help provided.
<?xml version="1.0"?>
<resultset>
<set>
<type>type1</type>
<name>Patil</name>
<date>2015-03-21</date>
<tag>ThisIsALongText-|tag_machine</tag>
<c_date>2015-01-12</c_date>
</set>
<set>
<type>type1</type>
<name>Patil</name>
<date>2016-06-11</date>
<tag>ThisIsALongText-|tag_human</tag>
<c_date>2013-07-17</c_date>
</set>
<set>
<type>type1</type>
<name>Patil</name>
<date>2016-05-21 </date>
<tag>ThisIsALongText-|tag_software</tag>
<c_date>2014-11-12</c_date>
</set>
<set>
<type>type1</type>
<name>Patil</name>
<date>2015-12-10</date>
<tag>ThisIsALongText-|tag_human</tag>
<c_date>2015-04-12</c_date>
</set>
<set>
<type>type1</type>
<name>Patil</name>
<date>2015-03-21</date>
<tag>ThisIsALongText-|tag_machine</tag>
<c_date>2016-02-23</c_date>
</set>