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
-1
votes
1 answer

Can't convert reader.ReadString() to string

Language C# in Forms. I'm trying to change a label to some xml data that I retrieved, but it I get the error that it can't convert it to a string. It's confusing since im reading it as a string? I already tried it out in a console project, it works…
-1
votes
3 answers

C# XmlReader - shorter function

I've write function that read my XML file. Can i write it more universal and shorter ? My function: XmlTextReader reader = new XmlTextReader ("../../database.xml"); reader.ReadStartElement("eshop"); while (reader.Read ()) { if…
Gregory
  • 11
  • 5
-1
votes
1 answer

How i can check sex types (M or F) when read xml file

good night. At my solution i have an code that allow me write 5 useful informations about user, like: name, sex, age, weight and height. When was implemented solution to check if sex was M or F i used these code if (radioButton1.Checked) …
Vitor Ferreira
  • 163
  • 1
  • 3
  • 11
-1
votes
6 answers

server error executing a large file

I have created a script which reads an XML file and adds it to the database. I am using XML Reader for this. The problem is that my XML contains 500,000 products in it. This causes my page to time out. is there a way for me to achieve this? My code…
Julian
  • 781
  • 1
  • 11
  • 32
-1
votes
2 answers

Which XML reading object will be suitable for recusrive xml investigation?

What is the suggested way to investigate XML recursively? XMLReader / XMLDocument/XMLTextReader /other option ? I'm a little bit confused why we have so much ways to read XML. Important Note: I have a constraint which is the Xml reading object…
JavaSa
  • 5,813
  • 16
  • 71
  • 121
-1
votes
1 answer

how to get data from xml with attribute in PHP?

I have a XML file with following schema:
Omid Nazifi
  • 5,235
  • 8
  • 30
  • 56
-1
votes
2 answers

Parsing a large XML file to multiple output xmls, using XmlReader - getting every other element

I need to take a very large XML file and create multiple output xml files from what could be thousands of repeating nodes of the input file. There is no whitespace in the source file "AnimalBatch.xml" which looks like this:
Rick Bellows
  • 85
  • 2
  • 11
-1
votes
1 answer

XMLReader shows invalid xml, how to get the reason of invalid xml?

I am getting xml data from the url but XMLReader says xml format is invalid. Can i get any clue about the xml format issue? I am not expert in XML standard but data seems to be okay with tag wise. $url = "http://xyz"; $xml =…
P K
  • 9,972
  • 12
  • 53
  • 99
-1
votes
1 answer

Inserting XML document into SQL column using linq

I have a column in one of my SQL tables that is of type XML. I want to insert an entire XML file into one of the cells of this column from the back-end using linq. There are a few similar questions to this, but none of them have been much help to…
Nick Nicolini
  • 129
  • 1
  • 3
  • 14
-1
votes
3 answers

XmlReader DTD Validation Error on an Attribute

I am trying to use XmlReader to parse a file and set each element's attributes to variables using reader.GetAttribute("atrribute_name"), but the elements may or may not actually have that attribute present, so some elements give me an error...I…
Stephen Belanger
  • 6,251
  • 11
  • 45
  • 49
-1
votes
1 answer

Xml Reader Read Tags

I have to read xml file. I did it but i had a problem. I have xml like this - - NT-7 1 something
Zyn
  • 69
  • 1
  • 9
-2
votes
1 answer

How to save XmlTextReader strings inside a variable or vector in C++/CLI?

I am currently working on a project in which I have to receive a XML file and sort one of the elements. Before actually getting to the sorting part, I have to parse the XML file, so I am using XmlTextReader, which is working well. However, I need to…
-2
votes
2 answers

What is the fastest way to go through a XML file in C#?

I have a program that goes through thousands of files and has to check if they have the correct xml-format. The problem is that it takes ages to complete, and I think that's because of the type of xml reader I use. In the Method below are 3…
baltermia
  • 1,151
  • 1
  • 11
  • 26
-2
votes
2 answers

XmlReader creates empty string C#

I am using StringReader to read an xml stream and then I want to read that stream as XML to Serialize and Desiarilize it. Although it was working fine for some reason my XmlReader variable returns null. The XML as I see is the same as before. My…
rippergr
  • 182
  • 2
  • 20
-2
votes
1 answer

XML reader not reading properly

I am trying to use a xml reader to read an url which holds an xml. I am getting an error saying that the strings are null public void readEyeData() { XmlTextReader reader = new XmlTextReader(ExamInfo.eyeURL); …
user8370201
  • 31
  • 1
  • 6
1 2 3
74
75