Questions tagged [xmltextreader]

126 questions
0
votes
3 answers

Nested If Statements Not Working

I just recently posted about trying to get an XMLTextReader to work, and I finally did. Unfortunately, now I cannot get it to take the data from the XML file because I am doing something wrong with my if statements. I need to have these if…
Jess
  • 121
  • 2
  • 2
  • 4
-1
votes
1 answer

read large file with XmlTextReader in C#

I am reading a large file with XmlTextReader, it takes hours to read and do some processing, during the reading and processing , what will happen if this file is changed or deleted from file server ?
Ishti
  • 325
  • 1
  • 7
  • 19
-1
votes
1 answer

Why does XmlTextReader fail on calling an unsupported Stream.Length?

I have an XmlTextReader, and I pass it in a System.Net.ConnectStream. If I enter the debugger, I can see that ConnectStream does not support the Length property and this throws a NotSupportedException. Now, I subclass Stream and pass in an instance…
sebf
  • 2,831
  • 5
  • 32
  • 50
-1
votes
1 answer

How to read previous XmlReader element

I've been working on a project where I need to get some information of a XML document, and insert on another XML document, but they are different files, and the new file must not exceed 400KB, and I'm trying to return the Read() method go back to…
-2
votes
1 answer

How to save XmlTextReader strings inside a variable or vector in C++/CLI?

I am currently working on a project in which I have to receive a XML file and sort one of the elements. Before actually getting to the sorting part, I have to parse the XML file, so I am using XmlTextReader, which is working well. However, I need to…
-2
votes
1 answer

Why would StreamReader.ReadLine do a better job of reading XML than XmlTextReader.Read?

I have this code which works fine from a Winforms app calling a Web API app (it successfully copies the XML file over to the server): public static string SendXMLFile(string xmlFilepath, string uri, int timeout) { HttpWebRequest request =…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1 2 3
8
9