By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,419 Members | 1,371 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,419 IT Pros & Developers. It's quick & easy.

About XMLReader - urgent

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"C# newbie" <rs****@otxresearch.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
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;
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

Nov 15 '05 #2

P: n/a
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,

"C# newbie" <rs****@otxresearch.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
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

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.