473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

About XMLReader - urgent

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
2 1028

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: xmlguy | last post by:
I believe this should be pretty elementary, but for some reason I cannot seem to think of how to write the an XML file from an incoming XML file. Basically this is what I do: Input: ...
2
by: xmlguy | last post by:
Cant seem to solve this problem I need to be able to re-use XmlReader and XPathDocument for an XSLT Transform. Basically I have defined following interfaces: Class Render (Common and...
0
by: Matthew Heironimus | last post by:
According to the XML 1.0 (Third Edition) W3C Recommendation (http://www.w3.org/TR/2004/REC-xml-20040204/#sec-line-ends) all #xD, #xA, and #xD#xA character combinations should be converted to a...
1
by: Matthew Heironimus | last post by:
According to the XML 1.0 (Third Edition) W3C Recommendation (http://www.w3.org/TR/2004/REC-xml-20040204/#sec-line-ends) all #xD, #xA, and #xD#xA character combinations should be converted to a single...
1
by: dongxm | last post by:
XslTransform xslt = new XslTransform(); xslt.Load(myXmlReader) the myXmlReader is a XmlReader,but i have String of xsl file's content... how to do,String convert XmlReader? thanks
0
by: Jen | last post by:
My main question: "How can I get a TextReader or Stream object from an existing XmlReader?". Read on for more: I have an existing XmlReader. Let's call it reader1. I'm creating another reader,...
1
by: randy1200 | last post by:
The following is straight out of the msdn, except where I put in if (reader.Name == "wx") What I'm trying to do is print the word Inner along with the tag name and value for any tag that's a...
4
by: SteveT | last post by:
I am trying to create a dataset from an XML file. When calling myDataSet.ReadXml("sample.xml") the code produces an exception error. The XML file has many strings that identify pnp ids on a...
5
by: heday60 | last post by:
I've got this application that watches a directory for XML's and then parses them into a DB. It then moves them based on if the XML was succesful or a bad XML... foreach(FileInfo file in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.