Skip to Content
0
Former Member
Jun 02, 2005 at 04:31 AM

Accessing node elements at runtime

12 Views

At design time I create parent node FieldDescriptors (Singleton, cardinality - 0:n), and child nodes Test10, Test20. Bothe child nodes are singleton, and cardinality 0:n.

Get nullpointer exception when executing the following code. Please advise what is wrong with the code.

IWDNode node = wdContext.nodeFieldDescriptors().getChildNode("Test10",IWDNode.LEAD_SELECTION);

String test = node.getCurrentElement().getAttributeAsText("element1");

Thanks !