About XMLReader - urgent

  • Thread starter Thread starter C# newbie
  • Start date Start date
C

C# newbie

Hi,

1 - Can I use XMLReader to find some data into an xml file and write or
modify some data meantime?

2 - How can I get to know (during run time) the size of xml file I'm working
with ?

Thanks
NewBie
 
C# newbie said:
Hi,

1 - Can I use XMLReader to find some data into an xml file and write or
modify some data meantime?

Generally, no. If you need to do that use a full DOM instead, which is
read/write.
2 - How can I get to know (during run time) the size of xml file I'm working
with ?

FileInfo fi = new FileInfo(ThePathToTheDocument);
long documentSize = fi.Length;
 
Hi,

it is always adviceable to use XMLdocument if you do lot of manipulation
with the XML file and when it is sequential reading xmlreader are good.

Nirosh,
 
Back
Top