Skip to Content
Former Member
Oct 03, 2014 at 11:45 AM

Adding an Element to a sub node


I have a Context that consists of a node (foodAndBevServingSizeInfo), three additional attributes, and a sub node (householdServingSize) which has a single attribute. Please see below image.

My problem is I struggle to set the value of the "value" attribute of the "householdServingSize" sub node.

Can you please guide me on how to achive it?

My code below does not seem to work:

I'm getting this error:

while trying to invoke the method of an object returned from$IFoodAndBevServingSizeInfoElement.node(java.lang.String)

Thanks in advance



10.png (9.3 kB)
11.png (10.9 kB)