Link to home
Create AccountLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

xmldocument, asp.net

<Auctions>
  <Auction>
    <FirstName>adsfasd</FirstName>
    <LastName>Yuxcad</LastName>    
    <ID>IiY+D4SIrRpXtEUUu0uy0j1G0LdUJ9bWPj6+ZvO24yE2szPHUFXMfYXirGmWC7asdfasdfsdaO</ID>
    <Status>Pending</Status>
    <Condition>OLD</Condition>
    <Manufacturer>Rickasdfasdy</Manufacturer>
    <CurrencyType>USD</CurrencyType>
    <Bid>
     
    </Bid>
  </Auction>
  <Auction>
    <FirstName>adsfasdadfasdf</FirstName>
    <LastName>Yusdf</LastName>    
    <ID>IiY+D4SIrRpXtEUUu0uy0j1G0LdUJ9bWPj6+ZvO24yE2szPHUFXMfYXirGmWC7aO</ID>
    <Status>Pending</Status>
    <Condition>OLD</Condition>
    <Manufacturer>Rickasdfy</Manufacturer>
    <CurrencyType>USD</CurrencyType>
    <Bid>
         
   </Bid>
  </Auction>
</Auctions>

I have below xml format. What I would like to do is:

Read/Find the ID = "IiY+D4SIrRpXtEUUu0uy0j1G0LdUJ9bWPj6+ZvO24yE2szPHUFXMfYXirGmWC7aO"
if isFound Add record within the <Bid></Bid>

like below

<Bid>
     <Log>
      <price>100</price>
      <createdDateTime>1:00pm</createdDateTime>
      <createdBy>Me</createdBy>
     </Log>
</Bid>
 

How can I do that by using XMLDocument Object in c#?
ASKER CERTIFIED SOLUTION
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account