Re: XMLTextReader reading too many characters
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Wed, 08 Aug 2007 17:22:28 +0200
JohnB wrote:
I don't know for certain if it was your intention, but the tone of your message is hostile. I am not wasting your time. I had presumed that you had the knowledge of how to delete a tag from an XML document, though perhaps I over estimated your abilities. Maybe a Microsoft MVP XML status isn't indicative of being capable of editing an XML document. Here again is the XML document sample with the offending tag removed.
If you claim there is a problem with XmlTextReader and an allegedly well-formed XML document but then provide an XML sample that is not well-formed then it does not help that I edit the document. You need to provide a sample that allows us to reproduce the problem. I am not able to guess how your sample looks that allegedly has the problem.
With the sample you have no provided I have no problems to read it with XmlReader or XmlTextReader, it parses through the sample without giving the error you claim it produces.
Simple test code is
using (XmlTextReader xmlTextReader = new XmlTextReader(@"test2007080702.xml"))
{
while (xmlTextReader.Read())
{
Console.WriteLine("{0}: {1}.", xmlTextReader.NodeType, xmlTextReader.Name);
}
}
Tested with .NET 2.0.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.
- Follow-Ups:
- Re: XMLTextReader reading too many characters
- From: JohnB
- Re: XMLTextReader reading too many characters
- References:
- XMLTextReader reading too many characters
- From: JohnB
- Re: XMLTextReader reading too many characters
- From: Martin Honnen
- Re: XMLTextReader reading too many characters
- From: JohnB
- Re: XMLTextReader reading too many characters
- From: Martin Honnen
- Re: XMLTextReader reading too many characters
- From: JohnB
- Re: XMLTextReader reading too many characters
- From: Martin Honnen
- Re: XMLTextReader reading too many characters
- From: JohnB
- Re: XMLTextReader reading too many characters
- From: Martin Honnen
- Re: XMLTextReader reading too many characters
- From: JohnB
- Re: XMLTextReader reading too many characters
- From: Martin Honnen
- Re: XMLTextReader reading too many characters
- From: JohnB
- XMLTextReader reading too many characters
- Prev by Date: Re: XMLTextReader reading too many characters
- Next by Date: Re: XMLTextReader reading too many characters
- Previous by thread: Re: XMLTextReader reading too many characters
- Next by thread: Re: XMLTextReader reading too many characters
- Index(es):
Relevant Pages
|