Suzii / pb138-cv_generator

Repository for CV generator - PB138 semestral project.
0 stars 0 forks source link

Json2Xml and Xml2Json #3

Closed Suzii closed 9 years ago

Suzii commented 9 years ago

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

petersvk commented 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.

Suzii commented 9 years ago

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.

petersvk commented 9 years ago

Fixed

Suzii commented 9 years ago

Modify XML Schema and both json2xml and xml2json to accomodate new XML structure. Changes:

petersvk commented 9 years ago

done