ich versuche ein XML - File einzulesen. das klappt soweit ganz gut, und ich kann mich auch innerhalb der Baumstruktur die erstellt wird gut bewegen und Werte aus dem XML - File auslesen und in Variablen speichern.
Mein Problem:
Code: Alles auswählen
<info>
<node>
<name value="" />
<address value="" />
<type value="Lampe/Light" />
<status attribute="Status" type="bool" value1="an" value2="aus" />
<status attribute="Webzugriff" type="bool" value1="J" value2="N" />
<status attribute="Ort" type="string" value="" />
<status attribute="input" type="bool" value="turnOn" />
<status attribute="input" type="bool" value="turnOff" />
<status attribute="input" type="bool" value="switch" />
<status attribute="output" type="bool" value="turnedOn" />
<status attribute="output" type="bool" value="turnedOff" />
<status attribute="output" type="bool" value="switched" />
<status attribute="output" type="bool" value="broken" />
<status attribute="output" type="bool" value="battEmpty" />
</node>
</info>
Weiß jemand woran das liegen könnte? ich will im quellcode im prinzip einfach sagen, sobald du auf ein attribute stößt, welches als wert "bool" hat, dann liste bitte alle nachfolgenden attribute in diesem Tag in eine QComboBox.
Danke für eure Hilfe.
Stefan