Essentially a recursive call to xmlToList.
nodesToList(nodes)
nodes
A collection of XML nodes. Should be the output from docsToNodes.
A nested list with a structure that resembles the XML structure