added ability to parse attributes and elements containing no children or data to...