Draft lib structure; start xml processing