Click here to Skip to main content
15,916,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i have xml file like this

XML
<Item>
    <ID>1</ID>
    <ItemNo>100</ItemNo>
    <ItemName>Galaxsy Asc</ItemName>  
  </Item>

and another xml file like below
XML
<Item>    
    <Id>2</Id>
    <No>2</No>  
    <Qty>3</Qty>
    <ItemId>1</ItemId>


i want to take
XML
<Qty>3</Qty>
and add in in the first xml file to be like
XML
<Item>
    <ID>1</ID>
    <ItemNo>100</ItemNo>
    <ItemName>Galaxsy Asc</ItemName> 
    <Qty>3</Qty> 
  </Item>


according to ItemId.
i have written a code but extracting the value of Qty itself "3" not the whole node .

can any one helps me in this please

thanks
Posted

1 solution

 
Share this answer
 
Comments
NNos2012 7-Feb-13 6:03am    
the link you attach is about reading node value , as the result there is "Google Pacman" , but in want to have the node itself "<name>Google Pacman" to add it in another xml file not reading it.
thanks
manognya kota 7-Feb-13 6:29am    
then you can try using importnode.

see the link,
http://blog.project-sierra.de/archives/1050

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900