Actually that did not work at all. I still have a problem. The thing is, I have previously written other lines of code with the same way of parsing the XML data without a problem. I think the problem lies in the point where i want to add a second level of a child element.
My XML file structure consists of "Placemark" elements with this structure:
<Placemark id="1000" status="1" cat="2">
<name>Ανώτατο Τεχνολογικό Εκπαιδευτικό Ινστιτούτο Λάρισας</name>
// STATUS 0 = draft, 1 = OK, 2 = proteinomeno, CAT 1 = AEI, 2 = TEI
<description>
</description>
<Point>
<coordinates>39.627672, 22.381532</coordinates>
</Point>
<address>
<street></street>
<streetNo></streetNo>
<city>Λάρισα</city>
<postalCode>41500</postalCode>
</address>
<phoneNumber>+302410684200</phoneNumber>
<faxNumber>+302410610803</faxNumber>
<links><!-- oi selides twn idrymatwn -->
<homepage>http://www.teilar.gr/</homepage>
<newsFeed>http://www.teilar.gr/news.php</newsFeed><!-- Gia mini-newsfeed 5 teleftaiwn enimerwsewn -->
<departments>http://www.teilar.gr/schools.php</departments>
<underGrad>http://dionysos.teilar.gr/unistudent/depProgramList.asp?level=1&mnuid=mnu2;submnu1</underGrad>
<postGrad>http://www.teilar.gr/tei_msc.php</postGrad>
<research>http://www.teilar.gr/ereyna.php</research>
<alumni><!-- eleos, N/A --></alumni>
<library>http://library.teilar.gr/</library>
<itServices><!-- eleos, N/A --></itServices>
<staff>http://www.teilar.gr/personel.php</staff>
<!-- Student stuff, separate funky placement in site -->
<eSecry>http://dionysos.teilar.gr/</eSecry>
<eLearning>http://e-class.teilar.gr/</eLearning>
<studentUnion></studentUnion>
<international>http://www.teilar.gr/eu/index_gr.php</international>
<studentBoard>http://www.teilar.net</studentBoard>
</links>
</Placemark>
As you can see the name element which i parse earlier in the code is in Greek as well and I do not get an error for that. I need to find a different way to add the children elements which have children of their own (Same problem happens with the <links> element.
I'm stuck :/ Do you see something wrong in my original logic of the construction of the (grand)children?