Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Subject - How to get a nodeValue using APP
Background- I am using ufe elements which contains DIVISION REFRENCE,now I want to fetch the value of this ufe elements which actually contains the value of division refrence.
//APP source edit
var currentNode = formatting.currentXMLNode;
application.alert(currentNode.nodeValue);
But it is throwing null value
Hi Romesh
What exactly are you looking for?
The documentation says this about the Node object:
"The attributes nodeName , nodeValue and attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType (e.g., nodeValue for an Element or attributes for a Comment ), this returns null ."
In your example, currentNode will be an Element, so you will probably need to find the appropriate child of currentNode and get the nodeValue of that.
Hope this helps
Simon