Closed Suzii closed 9 years ago
Json -> XML is implemented in class Json2Xml and XML -> Json in class Xml2Json. Both classes seam to be working. Now we need to test them.
XML2Json contains a bug. When trying to convert an XML containing only one phone or email inside of aphones / emails element, exception org.json.JSONException: JSONObject["email"] is not a JSONArray. is thrown. When there are two element phone everthing seems to be ok.
Fixed
Modify XML Schema and both json2xml and xml2json to accomodate new XML structure. Changes:
done
Create two interfaces providing a transformation from JSON to XML and vice versa. Strucute of JSON and XML are predefined and referencing files have to be strod in "Sample" directory of project. XML Schema has to be created as well and text file summarizing the required fields and allowed values have to be created for other developers