using ajax/javascrtipt, how to browse for a folder and get *.xml files in the given folder path.?? :?:

Recommended Answers

All 2 Replies

Do you want to browse the XML file from client PC and read it using JavaScript?

If yes, you can't do it .

You can load an XML file from server and read it using JavaScript.

Use XML DOM (Document Object Model) to read XML using JavaScript.

Also you can use XMLHttp object to read XML using JavaScript.

The following links will help you to provide an understanding on XML DOM with sample code.
http://www.w3schools.com/XML/xml_dom_advanced.asp
http://www.w3schools.com/XML/tryit.asp?filename=tryxml_dom_getelement

thanks for the info ramesh.. :)
i have an assignment.. i have to read an xml file from my local system, parse through it and find out the duplicate names and then list those..
any direction of how to do it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.