1
I need to do the manipulation of an XML file in C#. This is the first time I will do this, and I would like some tips. My algorithm basically is this:
Fill an XML from my system data (DB Data).
Ex: I have an entity from which comes my data example Person, that the same by your turn has its attributes.
I need to take this data from Pessoa, and assemble an xml.
Read this generated XML file, for execution of an X algorithm, which will perform calculations based on my XML data.
This algorithm will provide me with new data as a result of my study.
After the execution of algorithm X, generate an XML with the obtained results, from algorithm X.
I need tips on:
In short what I desire is:
- Generate an xml with data from my entity,
- read this file populating a result entity.
- Export my output to xml.
My point is:
1 - Which Lib can I use to manipulate these files? That is, there is a library you can use to help me manipulate xml files in C#. What I mean is, not to have to do everything by hand?
2 - Someone has an example that can provide me, or some hint on how I can accomplish this task?
3 - Lib to automate this task?
Grateful.
your question is very wide, because it does not put a scenario that there on this can solve most of your doubts!
– novic
I think you can start searching for Entity Framework, to model your BD on C#objects. From there, search by Linq to XML (allows you to create, change, xml files).
– Renato Afonso
@Renatoafonso Thanks for the tip
– Mik3i4a5