XmlDocumnet Save Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



I am receiving the following error when I try and save an XmlDocument which I
have modified using XPathNavigator.

Error: The process cannot access the file
'R:\Active\peCostCalculator\20.560.2.0\Source\Modules\MaterialView\bin\Debug\MaterialView.exe.config' because it is being used by another process.

I am able update other files using the same code. Prior to updating I read
the values into a grid using XmlTextReader. Do I need to "release" the file
after reading it or something??
.



Relevant Pages

  • Re: How to insert a CDATA section using XPathNavigator ?
    ... sequence ']]>' is disallowed inside a CDATA section according to the XML 1.0 ... When you modify a XmlDocument via the XPathNavigator interface you ... sample code the navigators are positioned on the respective ...
    (microsoft.public.dotnet.xml)
  • Re: How to insert a CDATA section using XPathNavigator ?
    ... In my sample code, ... sequence ']]>' is disallowed inside a CDATA section according to the XML 1.0 ... When you modify a XmlDocument via the XPathNavigator interface you ...
    (microsoft.public.dotnet.xml)
  • Re: How to insert a CDATA section using XPathNavigator ?
    ... When you modify a XmlDocument via the XPathNavigator interface you sign up ... One such difference is the lack of CDATA sections which are ... using (XmlWriter writer = nav.AppendChild()) { ...
    (microsoft.public.dotnet.xml)
  • Re: How to insert a CDATA section using XPathNavigator ?
    ... When you modify a XmlDocument via the XPathNavigator interface you sign up ... One such difference is the lack of CDATA sections which are ... using (XmlWriter writer = nav.AppendChild()) { ...
    (microsoft.public.dotnet.xml)
  • Re: How to insert a CDATA section using XPathNavigator ?
    ... When you modify a XmlDocument via the XPathNavigator interface you sign up ... One such difference is the lack of CDATA sections which are ... using (XmlWriter writer = nav.AppendChild()) { ...
    (microsoft.public.dotnet.xml)