XML : Reading a XML file using Javascript

I have a xml file that looks like that:

  <ProductsXML>      <Product>         <Name>BLA</Name>      </Product>      <Product>         <Name>KKK</Name>      </Product>      <Product>         <Name>SSS</Name>     </Product>      <Product>         <Name>AAA</Name>     </Product>         <Product>         <Name>CBA</Name>      </Product>      <Product>         <Name>ABC</Name>     </Product>    

I'd like to have a function using JavaScript to check if a Product named: KKK is exists in the file.

Could you please help?

Thanks,

No comments:

Post a Comment