On 06/04/2012 02:14 PM, Olivier Relot wrote:
>
> i'm using the XMLmind XML Editor Professional Edition 5.2.0 and i need
> to work with the document which is opened without saving it ;
> could you please return to me the path of the document or a way to find it?
>

Sorry but I'm not sure to have really understood your question.



--> In a command written in Java:

java.net.URL url = docView.getDocument().getSourceURL();



--> In a macro-command, please reference the %d or the %D 
macro-variable. Example:

<command name="alert" parameter="%D"/>



References:

* http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command.html

* 
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/view/DocumentView.html#getDocument()

* 
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xml/doc/Node.html#getSourceURL()

* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro.html

* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro_vars.html

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

Reply via email to