title: Javascript get all tags with the same name
body: <p>I have the following XML file:</p>
  
  <pre><code>  &lt;Section Id="1" Type="page" Caption="Message Details"&gt;
      &lt;Containers&gt;
        &lt;Form Id="General" Caption="General Details" Source="Request" Layout="Fixed"&gt;
          &lt;Controls&gt;
            &lt;Control Id="MessageType" Caption="Message Type" Source="Param[@Name = 'MessageType']" FieldName="Value" DataType="select" Width="150" CaptionWidth="120" ReadOnly="1" Mandatory="1" DefaultValue="Allert" Action="handleMessageTypeChange()" BreakAfter="0"&gt;
              &lt;Member Value="SMS" Caption="SMS"/&gt;
              &lt;Member Value="EMAIL" Caption="EMAIL"/&gt;
              &lt;Member Value="ATOS" Caption="ATOS"/&gt;
              &lt;Member Value="SELF SERVICE" Caption="SELF SERVICE"/&gt;
            &lt;/Control&gt;
            &lt;Control Id="Language" Caption="Language" Source="Param[@Name = 'Language']" FieldName="Value" DataType="string" Width="100" CaptionWidth="90" ReadOnly="1" BreakAfter="1"/&gt;
            &lt;Control Id="FirstName" Caption="First Name" Source="Param[@Name = 'FirstName']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" BreakAfter="1" DefaultValue="hello"/&gt;
            &lt;Control Id="LastName" Caption="Last Name" Source="Param[@Name = 'LastName']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" BreakAfter="1"/&gt;
            &lt;Control Id="IMTSI" Caption="IMTSI" Source="Param[@Name = 'IMTSI']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" BreakAfter="1" Mandatory="0"/&gt;
            &lt;Control Id="Mobile" Caption="Mobile" Source="Param[@Name = 'Mobile']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" BreakAfter="1" Mandatory="1"/&gt;
            &lt;Control Id="Email" Caption="Email" Source="Param[@Name = 'Email']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" BreakAfter="1" Mandatory="0"/&gt;
            &lt;Control Id="Subject" Caption="Subject" Source="Param[@Name = 'Subject']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" BreakAfter="1" MaxLen="40" Hidden="1"/&gt;
            &lt;Control Id="Content" Caption="Content" Source="Param[@Name = 'Content']" FieldName="Value" DataType="longstring" Width="350" CaptionWidth="120" Height="60" BreakAfter="1" MaxLen="50" Mandatory="1" SeparateBefore="1" SeparateAfter="1"/&gt;
            &lt;Control Id="Sender" Caption="Sender" Source="Param[@Name = 'Sender']" FieldName="Value" DataType="string" Width="350" CaptionWidth="120" ReadOnly="1" BreakAfter="1"/&gt;
            &lt;Control Id="Priority" Caption="Priority" Source="Param[@Name = 'Priority']" FieldName="Value" DataType="select" Width="350" CaptionWidth="120" BreakAfter="1" DefaultValue="LOW"&gt;
              &lt;Member Value="LOW" Caption="Low" Glyf="../../GUIGenerator_V2/assets/themes/Images/flag_blue.png"/&gt;
              &lt;Member Value="MED" Caption="Medium" Glyf="../../GUIGenerator_V2/assets/themes/Images/flag_yellow.png"/&gt;
              &lt;Member Value="HIGH" Caption="High" Glyf="../../GUIGenerator_V2/assets/themes/Images/flag_red.png"/&gt;
            &lt;/Control&gt;
          &lt;/Controls&gt;
        &lt;/Form&gt;
      &lt;/Containers&gt;
    &lt;/Section&gt;
  &lt;/Module&gt;
  </code></pre>
  
  <p>I'm trying to get all the "Control" tag on the button (with the Captions: Subject, Content, etc.) using JavaScript, how would I be able to do it?</p>