Dimitre Novatchev 的 XPath 可视化工具帮助
我想尝试一下看起来非常酷的工具。我已经从 http://www.huttar.net 获取了 FF 版本/dimitre/XPV/TopXML-XPV.html。
我在 FireFox 中打开 XPathMain.htm,浏览到提供的 test1.xml
文件,单击“处理文件”,XPath 窗口中使用默认的 //*
。在FF中,我得到了这个:
[例外...“访问受限 URI 被拒绝”代码:“1012”nsresult: “0x805303f4(NS_ERROR_DOM_BAD_URI)” 地点: “文件:///Users/doug/Dev/XPV-FF/XPathMain.htm 线:43"]
我也在 Safari 中打开了它,按照上述操作,当我单击“处理文件”时,什么也没发生。
一旦我让它工作,我期望看到什么?我想我会看到大窗口中突出显示选定节点的 xml 文件吗?
我使用的是 OS X 10.6.6 和 FF 3.5.16。
I want to try what looks like a really cool tool. I've dl'd the FF version from http://www.huttar.net/dimitre/XPV/TopXML-XPV.html.
I open XPathMain.htm in FireFox, Browse to the provided test1.xml
file, click Process File, with the default //*
in the XPath window. In FF, I get this:
[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 the above, and nothing happened, when I clicked Process File.
Once I get it working, what am I expecting to see? I assume I will see the xml file in the big window with selected nodes highlighted?
I'm on OS X 10.6.6 and FF 3.5.16. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也遇到了这个错误,经过一番尝试和错误后,我通过将 .xml 文件放在与 XPathMain.htm 相同的目录中解决了该问题。选择“处理文件”按钮后,它立即在下部窗口中呈现。
将 authors.xml 文件移到
XPV-FF/
之外会生成相同的错误。也许这就是同源策略类型安全?I experienced this error also and after a bit of trial and error, I resolved the problem by placing my .xml file in the same directory as XPathMain.htm. It then immediately rendered in the lower window after selecting the Process File button.
Moving the authors.xml file outside the
XPV-FF/
generates the same error. Perhaps this is the same origin policy type security?我不确定可能出现什么问题 - 我无法重现所报告的问题。
刚刚下载并安装了 FF 4,打开 file:///C :/Temp/XPV-FF/XPathMain.htm
,然后指定:
C:\Temp\XPV-FF\authors.xml
XPV 按预期工作。
请尝试使用 XPV 附带的文件
authors.xml
,该文件与 XPV 起始页位于同一文件夹中。如果您可以使用此文件,这绝对意味着具有报告问题的文件存在权限问题。I am not sure what could be an issue-- I cannot reproduce the reported problem.
Just downloaded and installed FF 4, opened file:///C:/Temp/XPV-FF/XPathMain.htm
and then specified:
C:\Temp\XPV-FF\authors.xml
The XPV works as expected.
Please, try to work with the file
authors.xml
that comes with the XPV and is in the same folder as the XPV starting page. If you can work with this file, this definitely means that there is a permission problem with the file that has the reported issue.