cancel
Showing results for 
Search instead for 
Did you mean: 

access a node's attribute's information

Former Member
0 Kudos

Hello All,

I want to access the a node's attribute's information. I am passing the node as a parameter to a method which is an aanother DC. How do I get this inf ?

Regards

Mrinalini

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Mrinalini,

It is simple, use the following code to do so

Iterator iter = wdContext.node<NODE NAME>().getNodeInfo().iterateAttributes();

IWDAttributeInfo attrInfo = null;

while(iter.hasNext()) {

attrInfo = (IWDAttributeInfo)iter.next();

attrInfo.getName(); // To check with attribute name

attrInfo.getDataType().getName(); // To check with attribute type

}

Regards

Mohammad Bohra

Answers (0)