I need to write to XML file with complex structure.
My valid xml structure is like following.
<ads> <ad id="00121" date="1/1/2016 01:01:59" > <adinfo title="" email="" phone="" rOD="" rPrice="" rat="" cdetails="" address="" postal="" /> <adimg> <img mail="T" src=""/> <img mail="F" src=""/> <img mail="F" src=""/> </adimg> </ad> <ad id="00121" date="1/1/2016 01:01:59" > <adinfo title="" email="" phone="" rOD="" rPrice="" rat="" cdetails="" address="" postal="" /> <adimg> <img mail="T" src=""/> <img mail="F" src=""/> <img mail="F" src=""/> </adimg> </ad> .... .... </ads> I have read this tutorial http://www.dotnetperls.com/xmlwriter
But above tutorial is for simple XML structure.
As you can see my XML is bit complex.
For example I need to insert ad inside parent ads element
What should I use and how I can approach to solving this problem?
thnx
No comments:
Post a Comment