added LithiumError Handling as XML parser