Hi All,
My xml file is like this:
-
I want to add a new node (ok ) to where ID= 2
my xpath is: note/step[ID='2']/to/
final result should be like this in xml file:
Thanks
Darma
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 29, 2013, 6:46 AM
Regards,
Iftikar
Iftikar HussainPosted Aug 29, 2013, 7:24 AM
VulpesPosted Aug 29, 2013, 7:20 AM
But give it to Iftikar as he gave his correct answer first :)
darma tejaPosted Aug 29, 2013, 7:15 AM
It is working well now with both of you solutions.
Is there any possibility to select "This is correct answer." for both of your solutions?
Thanks
Darma
VulpesPosted Aug 29, 2013, 7:05 AM
darma tejaPosted Aug 29, 2013, 6:41 AM
Thanks for the reply.
I wanted to insert it in both nodes.
thanks,
Darma
Iftikar HussainPosted Aug 29, 2013, 5:25 AM
Regards,
Iftikar
darma tejaPosted Aug 29, 2013, 4:37 AM
Thanks allot!
It works well. If i have more than i node, It does not work for me.
Here is the sample xml file:
darma tejaPosted Aug 29, 2013, 4:35 AM
Thanks allot!
It works fine. If i have two same id's, It does not work for me.
here is sample xml file:
VulpesPosted Aug 28, 2013, 5:04 PM
Iftikar HussainPosted Aug 28, 2013, 11:34 AM
Try like this
Regards,
Iftikar