Which are the correct line commands to successfully run exipe and exipd in schema-enabled mode?
In all the ways that seem reasonable to me I get errors... so I am probably doing it wrong.
Thank you!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
exipe demonstrates a more complex example where the schema consists of multiple XSD files. I've just noticed that the make script does not copy all the XSD (exi-ed) to the bin folder on compile. Missing are exipe-test-nested-xsd.exi and exipe-test-types-xsd.exi both imported in exipe-test.xsd.
How do I then use the file output-exipe-test.c? Do I have to parse it to build a EXIPSchema object (if I understand correctly!) or is there an easier built in way?
Thank you!!
Mathias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you are using exipg to get C static grammar definitions then you need to link the resulting .c file (output-exipe-test.c in your case) to your exip application and then you use the EXIPSchema object that is defined inside it directly (using extern EXIPSchema <schema_var_name>)
Best,
Rumen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Which are the correct line commands to successfully run exipe and exipd in schema-enabled mode?
In all the ways that seem reasonable to me I get errors... so I am probably doing it wrong.
Thank you!!
Hi,
exipe demonstrates a more complex example where the schema consists of multiple XSD files. I've just noticed that the make script does not copy all the XSD (exi-ed) to the bin folder on compile. Missing are exipe-test-nested-xsd.exi and exipe-test-types-xsd.exi both imported in exipe-test.xsd.
You run exipe with:
You decode the output with:
I hope that helps!
Rumen
Thank you!
And if instead I want to use an EXI grammar definition .c file generated from the schemas using
-static -schema=exipe-test.exi,exipe-test-types.exi,exipe-test-nested.exi output-exipe-test.c
How do I then use the file output-exipe-test.c? Do I have to parse it to build a EXIPSchema object (if I understand correctly!) or is there an easier built in way?
Thank you!!
Mathias
If you are using exipg to get C static grammar definitions then you need to link the resulting .c file (output-exipe-test.c in your case) to your exip application and then you use the EXIPSchema object that is defined inside it directly (using extern EXIPSchema <schema_var_name>)
Best,
Rumen