I have the following xml file and need to be able to retrieve some data based on user input, how to go about it if I need to implement with javascript?
For instance, if the user wants to retrieve all the documents that belong to the ENGLISH department.
TIA,
<documents>
<document>
<id>A1</id>
<docType>
DOC</docType>
<department>ENGLICH</department>
</document>
<document>
<id>T1</id>
<docType>DOC</docType>
<department>BUSINESS</department>
</document>
<document>
<document>
<id>P1</id>
<docType>DOC</docType>
<department>ECONOMY</department>
</document>
<document>
<id>A2</id>
<docType>PDF</docType>
<department>ENGLISH</department>
</document>
<document>
<id>A2</id>
<docType>PDF</docType>
<department>BUSINESS</department>
</document>
<document>
<id>A2</id>
<docType>PDF</docType>
<department>ECONOMY</department>
</document>
<document>
<id>A3</id>
<docType>TXT</docType>
<department>ENGLISH</department>
</document>
</documents>