473,467 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Errror Help: character ' ', hexadecimal value 0x2 is illegal in xml documents

raj
what does this error mean? how can i fix this?

thanks,

raj
Mar 26 '07 #1
2 7741
* raj wrote in microsoft.public.dotnet.xml:
>what does this error mean? how can i fix this?
You have an octet 0x02 or perhaps a character reference  in the
document. This is not allowed in XML 1.0; the latter is allowed in XML
1.1 but your version of the .NET framework probably does not support
that, and most likely you have not declared this version either. In
other words, your document includes random binary data and is there-
fore not an XML document. You have to correct the document before you
can successfully parse it.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Mar 26 '07 #2
raj wrote:
what does this error mean? how can i fix this?
The XML 1.0 specification does not allow that character in an XML 1.0
document at all. The only way to include it and have it successfully
parsed with the .NET framework is to use a character reference in the
form of , then with .NET framework 1.1 and XmlTextReader that
character reference is allowed, with .NET framework 2.0 and XmlReader
such a character reference is allowed only with XmlReaderSettings and
the CheckCharacters property set to false.
Note however that while .NET allows such character references with those
settings the XML 1.0 specification disallows them so even if the .NET
XML parser accepts your XML a different XML parser might reject it.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Mar 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

76
by: Zenobia | last post by:
How do I display character 151 (long hyphen) in XHTML (utf-8) ? Is there another character that will substitute? The W3C validation parser, http://validator.w3.org, tells me that this character...
1
by: User Axes Dean Eyed | last post by:
The following statement does not yield what I expect it to: var txtNode = document.createTextNode("ESI−"); txtNode holds a value of "ESI−" instead of "ESI-" where '-' is the...
9
by: David | last post by:
Hi, I have the following script given to me by a very helpful person on this group. It basically copies the contents of Textbox 1 on my form to Textbox 2 with some adjustments. What I now...
2
by: Yosh | last post by:
Morning! I am developing an winform application in c#. I have an app.config file that contains an entry with a Url address assigned to it. When I run my application I get the following error: ...
7
by: Drew Berkemeyer | last post by:
I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a few other parameters. This web service works fine...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
0
by: Mike McGranahan | last post by:
Hello, My wsdl.exe-generated, ASP.NET 1.1 web service pulls data from the local Exchange 2003 store using CDO 2000 and returns it to consumers. CDO occasionally returns (char)1, (char)5, and...
5
by: Just D | last post by:
All, Any valuable idea about subj: "The '%' character, hexadecimal value 0x25" ? I tried to google, but nothing interesting was found. Is it IIS settings problem, user side problem or...
2
by: jerrysc99 | last post by:
I'm getting the following error below. System.Configuration.ConfigurationException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 8, position 68....
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.