jsonix-schema-compiler
jsonix-schema-compiler copied to clipboard
special characters in xsd element names result in javaStyledNames in mapping
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>
So I guess you just want original XML element and attribute names?
Yes.