Questions tagged [xmltextreader]

126 questions
1
vote
0 answers

C# XmlTextReader, Ignoring DTD Processing

I have this method: public void XmlTagCounter(string xmlPath, List elements, List elemCount) { XmlTextReader reader = new XmlTextReader(xmlPath); try { while (reader.Read()) { if (reader.NodeType…
jomsk1e
  • 3,585
  • 7
  • 34
  • 59
0
votes
1 answer

Reading xml with partial whitespace

I've a xml file with partial whitespace; 1 2 3 //whitespace missing 1 2 3
John Doe
  • 9,843
  • 13
  • 42
  • 73
0
votes
0 answers

handling bad xml with xmltextreader

I am using multiple methods to parse xml, with xpathnavigator, regex expressions etc some of the types of parsing. However I strip the xml entries first either using string.split or xpathnavigator and xmldocument.load etc; but found that if there is…
vbNewbie
  • 3,291
  • 15
  • 71
  • 155
0
votes
1 answer

Xdocument.Load is failing

I am unable to load Xdocument.Load I am unable to load Xdocument.LoadI am unable to load Xdocument.LoadI am unable to load Xdocument.LoadI am unable to load Xdocument.LoadI am unable to load Xdocument.LoadI am unable to load Xdocument.LoadI am…
SmilingLily
  • 333
  • 1
  • 5
  • 17
0
votes
1 answer

How to override XmlTextReader character entity expansion?

Using the .Net framework, I need to read XML entity text as raw string values (character entities not expanded) for use in a comparison / merge function. As far as I can tell, there's no way of directly turning off character entity expansion. …
Dave G
  • 115
  • 1
  • 11
0
votes
1 answer

VB.net XMLTextReader IO Exception: "File in use by another process"

I'm hoping you can help me out. I'm trying to build a program updater based around downloading XML files from a server. The idea being that the servers XML file contains the current version number and installer location. the updater either gets…
0
votes
2 answers

Load XmlTextReader from a file in my web app via a method in another DLL

I am creating a method in a DLL that is going to be dropped into a web application. The web application has a folder with a XML file in it: /files/myfile.xml My dll has to reference that DLL, but I can't hard code the path to the file obviously. How…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
0
votes
2 answers

Root element is missing error for .net XmlDocument.load()

Greetings all. I'm getting an asp.net error "Root element is missing" when I load the results of a REST request into an XmlDocument. The same REST request looks fine and returns valid results when I execute it using the Firefox addon "RESTTEST". …
NorthK
  • 153
  • 1
  • 2
  • 8
0
votes
1 answer

I am unable to deserialize the following XML file

I am trying to deserialize an XML file. The relevant part of the XML is below. The XML File:
0
votes
1 answer

How to read XML string from DB into XMLTextReader?

Ihave an issue with reading an XML string into XMLTextReader.. I'm querying the a DB and getting a DataSet back. From that DataSet, I'm reading a specific row and column (which contains XML strings) and using that XML string value to pass to an…
Joe S
  • 13
  • 1
  • 5
0
votes
0 answers

XmlTextReader An error occurred while parsing EntityName c#

I am trying to read an XML file containing special characters: 1 0 0 100 0 1 Using the below logic, where stream is coming from an xml file: using…
Elias Ghali
  • 823
  • 1
  • 13
  • 29
0
votes
1 answer

What is the correct format for ReadContentAsDateTime XMLTextReader

I am using XMLTextReader to extract information out of a xml file. Now I want to use ReadContentAsDateTime but it always throughs an exception. I already tried 2005.9.26, 2005/9/26 and 2005, 9, 26. Does somebody know the correct format for this?
theknut
  • 2,533
  • 5
  • 26
  • 41
0
votes
1 answer

C# XML parse with xmlTextReader

I couldn't do a lot while trying to read XML. I'm a beginner in C#, I want to parse the following XML using a XmlTextReader as an example. I take p1 and p2, but I couldn't reach p24 and p26. How should I proceed? This is my XML:
matematikistan
  • 127
  • 1
  • 6
0
votes
1 answer

Large XML reading using XMLTextReader is very slow

I like to think that my problem is not very unique, given size of my XML file is just 3MB. There are close to 60 thousand records in XML. I am having hard time reducing the processing the processing time. Currently it is taking close to 7-8 minutes…
user2918107
  • 103
  • 8
0
votes
1 answer

Real Time Sensor Data Processing in .NET

I get sensor data(with XML format) from URL, and i must process(get some parts of XML - filter) this XML data, then must save to db. But, i dont know which "processing way" to use. I know a few solution. One of these is XMLTextReader. XMlTextReader…
1 2 3
8 9