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

Accessing node elements at runtime


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 !