First working try

Produces correct parent and child nodes for ul and li elements.
No styling applied yet.