BUG: XmlTextReader Decodes URLs Before Downloading Resources Resulting in Unpredictable Behavior (317610)
The information in this article applies to:
- Microsoft XML Classes (included with the .NET Framework 1.0)
- Microsoft XML Classes (included with the .NET Framework 1.1)
This article was previously published under Q317610 This article refers to the following Microsoft .NET
Framework Class Library namespace:
- System.Collections.Specialized
SYMPTOMS When you use the XmlTextReader object to download resource files, the reader decodes the URL for
the resources. If the URL contains any special characters (for example,
ampersands or percent signs), this may result in unpredictable behavior.
RESOLUTION To resolve the problem, follow these steps:
- Use the XmlUrlResolver and the System.IO.Stream classes to map the specified URL.
- Create an XmlTextReader object and pass the Stream as the parameter.
For an example, see the "More Information" section of this
article. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbbug kbnofix KB317610 |
---|
|