Libxml transition

Added basic support for <polygon> and <rect> elements.