By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,660 Members | 1,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,660 IT Pros & Developers. It's quick & easy.

Mapping XML structures easily ?

P: n/a
Hi,

I've two XML structures having same attributes, elements, etc. but just
different namespaces. They are serialized into two identical C# structures.
How I can map one structure into another ? Direct cast doesn't work and
right now I've to map each structure member one-by-one. Is there any easier
way ?

Thanks in advance and regards

Navin
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Perhaps you could put the serialized xml though an XSL transformation
before you deserialize it into your second type? That should give you
a "cast" in a roundabout kind of way.

Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - blog

Nov 22 '05 #2

P: n/a
Sounds like a good idea...any simple example would be highly appreciated!

<jd********@ea.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Perhaps you could put the serialized xml though an XSL transformation
before you deserialize it into your second type? That should give you
a "cast" in a roundabout kind of way.

Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - blog

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.