Convert a whole Xdocument in an array

velmalavender

New Member
I am stuck on a project which needs to exchange data between two programs who have different coontrol files.Program A just creates a a XML File whereas Program B needs the input as an array with two "columns" - but how do can I do the conversion?Example:The xml looks like:\[code\]` <Presentation> <Options Name="1"> <Output>MyOutPut</Output> <Slides Name="1"> <Template>Template2</Template> <Diagram Name="Name4"> <More Elements...> </Diagram> </Slides> </Options> </Presentation>`\[/code\]The output should like this:\[code\] ` Presentation "" Options 1 Output Myoutput Slides 1 Template Template2...`\[/code\]But how can I achieve this? I am using vb.net and LINQ and have no idea how to solve this problem. I tried some LINQ queries but I get only indivudal nodes or attributes so I think it would be better to try a different idea.Any advice would be appreciated!
 
Back
Top