New createPath method in Structure class and fix for DIV tag