[json-lib-user] bug in XMLSerializer
Brought to you by:
aalmiray
From: Luis M. <mon...@gm...> - 2011-06-14 12:56:51
|
XMLSerializer.getType( Element element, String defaultType ) should never return a null or there can be NullPointerExceptions when it tries to convert XML into JSON. This happens when an attribute is named "type", for example, attempting to convert this to JSON will throw a NullPointerException: <myelement type="mytype"><subelement>a</subelement><subelement>b</subelement></myelement> Luis |