Getting specific node values of xml using javascript

For the below xml , how do i get the the specific values using javascript. For ex : Value of num-chords in D3410

<?xml version="1.0" ?> 
  <product-info>
  <!--  II and III -->
  <D3410 desc="xx" product-type="Gas" num-chords="1" flow-profile-corr="true" diag-func-end-ver="624" reg-def="D3410.xml" /> 
</model-info>


Source: xml

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.