XPath Visualizer Help Dimitre Novatchev XPath

I want to try something like a really cool tool. I got the FF version from http://www.huttar.net/dimitre/XPV/TopXML-XPV.html .

I open XPathMain.htm in FireFox, go to the provided test1.xml file, click the Process File, by default //* in the XPath window. In FF, I get the following:

[Exception ... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "File: ///Users/doug/Dev/XPV-FF/XPathMain.htm Line: 43 "]

I also opened it in Safari, followed it, and nothing happened when I clicked Process File.

As soon as I get his work, what do I expect to see? I assume that I will see the xml file in a large window with selected nodes?

I'm on OS X 10.6.6 and FF 3.5.16. Thanks.

+1
source share
2 answers

I also experienced this error, and after several trial and error, I solved the problem by placing my .xml file in the same directory as XPathMain.htm . Then it is immediately displayed in the bottom window after selecting the "Process file" button.

Moving the authors.xml file outside of XPV-FF/ creates the same error. Perhaps this is the same security type of origin policy?

+1
source

I am not sure what could be the problem. I can not reproduce the reported problem .

Just downloaded and installed FF 4, open the file: /// C: /Temp/XPV-FF/XPathMain.htm

and then specify:

C: \ Temp \ XPV-FF \ authors.xml

XPV is working as expected .

Please try to work with the authors.xml file that comes with XPV and is located in the same folder as the XPV start page. If you can work with this file, it definitely means that there is a problem with the resolution of the file with the reported problem.

0
source

Source: https://habr.com/ru/post/917957/


All Articles