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

Load SyndicationFeed and async/await

Can we read RSS by async/await? XmlReader reader = XmlReader.Create("http://localhost/feeds/serializedFeed.xml"); SyndicationFeed feed = SyndicationFeed.Load(reader); Any clue?
NoWar
  • 36,338
  • 80
  • 323
  • 498
4
votes
1 answer

Parse XHTML5 into XDocument

I need to parse XHTML5 files into XDocument instances. My files will always be well-formed XML, so I want to avoid HtmlAgilityPack due to its permissiveness of malformed XHTML. The XDocument.Load method works for simple cases, but breaks when the…
Douglas
  • 53,759
  • 13
  • 140
  • 188
4
votes
6 answers

Problem reading files greater than 1GB with XMLReader

Is there a maximum file size the XMLReader can handle? I'm trying to process an XML feed about 3GB large. There are certainly no PHP errors as the script runs fine and successfully loads to the database after it's been run. The script also runs fine…
4
votes
1 answer

Questions before writing own RSS reader for iPad

This is not new topic, one about iPhone ( iPhone RSS Reader ) My purpose is to get some latest and useful info before my implementation for RSS reader in iPad.( same with iPhone , right ? only GUI difference ?) Apple already provides TopSongs as…
Forrest
  • 122,703
  • 20
  • 73
  • 107
4
votes
1 answer

XML Validation with XML-Reader in PHP

I've got errors during validation of a generated XML string. I loaded the XML-String with XML-Reader and assigned the XSD-File for validation. There are object IDs and urls to validate against a pattern of allowed characters. I think the IDs and…
Ditte Berlin
  • 115
  • 1
  • 8
4
votes
2 answers

Can't set settings on XmlTextReader?

I need to set the MaxCharactersFromEntities on the XmlTextReader, this is my code so far : xmlDocument = new XmlDocument(); xmlTextReader = new XmlTextReader(fileInfo.FullName); xmlTextReader.Settings = new…
Banshee
  • 15,376
  • 38
  • 128
  • 219
4
votes
4 answers

Is XMLReader a SAX parser, a DOM parser, or neither?

I am testing various methods to read (possibly large, with very frequent reads) XML configuration files in PHP. No writing is ever needed. I have two successful implementations, one using SimpleXML (which I know is a DOM parser) and one using…
Nicole
  • 32,841
  • 11
  • 75
  • 101
4
votes
3 answers

How to display a large XML file (>21MB) in a tree view quickly

I need to display a large XML file (>21MB) in a tree view control in a C# Windows Form application. I have written the code which is working for small XML files but when i am trying to open a BIG XML file (>1 MB), its taking too much of time. Can…
4
votes
2 answers

How to parse an XML node with a colon tag using PHP

I am trying to fetch the value of the following nodes from [this URL (takes quite some time to load)][1]. The elements I'm interested in are: title, g:price and g:gtin The XML starts like this:
user3305327
  • 897
  • 4
  • 18
  • 34
4
votes
3 answers

How to read xml string ignoring header?

I want to read a xml string ignoring the header and the comments. To ignore the comments it's simples and I found a solution here. But I'm not finding any solution to ignore the header. Let me give an example: Consider this xml:
Iúri dos Anjos
  • 371
  • 4
  • 20
4
votes
1 answer

Deserialize Xml Using XmlReader and Class from xsd.exe

OK I have hit a snag trying to learn XmlSerializer while going through some tutorials. I have followed all the recommended steps but my program is not returning anything, or is returning null. I created an XML file as follows:
waltmagic
  • 631
  • 2
  • 9
  • 22
4
votes
2 answers

How to set FEATURE_SECURE_PROCESSING in XMLReaderFactory?

I am using Piccolo jar and creating XML reader using XMLReaderFactory. I need to set the secure processing feature and hence i did this way, xmlReader =…
Srikanth Sridhar
  • 2,317
  • 7
  • 30
  • 50
4
votes
2 answers

VB.Net XMLdocument memory management

Dim docu As New XmlDocument() docu.load("C:\bigfile.xml") Dim tempNode As XmlNode tempNode = docu.SelectSingleNode("/header/type") someArray(someIndex) = tempNode.innerText ...do something more... I am using XmlDocument() to load a huge XML…
klados
  • 706
  • 11
  • 33
4
votes
1 answer

What's the Difference Between `ReadString` Vs `ReadContentAsString` in XmlReader Class?

I noticed in some open source code, the usage of System.Xml.XmlReader.ReadString() to parse Xml. But when I tried to use it in a console app just to check it out (I'm curious girl by nature) I didn't get any intellisense when I press . against an…
Barb C. Goldstein
  • 454
  • 1
  • 3
  • 13
4
votes
1 answer

How do I read XML in F#?

I wonder what reading XML with XmlReader would look like in a idiomatic functional style. Namely how XmlReader as a stateful entity is supposed to be treated. Is there a good example?
Trident D'Gao
  • 18,973
  • 19
  • 95
  • 159