Check if an element is allowed without inserting
Posted: Thu Dec 06, 2012 6:13 pm
Hi,
We have some buttons which aim to insert new elements in the XML tree.
We would like to "setEnable" those buttons only when it is allowed by the schema.
In fact we would like to test an xml fragment at the caret position in order to know if we can insert it or not (true/false). But without having to add it in the XML tree (this step will depend on if the user will click or not)
Thank you,
Vincent.
We have some buttons which aim to insert new elements in the XML tree.
We would like to "setEnable" those buttons only when it is allowed by the schema.
In fact we would like to test an xml fragment at the caret position in order to know if we can insert it or not (true/false). But without having to add it in the XML tree (this step will depend on if the user will click or not)
Thank you,
Vincent.