XML to LinQ best practice

  • Thread starter Thread starter Markus Freitag
  • Start date Start date
M

Markus Freitag

Guest
Hello,
What is the best way to read from an element, the sub-elements that are available to me in a list?
If you have a wide branching, depth, how best to select quickly a element with attributs?

<PROCESS>
<STEP value="Step1" />
<STEP value="Step2">
<ACTIVE value="1" />
<PRINT value="1" />
</STEP>
<STEP
value="STEP3">
<ACTIVE value="1" />
<OVERDRAW value="6" />
</STEP>
<STEP value="STEP4">
<ACTIVE value="0" />
<DELETE_IN_DAYS value="110" />
</STEP>

Like this
List<Process> listProcess

class PROCESS
class STEP
<ACTIVE value="1" />
<OVERDRAW value="6" /> for that can be anything.
Maybe in a dictionary Element is key name, value is the value.
Thanks in advance for good tips.
Best regards Markus

Continue reading...
 
Back
Top