Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:59:50+00:00 2026-05-29T06:59:50+00:00

I have this problem.. I’m receiving data from a client..Using a socket connection. But

  • 0

I have this problem.. I’m receiving data from a client..Using a socket connection. But this is not important. All the data is stored in an XML file using the XDocument object.
Sometimes when calling the XDocument.Save(filestream) and passing to it data with particular characters or symbols, I get an Exception like (invalid Hexadecimal character), it means that the XML file could not have some special characters ?
If so where can I find a list of this special characters that could generate such Exceptions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:59:51+00:00Added an answer on May 29, 2026 at 6:59 am

    Characters in the range [0x0-0x1F] are called control characters and excluding 0x9, 0xA, 0xD they cannot be used in XML.

    Here’s a quote from the XML specification:

    [Definition: A parsed entity contains text, a sequence of characters,
    which may represent markup or character data.] [Definition: A
    character is an atomic unit of text as specified by ISO/IEC 10646:2000
    [ISO/IEC 10646]. Legal characters are tab, carriage return, line feed,
    and the legal characters of Unicode and ISO/IEC 10646. The versions of
    these standards cited in A.1 Normative References were current at the
    time this document was prepared. New characters may be added to these
    standards by amendments or new editions. Consequently, XML processors
    must accept any character in the range specified for Char. ]

    Character Range

    Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] |
    [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character,
    excluding the surrogate blocks, FFFE, and FFFF. */

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem and I'm trying to solve it using jsfiddle but I'm
i have this problem: ms-access could not delete and i found a potential solution
I have this problem. Session does not work when I use with $_POST. If
i have this problem: starting from an empty list (0 elements) i want check
I have this problem: I am choosing a file from JFileChooser and if i
i have this problem: i need to remove the disabled attibute from the siblings
I have this problem, I load a page using JQuery ajax, now within that
I have this problem where I'm merging changes up into my integration branch but
I have this problem. I first connect(log) to SQL Server using SQL Management Studio
I have this problem. I read with BufferedReader text from one system file, this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.