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

How to parse XML with unescaped ampersand

I have to read large (about 200MB) XML file, I'am using xmlreader with PHP. There is node URL with unescaped ampersand in it. Parsing always stops on first url NODE. I'm using encoding windows-1250 same as is specified in xml tag of XML file. Iam…
Petr Velký
  • 371
  • 2
  • 5
  • 16
0
votes
1 answer

Get type from xml QT 4.8 C++

I made this program where you have some kind of Data, which type is choosen by the user. User save his work, and in the xml save file i want to write what type of variable he used, so when i have to open saves my program allocates the right template…
user1709665
  • 142
  • 7
0
votes
1 answer

XML fragment with an ampersand

With a lot of help I worked out the following code: if (ofd.ShowDialog() == DialogResult.OK) { using (StreamReader reader = new StreamReader(ofd.FileName, Encoding.GetEncoding("ISO-8859-1"))) { XmlReaderSettings settings = new…
Martijn Burger
  • 7,315
  • 8
  • 54
  • 94
0
votes
1 answer

Change character encoding on a XML Fragment in C#

I have written the following to read an XML fragement from disk: string fileName = @"C:\test.txt"; XmlReaderSettings settings = new XmlReaderSettings(); settings.ConformanceLevel = ConformanceLevel.Fragment; using (XmlReader reader =…
Martijn Burger
  • 7,315
  • 8
  • 54
  • 94
0
votes
1 answer

Reading from Xml file and adding to list of list of strings

Trying to read from an XML file that I have on my pc. The function uses a string value to pass the static function. I want to each transaction, create a so called "node" I guess. I want to say Array of Arrays since I come from C++/Java background.…
0
votes
1 answer

How to use Slickgrid to render XML data?

We are using JQuery and JQuery UI and looking to rewrite a xml to dom table into a datastore based grid. In ExtJs, I can use Ext.data.reader.Xml along with a data Modal to map the returned data to the grid. I am trying to do the same, but using a…
Natkeeran
  • 1,719
  • 6
  • 29
  • 52
0
votes
2 answers

PHP working with XMLReader with HUGE data source

I need to parse a ginormous data source (14.9M lines of XML, 1.7GB). I am having problems working with XMLReader to do this. I haven't before needed anything but SimpleXML, but given that I really can't load this whopper into memory I will need to…
MG55114
  • 27
  • 1
  • 5
0
votes
1 answer

Add datatable or dataset to an existing XML node

I have an XML like this;
DHA123 A002 2012-07-05T15:00:00+05:30
0
votes
0 answers

XmlReader.ReadElementContentAsString() isn't reading line breaks

I am working on a calculator that lets you save your session as an XML file. This is what my example session looks like:
Brandon Miller
  • 2,247
  • 8
  • 36
  • 54
0
votes
1 answer

Parsing XML using XMLReader + SimpleXML in PHP

Recently I got from here about how to parse large xml files using of XMLReader and SimpleXML in PHP. I tried to adapt the code of above mentioned tutorial into my php procedure like this: $xml_url =…
bofanda
  • 10,386
  • 8
  • 34
  • 57
0
votes
1 answer

How to check if a node has child elements

I'm writing an xml reader where a class structure will represent the data from an xml file.. for an example: Gambardella, Matthew XML Developer's Guide Computer
Imesh Chandrasiri
  • 5,558
  • 15
  • 60
  • 103
0
votes
1 answer

XmlReader.create() return none after second time

I got a strange situation when I call a function and pass her a Stream object for the use of an creation XmlReader object. First time this function works well, but if I call her another time and give her the same stream later on code, I got some…
JavaSa
  • 5,813
  • 16
  • 71
  • 121
0
votes
1 answer

XmlReader retrieve two different sets of elements in one read through of the document

I'm trying to read through a 2.5GB XML file and delete certain nodes, lets say, the "CD" elements and the "DVD" elements. Currently I'm doing something like this: using (XmlReader reader = XmlReader.Create("file.xml")) { …
ajbeaven
  • 9,265
  • 13
  • 76
  • 121
0
votes
1 answer

Join xml files with XmlReader

I am joining 3 xml logfiles with LINQ to XML by id, but when my logfiles become too big, LINQ to XML doesn't work anymore, so i have to use XmlReader. But now I am asking myself how to do this? Should i loop through every document for each id, or is…
Kristof
  • 557
  • 6
  • 14
0
votes
1 answer

Nesting XmlReader

I have a need to search through an xml file, find a data set, examine a second xml file, check if there is related data, and then move on to the next data set. Here's some sample code to illustrate: XmlReader XmlDoc1 =…
user416527