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 8418999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:29:10+00:00 2026-06-10T02:29:10+00:00

I am using XmlSerializer to generate XML output for my class. Is it possible

  • 0

I am using XmlSerializer to generate XML output for my class. Is it possible to create a custom XMLSerializer that have all the xml nodes in lower case? I do not want to add attributes to every field field from my class to specify the node in lower case.

Thank you,
Angela

  • 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-06-10T02:29:11+00:00Added an answer on June 10, 2026 at 2:29 am

    It depends how much work you want to do. Adding attributes is the easiest option, but you say you don’t want to do that. You could name the classes with lower-case names, but that is a horrible way of approaching this, IMO.

    You can tell XmlSerializer what to do at runtime, by using XmlAttributeOverrides – but then you need to use reflection to tell it about all the members you want to tweak, but note: if you do this, you must cache and re-use such a serializer; if you create a new XmlSerializer via XmlAttributeOverrides every time, you will leak assemblies memory.

    There’s an example on MSDN

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

Sidebar

Related Questions

What is a better approach to serialize custom class: using XMLSerializer or BinarryFormatter and
I am using the XmlSerializer and have the following property in a class public
I wanted to generate the following using XmlSerializer : <atom:link href=http://dallas.example.com/rss.xml rel=self type=application/rss+xml />
Possible Duplicate: XmlSerializer: remove unnecessary xsi and xsd namespaces I'm generating some XML using
I am using this link to generate XML file using DOM. It says that
I'm using XmlSerializer to deserialize Xml achives. But I found the class xsd.exe generated
I am using c# and the XmlSerialiser class to create xml from DTO Objects.
I'm using XmlSerializer to serialize my object model to XML. At the moment just
I'm getting an odd result when serializing a DateTime field using XmlSerializer. I have
Is there a way to deserialize a XML stream using XmlSerializer by applying a

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.