Page 1 of 1

replacing a variable in XML file

Posted: Mon Sep 01, 2014 12:53 am
by yokaso
hi
i would like to replace a certain variable in XML file with an other, and wonder if there is any solution with oxygen to do that?

Re: replacing a variable in XML file

Posted: Mon Sep 01, 2014 11:39 am
by adrian
Hi,

If you're referring to a variable in an XSL file, Oxygen provides some specialized helpers for renaming
variables (and other components). Click/position the text caret in the editor on the variable name (or variable reference) to highlight it. When a variable (or other component) is highlighted, a light-bulb appears on the left stripe. You can either click the light bulb or use the Alt+1 shortcut to invoke the Quick Assist proposals. You can then use either Rename component in... (works on master files) or Rename component (Alt+Shift+R) (works only on current file).
If you only need to do this within the current file you can use directly the Rename component shortcut key, Alt+Shift+R.
Oxygen XML Editor - Quick Assist and Quick Fix Support

If you just need simple find/replace operations on text you can use the Find > Find/Replace (Ctrl+F) dialog.

Regards,
Adrian

Re: replacing a variable in XML file

Posted: Mon Sep 01, 2014 5:01 pm
by yokaso
thank you for your answer. but i am looking for changing variables in XML file.
and i should change that variables if a condition is verified .
NB: i am new in XML

Re: replacing a variable in XML file

Posted: Mon Sep 01, 2014 5:32 pm
by adrian
Hi,

There are no variables in XML, only in XSL. Maybe you're thinking of entities?
Could you please provide an example of what you call a "variable in an XML file"?

Regards,
Adrian