From: Sebastian on
I am new to Matlab, Java, XML and all that stuff...

What I need to do is create an XML-file from data I have in a struct. It should look like this, for example

<person id="ID_stored_in_struct">
<plan selected="yes">
<act type="home" x="598954.1482461237" y="5286325.283287849" start_time="00:00:00" end_time="07:12:06" />
<leg mode="car">
</leg>
<act type="work_act" x="620374.2433188666" y="5301557.002522321" start_time="07:12:06" end_time="12:22:28" />
<leg mode="car">
</leg>
<act type="leasure_act" x="620777.1421297595" y="5292949.317356612" start_time="12:22:28" end_time="17:45:50" />
<leg mode="car">
</leg>
<act type="home" x="598954.1482461237" y="5286325.283287849" start_time="17:45:50" end_time="07:12:06" />
</plan>

</person>

(sorry if it's hard to read).

The struct contains the data 'ID', 'Home' with the x- and y-coordinates, the act type ('home', 'work_act', ect.) the several start and ending times and a number which represents how many act types shall be generated. The rest of the xml-file shall be generated automatically (leg mode = "car", etc.).
I need this for my bachelor-thesis, so i'd appreciate your help.
From: Sebastian on
ok, i figured it out...