Updated to wrap original exception with XMLStreamException in writeAttribute().

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>