SchemaManagerFilter.filterAttributeValues(...) element text
Posted: Fri May 28, 2010 8:06 pm
I have created an implementation of SchemaManagerFilter and am specifically interested in the filterAttributeValues method for suggesting attribute values for content completion.
I have created a basic filter and have it installed into a Document Type in oXygen and its working well. However I would now like to make my suggestions based on the existing text content of the element.
How can I get the text of the element that the attribute is attached to? I can get the element, but cannot see how to get the text!
I am using -
ContextElement element = context.getParentElement();
But how can I retrieve the text of that element?
Thanks Adam.
I have created a basic filter and have it installed into a Document Type in oXygen and its working well. However I would now like to make my suggestions based on the existing text content of the element.
How can I get the text of the element that the attribute is attached to? I can get the element, but cannot see how to get the text!
I am using -
ContextElement element = context.getParentElement();
But how can I retrieve the text of that element?
Thanks Adam.