Relative Path to XML
782573Dec 3 2010 — edited Dec 5 2010I am using WC 11g, w/ Jdeveloper 11.1.1.3.0
I have installed a small bit of javascript that is going to retreive some XML and display it. I need to pull the XML from the same server as the webcenter application is deployed using a "get:XML" command in the javascript.
My question is in making sure I define the relative path correctly. Let's say I deploy my application on the server named "wc1.mysite.com:8887/app/faces/index.jspx.
and I put the xml on that server, in relation to the root, in a folder as follows: oracle/data/index.xml
I believe my relative path needs to be getXML("oracle/data/index.xml"); but that is not showing the data.
Am I missing something? When the application is deployed, is it deploying from the /faces directory and thus, do I need to escape teh /faces directory as follows:
getXML("../oracle/data/index.xml");
Any insight would be great. Thanks!
Pat