xml document not refreshed when attribute value changed
Posted: Sat Feb 20, 2010 3:39 pm
Hi,
we are using oxygen 11.1
i am trying to change the attribute value through api. the value has been changed,when i query back the attribute value.
but in oxygen editor the corresponding attribute value is not showing the correct value, as well as the the save button is not enable..
if i try the following workaround. then it is working.
edit the xml content and save the document. at this point it is showing the correct value.
following is my code
we are using oxygen 11.1
i am trying to change the attribute value through api. the value has been changed,when i query back the attribute value.
but in oxygen editor the corresponding attribute value is not showing the correct value, as well as the the save button is not enable..
if i try the following workaround. then it is working.
edit the xml content and save the document. at this point it is showing the correct value.
following is my code
Code: Select all
AuthorNode[] node= authorAccess.getDocumentController().findNodesByXPath("//article",true, true, true);
AuthorElement element = (AuthorElement)node[0];
element.setAttribute("article-type", new AttrValue(userSelectedType));