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

Import invalid XML file (1.5G) into MySQL with unescaped ampersand

I can't import my big xml file (1,5g) into database. Then I use XMLReader->read() i have error where element have a ampersand. maybe you can help me where I convert invalid XML file to valid? I use tidy, xmlsoft, sed on Windows 7 but this command…
Mike
  • 1
  • 1
0
votes
1 answer

Null object reading from XML file

I am trying to read in a simple xml file but am having some issues. Here is the code to read it: XmlDocument doc = new XmlDocument(); doc.Load("C:/file.xsd"); XmlNode loc = doc.SelectSingleNode("/schema/annotation/appinfo"); …
john cs
  • 2,220
  • 5
  • 32
  • 50
0
votes
3 answers

Looping XML with element using xmlReader

Dim client As New WebClient() Dim xmlString As String = client.DownloadString("http://api.rovicorp.com/TVlistings/v9/listings/gridschedule/80000/info?locale=en-US&duration=220&includechannelimages=1&format=xml&apikey=" & api_TV) Dim counter…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
1 answer

Get XML Element from response

I have the following code: Using reader As XmlReader = XmlReader.Create(New StringReader(xmlString)) reader.ReadToFollowing("GridChannel") Dim Channel As String = reader.GetAttribute("Channel") Dim DisplayName As String =…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
3 answers

Reading an xml file 50 lines at a time

Currently trying to make a method to read in XML files at the moment 50 lines at a time this will be increased to allow larger files to be used in the program. At the moment i am trying to accomplish this with the following code. …
user2169674
  • 87
  • 2
  • 8
0
votes
5 answers

XML Reader in C#

With my limited C# programming experience I have been researching how to read in an XML file for the past 4 days with no luck...I need help. I know there is XMLReader, XDocument and something to do with LINQ that allows you to read in an XML file. I…
user2230423
  • 69
  • 1
  • 1
  • 5
0
votes
1 answer

Response.GetResponseStream() escapes double quotes

Response.GetResponseStream() is returning xml with escape characters Because of this XmlReader return {None}. Help please? HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url); req.Accept =…
Clark
  • 3
  • 5
0
votes
0 answers

JQGrid with xmlstring datatype, master detail, dynamic filter

UPDATED: Resolved, with an xmlreader like this: { id : "rowid", repeatitems : false, root : "response>claims>claim>units", row : "unit:has('claimId:contains('6002950')'):has('unitId:contains('6003606')')" } As it turns out, the solution was to move…
nenea
  • 127
  • 8
0
votes
2 answers

Which libxml2 API should I use for large files?

Our program currently uses the libxml2 DOM API (xmlReadFile) to load an entire file into memory. Unfortunately, this breaks down on "large" XML files, as the basic memory consumption of libxml2 DOM is about 4-5 times the base file size. It seems…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
0
votes
2 answers

How to work reliably with XmlReader

I'm using the XmlReader class, the forward-only reader. A method I'm calling moves the cursor as a side-effect. However, sometimes the method throws an exception, and leaves the cursor somewhere unexpected. How can I handle…
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
0
votes
1 answer

Is it possible to build a dom tree with C# XmlReader only?

I want to build a dom tree with XmlReader over any valid xml string without using class XmlDocument or class XDocument. And I got difficulty in determine whether the element is the child node of element . Because Element
mind1n
  • 1,196
  • 3
  • 15
  • 34
0
votes
2 answers

Read XML file while its being writen into it PHP

Is there a way to read a XML file even the file is broken? I'm trying to get an XML file while the file is being written into it and output it, but I'm getting an broken error since the root element is not closed because its in the middle of being…
believe me
  • 910
  • 1
  • 5
  • 24
0
votes
0 answers

XmlReader ArgumentException: Specified type 'System.Guid' is not supported

I am trying to read an xml with an XmlReader, but I receive an exception on something that I didn't expect. ArgumentException: Specified type 'System.Guid' is not supported. System.Xml.XmlReader.ValueAs (System.String text, System.Type type,…
Marnix
  • 6,384
  • 4
  • 43
  • 78
0
votes
1 answer

PHP language files in XML

so im making this website that has to have multiple languages working on it. I've poked around and came to the conclusion that i should use XML-files, one for each language. Witch makes sense to me, but here's my problem: I've made a XML-file…
CoBolt
  • 442
  • 2
  • 11
0
votes
2 answers

Are XmlMtomReader and XmlMtomWriter fully implemented in Mono project?

I'm working on a cross-platform solution currently. The solution uses XmlMtomReader and XmlMtomWriter from .NET framework 3.0. Now i need to know if these two classes (and all the nessasary infrastructure around them) are fully supported in Mono…
sh0gged
  • 509
  • 2
  • 7
  • 17