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

XmlReader Exception handling - IEnumerable

I am reading a very large XML file, which I have to read as a stream, like so: public IEnumerable GetStuff() { foreach(var gzipStream in GetGZips()) { using (var reader = XmlReader.Create(gzipStream, new XmlReaderSettings{…
Dave Bish
  • 19,263
  • 7
  • 46
  • 63
4
votes
3 answers

Can anyone explain to me what is the meaning of the boolean parameter of the System.Xml.XmlDictionaryWriter.WriteNode(XmlReader, bool) method?

According to MSDN: defattr Type: System.Boolean If true, copy the default attributes from the XmlReader; otherwise false.If true, use default attributes; otherwise false. And my question is what does the author mean by this?
mark
  • 59,016
  • 79
  • 296
  • 580
4
votes
3 answers

using php xmlreader to get data from xml to mysql

I am using php and xmlreader to retreive data from an xml file and insert into a mysql table. I chose xmlreader because the files supplied me are 500mb. I am new to all of this and am at a sticking point getting the data to insert properly into…
Mike
  • 41
  • 1
  • 2
4
votes
2 answers

Xml reader skipping values

I have the following XML snippet- - 1985 18 16 Yes -
Ebikeneser
  • 2,582
  • 13
  • 57
  • 111
4
votes
1 answer

LibGDX read XML file

I have this XML file :
MisterX_Dev
  • 429
  • 2
  • 7
  • 16
4
votes
1 answer

What's the path to the document cursor?

I'm using System.Xml.XmlTextReader the forward-only reader. When debugging, at any time I can check the properties LineNumber and LinePosition to see the line number and column number of the cursor. Is there any way I can see any kind of "path" to…
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
4
votes
2 answers

Parse XML with PHP and XMLReader

I've been trying to parse a very large XML file with PHP and XMLReader, but can't seem to get the results I am looking for. Basically, I'm searching a ton of information, and if a contains a certain zipcode, I'd like to return that bit of XML, or…
user1129107
  • 205
  • 1
  • 8
  • 16
4
votes
1 answer

XmlReader does not take doctype notation into regards

First time writing on these forums. Been reading them for long though. I have a problem, trying to validate an Xml file with XmlReader in .Net. Xml file:
Eric
  • 245
  • 1
  • 9
4
votes
1 answer

XSD validation with XML reader, collecting validation errors. (C#)

I'm currently fighting with using an XMLSerializer to execute XSD validation and collect the validation errors in the files. The task is the validation of the file, based on custom XSD-s containing valueset information, presence information etc. My…
user1771386
  • 73
  • 1
  • 8
4
votes
1 answer

What does Visual Studio 2010 debugger do with the XmlException in XmlReader.Read?

I run this sample application: class Program { static void Main() { var reader = System.Xml.XmlReader.Create(@"C:\nonXml.txt"); while (reader.Read()) { } System.Console.WriteLine("Ok"); …
foka
  • 804
  • 9
  • 27
4
votes
1 answer

How to read xml sax parser in android

I have this code, this is working, but problem is in this example.xml file,In this file single value single line is accepted. (value>Northland College, 1411 Ellis Avenue, Ashland, Wisconsin) If we gave multiple line it will take only a…
Kumar
  • 623
  • 3
  • 6
  • 16
4
votes
2 answers

XmlReader and IDisposable

Perhaps my eyes are fooling me, but how is it that in .NET 2.0, XmlReader implements Dispose but does not have a Dispose() method? I see it has Dispose(bool), but not a parameterless overload.
Nick
3
votes
1 answer

PHP xmlreader 404 error

I'm running an XMLREADER to pull in various XML files and then parse it with SimpleXML in PHP5. This is working but for a particular file (around 4.5MB file size) it results in Warning: XMLReader::open(http://www.blah.com/adm/feeds/The XML…
bertster
  • 383
  • 1
  • 3
  • 17
3
votes
3 answers

How can I select a xml element based on some attribute and write it back complete in another file

I'm reading an svg/xml with XmlTextReader and I want to write just some of its elements back in a new svg/xml file
Raphael Isidro
  • 932
  • 10
  • 19
3
votes
3 answers

How I can iterate and get all values in a NSDictionary?

I have a problem. I am using the XMLReader class to get a NSDictionary and everything works fine. But i can't to get the values of the atributes of my productData element. Specifically, I have the following NSDictionary: { response = { products =…
leoromerbric
  • 33
  • 1
  • 1
  • 3