Quantcast
Channel: How to handle multiple XML versions gracefully - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How to handle multiple XML versions gracefully

$
0
0

I have a scenario where I am starting with an Order Message. Over time the message could be modified (into different versions). What would be a good approach to see what version the message is and pass it to the appropriate processing mechanism? I could look at the version (Will always have a header with version info, etc) and then use a case to send it to the proper parser (Currently using LINQ to XML). However, that doesn't seem very elegant. Especially if we have like 10 versions we need to support.

Nothing pops out to me...just wanted to see how others would approach this.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>