jsonix-schema-compiler icon indicating copy to clipboard operation
jsonix-schema-compiler copied to clipboard

special characters in xsd element names result in javaStyledNames in mapping

Open simessogithub opened this issue 8 years ago • 2 comments

In a XSD-schema file, if xsd elements names include _ . - etc. they will be mapped to javaStyledPropertyNames: "person.name" would be mapped to: "personName"

Conclusively if you want to convert json data into xml using that mapping, you have to make sure, that the json fields have javaStyledNames otherwise they are ignored.

This

{"person":
 {"person.name": "honolulu"} 
}

will end up in empty element:

<person></person>

simessogithub avatar Jul 17 '16 10:07 simessogithub

So I guess you just want original XML element and attribute names?

highsource avatar Jul 17 '16 11:07 highsource

Yes.

simessogithub avatar Jul 18 '16 08:07 simessogithub