Add margin and padding examples.
Draft integration of the xml format functionality, requires work to cope
with tags that are not closed.
Initial work on refactoring the xml pretty print logic to walk  the dom
rather than the naive regexp implementation.