Questions tagged [xmltextreader]

126 questions
0
votes
3 answers

Reading specific text from XML files

I have created a small XML tool which gives me count of specific XML tags from multiple XML files. The code for this is as follow: public void SearchMultipleTags() { if (txtSearchTag.Text != "") { …
Mayur Alaspure
  • 69
  • 1
  • 2
  • 11
0
votes
3 answers

Reading Multiple XML files

I have Created a small XML tool, to find the numbers of element present in Multiple XML files. This code gives the fine result for the elements which are must in XML files. But when it comes to specific elements, which may be present or not in XML…
Mayur Alaspure
  • 69
  • 1
  • 2
  • 11
0
votes
2 answers

XmlTextReader hangs up when reading a doctype element in a file generated by iPCU 3.6

Hi I using XmlTextReader to read policy files generated by the iPhone Configuration Utility 3.6 when the reader reaches the doctype element it will hang up for about 15-20 seconds. This is a huge problem for me because i need to read 60 files at a…
Josh Starrett
  • 149
  • 1
  • 10
0
votes
3 answers

I need to split apart a large XML file to multiple output xmls, using XmlTextReader

I need to take an XML file and create multiple output xml files from what could be thousands of repeating nodes of the input file. The source file "AnimalBatch.xml" looks like this:
Rick Bellows
  • 85
  • 2
  • 11
0
votes
3 answers

C# XMLReader Strange 17th position closed XMLReader bug

I have a ListView that has a bunch of stuff. Whatever is in the 17th spot always breaks (ObjectDisposedException "Cannot read from a closed TextReader"). 1 through 16 as well as 18 through 24 work fine. If I move x from 17th to 16th, it'll work…
xwiz
  • 11
  • 1
0
votes
1 answer

Iterating through xmltextreader

I have a xml in the following format. AAA
Geek
  • 3,187
  • 15
  • 70
  • 115
0
votes
2 answers

Having difficulty with using XmlTextReader to print out certain values inside certain elements to the command line from an external .xml file

I'm trying to store and print the value between tags of, atleast, the first element, but I can't "find", or "get to", the value of . (please explain your scenario more clearly...) I plan on taking the…
Gentoo
  • 47
  • 7
0
votes
1 answer

how to use XMLTextWriter to write XML node at a specified position

I have an xml file likes below. Title Content I want to write a new node after 'Content', I know how to use XMLDocument to do that, is there a way to use…
James
  • 2,570
  • 7
  • 34
  • 57
0
votes
3 answers

How do I get all the subnodes of a node with certain attribute?

I have an xml document that goes like this: Haburguesa 10 Papas Fritas
Trufa
  • 39,971
  • 43
  • 126
  • 190
0
votes
2 answers

How can I read in C# XML from another page while logged in to the site

I have logged in to the site with my webbrowser and whenever I try to call WebClient myWebClient = new WebClient(); string str = myWebClient.DownloadString("http://localhost/myxml.aspx"); Response.Write(str.ToString()); Or XmlTextReader reader =…
jpkeisala
  • 8,566
  • 7
  • 30
  • 39
0
votes
1 answer

Getting data from xml by attribute value C# using XmlTextReader

I have a file with the following content (myfile.xml). I have to get all content coming under (including product node) a product with id=1. q
Kuttan Sujith
  • 7,889
  • 18
  • 64
  • 95
0
votes
3 answers

XMLTextReader C#

some data. I have an xml file with some data like above. I want to get all data coming between and In to a string variable. There is some restriction to me, that is i should use only XMLTextReader for this…
Kuttan Sujith
  • 7,889
  • 18
  • 64
  • 95
0
votes
1 answer

Returning XmlTextReader object, can I call .Close()

I'm in a bind right now trying to find the source of a problem. Our exception handling is lacking, so I'm kind of guessing on where the error is coming from. Here's my question, if a method returns an XmlTextReader object, does that object become…
ganders
  • 7,285
  • 17
  • 66
  • 114
0
votes
1 answer

xml parsing error handling or how to put XMLTextReader's cursor back to start?

I've got a function api_request which takes API method as an argument, and returns XMLTextReader Shared Function api_request(method As String) As XmlTextReader request_text = method & ".xml" url = "https://api.vk.com/method/" & request_text &…
Konstantin Pereiaslov
  • 1,786
  • 1
  • 18
  • 26
0
votes
1 answer

xmlTextReader.ReadInnerXml() is pulling in my entire XML doc into one variable

I am creating XML index files to be read in a later step. I have variable length arrays, and I am writing them to one file. There is a problem, I think its inside the reader code. For some reason the TimeStamp and Long elements are read into arrays…
kevp
  • 377
  • 2
  • 7
  • 23
1 2 3
8
9