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

Locate nodes in XML file

I have fixed my issue with reading the XML files. What I am needing now is to trim the datetime down to just MM dd yyyy hh:mm:ss and not bring the rest of it over when I insert into my Informix database. This is the XML info: …
0
votes
2 answers

Reading Child Nodes with XMLReader

I'm trying to write an XMLReader/SimpleXML hybrid function to read a very large (700MB) XML file. The XML is in this format: ABCDEF123 An Item Name
MikeK
  • 373
  • 1
  • 2
  • 16
0
votes
1 answer

Read External XML - XmlReader, XmlDocument, Serialization

I have to read an external XML file from a website. I am either going to use XMLReader, XMLDocument or Serialization. I need to read this external xml file and then send the values to C# object. Once I have it loaded I need to perform some…
mick
  • 139
  • 3
  • 16
0
votes
4 answers

XML Parsing - Unable to retrieve value of node

I'm trying to determine why it is that I can not get the value of a node within my XML file. I'm using the following PHP code to parse my XML file...
Brian Schroeter
  • 1,583
  • 5
  • 22
  • 41
0
votes
2 answers

How can I get XmlReader to read my XML data in C#

I am using the following Microsoft sample code to read XML: namespace ConsoleApplication1 { class Program { static void Main(string[] args) { StringBuilder output = new StringBuilder(); String…
Alan2
  • 23,493
  • 79
  • 256
  • 450
0
votes
0 answers

ExtJS XML Reader not loading data

My code is not showing any error, my php file is responding also(firebug reports that). But the grid is not showing any data. I was trying to get help from http://dev.sencha.com/deploy/ext-3.4.0/examples/feed-viewer/view.html but unable to…
Raza Ahmed
  • 2,661
  • 2
  • 35
  • 46
0
votes
3 answers

PHP XmlReader - Read error while parsing

To read XML files use: $XMLFile = new XMLReader(); if($XMLFile->open('file.xml') === TRUE){ while($XMLFile->read()) { //Do something } $XMLFile->close(); } If I will find in xml file sample…
Kuba
  • 147
  • 1
  • 3
  • 14
0
votes
4 answers

Not all code paths return a value C#?

This is my code: public String[] readXML(String filename) { XmlReader xmlReader = XmlReader.Create(@filename); List names = new List(); String[] keywords = null; while (xmlReader.Read()) { //Keep…
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
0
votes
2 answers

Trying to read xml from a file not ending with .xml

I am trying to read xml from a sport odds feed, but I can't get it to work. I am using xmlReader.Create(url), but all I get is a data at the root level is invalid-error. This is what the code look like: XmlReader reader =…
Axel
  • 68
  • 1
  • 7
0
votes
3 answers

How I can control a XML with XMLReader to fill a TreeView with Subtree Nodes?

hi i have problems with xml and the treeview control in C# Windows Forms. My Application: First I create a string out of a cmd command. This is a output in xml format. the final_output is my string for the XMLReader. string command =…
Tarasov
  • 3,625
  • 19
  • 68
  • 128
0
votes
1 answer

How to get text from the node in xml file, that contains text and child node?

I have a very big xml file. I read it using by xmlReader. I have problem when i reach to next line: Abasia<nemod>(-astasia) (hysterical)</nemod> How I can read all that content. I have to have next string at the end: "Abasia…
Bryuk
  • 3,295
  • 10
  • 45
  • 74
0
votes
3 answers

How to check if text node of xml file has a child node inside and get all data from them?

I have xml file. This is just piece of that file 1 2 Abandonment 3 Maltreatment 4 5 6 Abasia <nemod>(-astasia) (hysterical) </nemod> 7 …
Bryuk
  • 3,295
  • 10
  • 45
  • 74
0
votes
1 answer

Accessing the xml values from NSDictionary

I am using this xmlreader. Here is my code NSDictionary *xmlDict = [XMLReader dictionaryForXMLString:responseString error:&error1]; NSLog(@"XMLData: %@",xmlDict); I can save and log the data and it looks like this. response = { Gpn0 = …
aVC
  • 2,254
  • 2
  • 24
  • 46
0
votes
2 answers

PHP XMLReader giving incorrect values

I'm parsing a 500MB XML file for ebay's full range of "GetCategorySpecifics" and storing in the local database. The node "MinValues" is inserting incorrectly for some rows, but not all. If this node doesn't exist in the structure, then the value…
David D
  • 1,269
  • 17
  • 22
0
votes
1 answer

Deserialize XML fails to connect class to elements

I'm trying to deserialize an XML document from the web into associated classes for a Windows Phone 7 environment. I've used an async to grab the document, it loads into an XmlReader as far as I can tell with the debugger, and a deserializer reports…
KurtA
  • 1