Minor changes in XML processing
Logging was added