0

I need to describe some reliably structures in XML file and than load it into program, parse it, and build boolean function of this structure. Below I attached an image of sample structure. sample structure

How can I describe this in XML file? Every single part of this model remains in a certain state. False of True. So if we have elements 1 = true, 2 = false and rest equals to true it will be working but if element 1 is false whole this structure isn't working. How can I parse this XML file into boolean function describing that kind of structures?

Indigo_heart
  • 129
  • 11
  • 1
    Do you want to get to `if (e1 && (e2 || e3) && ((e4 && (e5 || e6)) || e7 || (e8 && e9)) && e10 && e11)` ? – choroba Nov 18 '18 at 18:10
  • i want to build this equation (e1 && (e2 || e3) && ((e4 && (e5 || e6)) || e7 || (e8 && e9)) && e10 && e11) and be able to get result of it – Indigo_heart Nov 18 '18 at 18:13

0 Answers0