on 2007 Jul 20 7:16 AM
Hi,
I m Having two nodes under a Context. node1 having att1 attribute and node2 having att2 attribute. and att1 is having some value say 'xyz'. i need to pass this 'xyz' to att2. dat means att2 = 'xyz'.
how to pass the value of att1 to att2
thanks in advance....
Request clarification before answering.
You can simply do it by set_attribute of node2, att2. The code will be:
node2->set_attribute( exporting
name = 'att2' value = 'xyz' ).
Why do you need such a binding? If both nodes are in the same context, you can get your value directly from node1 right? Why do you want it to be transfered to node2?
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.