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
Hakan Axheim
NA
201
32.4k
Serialize an XML file
Mar 4 2021 2:41 PM
Hi,
Need some help with an application that I am working with. It's a windows service that is an integration between two different systems. I am listening for events and when an event occur I receive an XML document.
I wan't to serialize that XML document into a C# class with DataContracts.
I have a problem with serializing that XML document because the XML document consists of a XML tag with name object.
<object>
<id>1</id>
<name>NorthernLights</name>
</object>
public
class
object
{
[DataMember(IsRequired =
true
)]
public
Guid Id {
get
;
set
; }
[DataMember(IsRequired=
false
)]
public
string
name {
get
;
set
; }
}
I cannot create a class with name object so I wonder how to solve this?
I cannot change the XML document.
Reply
Answers (
2
)
ISUESS with CORS
asp.net core or asp.net core with angular?