Jump to content

XPATH


Guest jpt

Recommended Posts

Hi W3S - Love your site and courses. Maybe you could help me with this though. In the XPATH tutorial, athttp://www.w3schools.com/xpath/xpath_examples.asp.. I'm trying to do the example where it does the xmlDoc.load("books.xml")The xml file will not load in the browser for me. It has to be something with the path or location. I tried setting the books.xml up in in an IIS directory using //localhost... etc. but it can't seem to find it. I'm running the html code from the IIS location also. Can you tell me exactly where the books.xml should be location when running cold like this? thanks,jt

Link to comment
Share on other sites

Does it work in your browser when you try link such as http://www.w3schools.com/xpath/tryit.asp?f...t_cdnodes_first from the example page?If so, it should work on your local box. Try leaving IIS out of the picture to start with. Just place the .htm and .xml files in the same folder - any folder - and double-click the .htm file to open it in your browser. Does it work?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...