Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting attributes of a node dynamically

I was trying to get the attributes of a value node dynamically. I'v used the code below.

But I didnt get the attributes. I am getting nullpointer exception.

can anybody tell me what is wrong with my code?

Thanks in advance...

final IWDNodeInfo tabNode = wdContext.nodeName().getNodeInfo();

final IStructure structure = tabNode.getStructureType();

int NoOfFlds = 0;

if (null != structure)

NoOfFlds = structure.getNumberOfFields();


for (final Iterator i = tabNode.iterateAttributes(); i.hasNext(); )


for(int count=0;count<NoOfFlds;count++)


String fieldName = tabNode.getStructureType().getField(count).getName();



Former Member
Not what you were looking for? View more on this topic or Ask a question