Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Fix generated C parsers not checking for left over data after parse calls and not clearing infoset between parse calls. Rename some infoset C functions more consistently (C snake style).
Also enhance C code generator to support DFDL schemas containing simple type root elements, allowing generated C parsers to parse data and infosets containing only a single element. Add examples and new tests for simple root elements as well.
Also replace any non-alphabetical / non-numerical characters with underscores when converting XML identifiers to C identifiers, allowing XML element names like "simple-boolean" to become "simple_boolean" in generated C code.