cancel
Showing results for 
Search instead for 
Did you mean: 

setting value at perticular index of the node

Former Member
0 Kudos

How to set value for context attribute of a node at perticular index.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

try this code

wdContext.node<node>().getElementAt(i).setAttributeValue("attName","attvalue");

Regards,

Sunitha

Former Member
0 Kudos

Hi,

try with this

wdContext.node<Value node name>().get<>ElementAt(<index of the element>).set<Attribute name>("");

before using the above statement there should be element exist in that particular index.

example if you dn't have any elements trying to get the zero index element gives nullpointer exception.

hope you got !

Regards,

ramesh

Edited by: Ramesh Babu V on Oct 7, 2008 5:09 PM