I'm using the XQDT (XQuery Development Tools) plugin for Eclipse, and I'd like to view query results in Eclipse's graphical XML editor rather than in the console. Does anyone know of a way to redirect output in this way?
A:
Just do the following:
- create a empty XML file anywhere in the workspace or file system;
- Open Menu "Run" -> "Run configuration...";
- select an existing XQuery Run config or create a new one;
- In the right part of the window (run config details), select "common";
- At "Standard Input and Output", check "File:"
- select the empty xml file created in step one, using the button "Workspace" or "file system";
- Push "Close", or "Run" if you want to start the xquery immediately.
That's it - eclipse will write the XQuery output directly into the XML file. Just open the file after the XQuery run has finished.
tohuwawohu
2010-05-16 19:44:29