fix little compile-bug
Fixed #4, rewrite for-loops for xml-parsing-functions