Sridhar

Sridhar

  • NA
  • 3
  • 0

HELP on Writing to a XML using C#

Jul 29 2006 6:01 AM
Hi
I have a XML file which I want to update. The XML code is as follows:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<WeeklyReport schemaLocation="WeeklyReportSchema.xsd">
  <!--The Name node corresponds to storage of all the data of a particular user-->
  <Name ID="XYZ">
    <Date>
      <TodaysDate></TodaysDate>
      <Assigned></Assigned>
      <Worked></Worked>
      <ResolvedwithinSLA></ResolvedwithinSLA>
      <Resolved></Resolved>
      <NotRelatedToAccess></NotRelatedToAccess>
    </Date>
  </Name>
  <Name ID="ABC">
    <Date>
      <TodaysDate></TodaysDate>
      <Assigned></Assigned>
      <Worked></Worked>
      <ResolvedwithinSLA></ResolvedwithinSLA>
      <Resolved></Resolved>
      <NotRelatedToAccess></NotRelatedToAccess>
    </Date>
  </Name>
  </WeeklyReport>


Now I have a Windows application with all the fields as on XML file. I have tried using XmlTextWriter but I was not successful. I want to search for the node Name and add a new
the Date block every day.
Now can any one help me how to go about it.

Answers (3)