On 06/29/2012 02:40 PM, Olivier Relot wrote:
>
> i'm using xxe-perso-5_3_0 and i need to open a File f on xxe from my own
> java project ;
> could you please tell me how i can do that?
>

--> If you have created and initialized an instance of 
com.xmlmind.xmleditapp.app.Application

You need to invoke the class returned by getOpenDocumentAction(). Example:

---
Application app;
...
OpenDocumentAction action = app.getOpenDocumentAction();
action.openDocument(FileUtil.fileToURL(f), /*readOnly*/ false);
---

References:

* 
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/kit/App.html#getOpenDocumentAction%28%29

* 
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/kit/OpenDocumentAction.html

* 
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/util/FileUtil.html#fileToURL%28java.io.File%29



--> If you have started XXE as an external process, simply launch (from 
your Java project):

path_to_xxe/xxe file_path

Simply make sure that option "Use a unique instance of XMLmind XML 
Editor" is turned on. See 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/generalOptions.html


 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to