c# - How to create an XML document from xpath -
I need to convert my domain object to an XML document for a third party data exchange.
I have a mapping document with the location of the data from my domain and xpath where this data exports to the XML document.
What I'm going to do is create an engine that reads this mapping file, data of my domain object and the creation of proper XML document.
My current difficulty is while taking xpaths to create, I need to make sure that the XML sequence is placed in the correct order.
How to approach this approach?
** I am trying to avoid bringing classes representing XML documents in my code base. In this way we can add a new export to the project again with compiling.
I'm going to give some suggestions which is a bit different from what you are asking, because I'm excited It is a little load and when I first started using LINQ from XML, it was a small revolution of happiness within me.
Here's a benefit that if you ever decide that you want to sort differently, then there may be slight code changes, you just need Linux (Jason, SQL, etc.) ) Need to find the library (many of which are, and things like SQL have been provided by Microsoft) and make very little code changes.
Check out on MSDN.
If you think you may be interested in it or have more about the link, then get me the book Linq in There is a very good book for.
Comments
Post a Comment