Rewrite mesh and skeleton with own xml parser