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

  • Home
  • SEARCH
  • 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 3343372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:56:50+00:00 2026-05-18T00:56:50+00:00

I’m trying to solve one programming mystery (to me). I have searched with Google

  • 0

I’m trying to solve one programming mystery (to me). I have searched with Google but I have found nothing about the use of semicolon in the AttributeName property of XmlAttribute. I’m working with an application that serializes an object. When this object is serialized all the attributes has the same value as a postfix.

For example:

[XmlType(TypeName = "Foo", Namespace = Declarations.SchemaVersion), XmlRoot, Serializable]
public class Foo
{
    private string _Name;

    [XmlAttribute(AttributeName = "Name;", Form = XmlSchemaForm.Unqualified, DataType = "string", Namespace = Declarations.SchemaVersion)]
    public string Name
    {
        get
        {
            return this._Name;
        }
        set
        {
            this._Name = value;
        }
    }
}

Get serialize as:

<Foo Name_x003B_="John" />

My question is, where does this x003B came from (I have searched the code for a literal “x003B” but found nothing {the above is just an example, I’m working with a big code base}). Where can I change it? What is the purpose of the semicolon at the end of the AttributeName? Thanks!

  • 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-18T00:56:50+00:00Added an answer on May 18, 2026 at 12:56 am

    The XmlSerializer encodes characters such as semicolon by placing it in underscores with the hex value of the character inside so Name; becomes Name_0x003B_. If you put a question mark in there it would be Name_0x003F_.

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

Sidebar

Related Questions

In trying to solve the ajax back button problem I have found the Really
I have been trying to solve this Concurrent Programming exam exercise (in C#): Knowing
I'm desperately trying to solve this one. I have a bunch of files stored
I'm trying to solve the 3n+1 problem and I have a for loop that
I was trying to solve my XNA Font problem , when I found this
I have a problem I'm trying to solve involving interfaceing a C++ program with
I'm trying to solve a variant of the dot game with dynamic programming. The
I have an interesting problem here I've been trying to solve for the last
I'm trying to solve the problem of the second day but with no success
I have been trying to solve this problem for several weeks now and it

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.