Questions tagged [xmlreader]

xmlreader - Represents a reader that provides fast, noncached, forward-only access to XML data.

Represents a reader that provides fast, noncached, forward-only access to XML data.

More

1120 questions
0
votes
1 answer

XMLReader Skips Every Alternate Node

I have this very simple peace of code and a simple XML file . I am reading each node and writing it to another file , And really strage that xml reader skips every alternate record node . It writes 1 and 3 rd node from following file ! Any help…
Pit Digger
  • 9,618
  • 23
  • 78
  • 122
0
votes
4 answers

XmlReader skipping some blocks

I have an xml structured like this: Header \-Timeseries (1-N) \- Period (1-N) \- Interval (1-N) This is an approximate example:
ipavlic
  • 4,906
  • 10
  • 40
  • 77
0
votes
1 answer

XMLReader not reading in all elements requested

So I have this XML ABC123 title test.com
Franco
  • 2,846
  • 7
  • 35
  • 54
0
votes
2 answers

Additional character added to XML when grabbed using CURL

I'm grabbing some XML from a URL using CURL in PHP $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $base_xml = curl_exec($ch); curl_close($ch); When I view the link in a browser, the XML…
Franco
  • 2,846
  • 7
  • 35
  • 54
0
votes
2 answers

Save XMLData to List with XMLReader

I got a problem with the XMLReader in C#. i got this Code: private void countryXMLReader () { XmlTextReader reader = new XmlTextReader("expenses.xml"); List twentyFour = new List(); while…
user1414157
  • 53
  • 2
  • 10
0
votes
2 answers

Pulling data from an XML file into a TreeView item (C#)

I'm having a bit of an issue. I'm trying to parse an XML file and put it's contents into a TreeView. I got everything pretty much working, but I'm having issues with one thing. Here is an example of the XML file:
septor
  • 3
  • 2
0
votes
1 answer

XML string - select only certain nodes

I tried looking this up on here but couldnt find a proper answer. I have a XML string which has a bunch of nodes. I want to extract only a couple of nodes from this string and append it with a new root element and return it. I know how to do this…
Vijay V
  • 389
  • 5
  • 11
  • 23
0
votes
1 answer

How to show whole content of an Xml file in a textbox?

i need to display whole content of an xml file in a textbox,so a user can see it and change it,and then i have to update the xml file.The user knows xml and how it works,i just need to display whole content of an xml file in a textbox on the page…
Erdem Gundogdu
  • 277
  • 1
  • 8
  • 21
0
votes
1 answer

Can I close all loaded XML files on disk without forcing garbage collection?

I have coded a UI import tool that will scan a bunch of folders, locate all XML files in them, load them to do a first basic check on validity, then try to import them in the DB (which causes another even bigger bunch of validity checks to…
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

Parse huge XML - remember last successfully processed node to set offset on next run

I have some pretty big xml files which used for scheduled import. I use cron to parse them. The problem is that processing takes too much time and always exceeds the php "max_execution_time". Since I use XMLReader, that allows to read xml "line by…
ymakux
  • 3,415
  • 1
  • 34
  • 43
0
votes
1 answer

illegal characters in path while reading xml(.rtdl)files in C# windows forms

In windows forms, I have some labels in the panel and I would like to display the static values from the listBox1 where it loads collection of (.rtdl) files from a folder. When user selects each then I want to display the corresponding attribute…
linguini
  • 1,939
  • 5
  • 49
  • 79
0
votes
3 answers

how to get xml .text using c#

here is my xml file browser http://yahoo.com apple this xml…
Edison
  • 79
  • 1
  • 13
0
votes
1 answer

XML reader flooding listBox excessively

As a beginner at c#, i am running against a wall with the following: Basically, the object of this is to try to read information about classes-formatted in xml, into a table (listbox)... This is not happenning. So, Im trying to read xml and append…
Maciej Cygan
  • 5,351
  • 5
  • 38
  • 72
0
votes
2 answers

xmlReader in PHP- Problems getting it to work right

I have a pretty large file that I need to parse in php, so I'm using xmlReader. I've just started playing around with xml and am having some problems.... Here is how the xml is structured...