Hi,
I am using the following code to open an XML document:
Dim datadoc As New System.Xml.XmlDataDocument
datadoc.DataSet.ReadXml(New StreamReader(sFileName), XmlReadMode.InferSchema)
When I am through using the XML file I want to rename it to another folder
but it's locked. How do i close it? XmlDataDocument does not have a Close
method.
Thanks,
John
Jim Rand - 04 Jun 2007 16:14 GMT
No but the StreamReader does as in
StreamReader sr = new StreamReader(sFileName);
XmlDataDocument dataDoc = new XmlDataDocument();
dataDoc.ReadXml(sr, XmlReadMode.InferSchema);
sr.Close();
> Hi,
> I am using the following code to open an XML document:
[quoted text clipped - 10 lines]
> Thanks,
> John
John Walker - 05 Jun 2007 16:54 GMT
Thanks Jim
> No but the StreamReader does as in
>
[quoted text clipped - 17 lines]
> > Thanks,
> > John