Fixing CARBON-15046

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>
Reordering string parameters in equals() check to avoid potential NPEs.

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>
Updated to wrap original exception with XMLStreamException in writeAttribute().

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>
Merge pull request #21 from jsdjayanga/CARBON-15046

Carbon 15046