» Home » XMLTextReader » Page 1
Can XmlTextReader tell the difference between <tag> and <tag />
by knockout-2.0 in Programming Languages

I am reading an XML file using an XMLTextReader. Is there a way to tell the difference between a start tag (like <tag>) and a self-terminating tag (like <tag />)

how to parse xml with XmlTextReader in c#
by Icyflash in C & C++ & C#

I'm a beginner in c#,i want to parse the follows xml use XmlTextReader as a example,then put the content
of xml to the stringbuilder,as" Novel+hardcover+1+Margatet+....+1+SqlServer".Which kind and warmhearted man can help me,thanks, i serach http://www.codeproject.com/KB/cs/xml_parsing.aspx ,

How to load xml from https using XmlTextReader
by zclin in Programming Languages

I am using System.Xml.XmlTextReader to read xml stream from a http location. Now I need support to read from a secure https site. How can I do this by providing user credentials in some way?

convert XmlReader to XmlTextReader
by Chennai in Programming Languages

How do you convert XmlReader to XmlTextReader?

Code Snippet:

XmlTextReader reader = XmlTextReader.Create(pomfile.FullName);

Here's the Build error I got:

Cannot implicitly convert type 'System.Xml.XmlReader' to 'System.Xml.XmlTextReader'. An

explicit conversion exists(are you missing a cast?).


Get child elements of XML with XmlTextReader
by Anderson in Programming Languages

I have following XML:

<Type>ENERTRONIC I 3-3 20kVA</Type>

C# XmlTextReader not reading all elements and attributes
by eferro in Programming Languages

I'm trying to read data from an xml file and display it in a text box, but it is only displaying the last element/attribute, in this case "Endurance". Here is my xml file

<?xml version="1.0" encoding="utf-8"?>
Name="Test" />
Age="19" />
Class="Necromancer" />

Lightweight Alternative to XmlTextReader.ReadElementContentAsBinHex?
by George in Programming Languages

I'm running into a problem with memory bloat using XmlTextReader.ReadElementContentAsBinHex. Let me first say that I'm not using hex by choice, but as a result of needing to interop with a legacy system.

int read;
var buffer = new byte[4096];
while((read = reader.ReadElementContentAsBinHex(buffer, 0, buffer.Length)) > 0)
stream.Write(buffer, 0, read);

C# Using XmlTextWriter, XmlTextReader with multiple elements
by textmate in Development

I use with C# 2008 Net Framework 3.5 the System.Xml Namespace. There are two functions XmlTextReader and XmlTextWriter which I use. The writing succeeds already, but I can't get SPECIFIC information back without reading the whole file. The file will be 5 GB+ size in the end, so I would like to directly call a section instead of reading each time the whole file to search a specific section or id

DIfference Between XMLReader.Create() and new XMLTextReader()
by MisterLilBig in Programming Languages

I like to learn difference between XMLReader.Create and new XMLTextReader() to read XML. Why would I choose one over another ? Performance issue ? I know XMLReader is an abstract type for XMLTextReader, at least that is what I read before but I saw some where people suggested using XMLReader.Create() methods rather than new XMLReader() instance.

Thank in advance...


Prevent XmlTextReader from expanding entities
by M0dusFRee in Programming Languages

I am trying to read a XML document without expanding the entities, do some manipulations to it, and re-save it with the unexpanded entities as they were initially.

When using the XDocument directly, it fails to load, throwing an exception tell me it has unexpanded entities:

XDocument doc = XDocument.Load(file); // <--- Exception
// ... do some manipulation to

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .