TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Olivier Muhring
1.5k
262
9.1k
Uppercase tag names in XML output
May 23 2018 5:17 AM
For a project I once created a web service which generates xml files, for each xml file I created a class, like this:
public
class
Tsjoeketjoek
{
[XmlAttribute]
public
string
Num;
[XmlAttribute]
public
string
Type;
[XmlAttribute]
public
string
Car;
[XmlAttribute]
public
string
Deel;
[XmlAttribute]
public
string
Resa;
[XmlAttribute]
public
string
Prest;
public
FootNote FootNote;
public
List<Station> Rit;
}
For comptability reasons the tag names need to be uppercase.
Now I know I can enforce the tagnames in the code itself, by actually naming each field, I am wondering if there is no better method. There a lot of classes I would have to do this manual change for..
For example, can't I write an extension for XmlSerializer so I can enforce uppercase tagnames that way?
Reply
Answers (
1
)
Stripe Payment gateway integration for windows wcf service.
log4Net web app call issue