Hi Rumen,
I am starting one project which deals with XML files. For better optimization, I need to convert XML to EXI. I am looking for XML to EXI converter. Since I am doing on embedded platform, I can't use Java version of conversion. I am looking for C/C++ based EXL to EXI schema-informed converter. I gone though your project. Felt very interesting, might be usefull for my case.
I have seen one utility called 'exipg' in your project. Can I use that tool to create a grammar and later encode and decode my xml files based on that grammar?
If possible can you suggest me, how can i use this EXIP project information for my requirement?
I hope, in future you people can extend this EXIP to XML-EXI conversion in direct way.
Thanks in advance.
Kumar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you explain breifly about 'exipe' and 'exipd' tools?
exipe -schema <schema_files_in> <EXI_FileOut>
In "exipe", it is taking schema file as EXI format and it is outing EXI_Fileout? I didn't understand this?
I thought, arguments are schemafile in exi form, xml file, exi out file.
First, it will prepare grammar based on schema exi file. And then parse the XML file, encode into exi based on prepared grammar.
In "exipd" , based on schema file, it'll prepare grammar and then parse the EXI_FileIn, decode into XML_outFile.
Correct me If I am wrong?
Please clarify these doubts?
Thanks in advance
Kumar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2012-10-18
Hi Kumar,
exipe / exipd are test programs, not tools,
therefore CLI is a little bit confusing.
The last "file.exi" in exipe is the file
into which exi encoding is done. You have
to look the code to see how the message
is generated.
exipd parses the exi message and print
the element names and their types either
in XML format or in EXI format (default).
Hope this helps you forward.
Regards,
Raino
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As Raino posted exipe/exipd are test programs and not tools. You can find some hints on your questions below:
"I have seen one utility called 'exipg' in your project. Can I use that tool to create a grammar and later encode and decode my xml files based on that grammar?"
-> You can use the exipg utility to create grammars that are later needed by EXIP to encode to EXI and decode from EXI. Note that exip does not support XML input.
"If possible can you suggest me, how can i use this EXIP project information for my requirement?"
-> exipd invoked with the -xml argument is performing the EXI to XML translation. For getting XML as input and encoding it to EXI you need a C XML parser that you should connect to exip encoding API (demonstrated in the exipe)
"In "exipe", it is taking schema file as EXI format and it is outing EXI_Fileout? I didn't understand this?"
-> exipe is encoding static (compile time) XML document to EXI. The -schema argument is needed in if you want to perform schema-enabled processing. It does not support dynamic XML generation from a text XML as an input.
"In "exipd" , based on schema file, it'll prepare grammar and then parse the EXI_FileIn, decode into XML_outFile."
Yes, you are right.
Regards,
Rumen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Rumen,
I am starting one project which deals with XML files. For better optimization, I need to convert XML to EXI. I am looking for XML to EXI converter. Since I am doing on embedded platform, I can't use Java version of conversion. I am looking for C/C++ based EXL to EXI schema-informed converter. I gone though your project. Felt very interesting, might be usefull for my case.
I have seen one utility called 'exipg' in your project. Can I use that tool to create a grammar and later encode and decode my xml files based on that grammar?
If possible can you suggest me, how can i use this EXIP project information for my requirement?
I hope, in future you people can extend this EXIP to XML-EXI conversion in direct way.
Thanks in advance.
Kumar
Hi Ruben,
Can you explain breifly about 'exipe' and 'exipd' tools?
exipe -schema <schema_files_in> <EXI_FileOut>
In "exipe", it is taking schema file as EXI format and it is outing EXI_Fileout? I didn't understand this?
I thought, arguments are schemafile in exi form, xml file, exi out file.
First, it will prepare grammar based on schema exi file. And then parse the XML file, encode into exi based on prepared grammar.
Correct me If I am wrong?
exipd -xml<xmloutfile> -schema <schema_files_in> <EXI_FileIn>
In "exipd" , based on schema file, it'll prepare grammar and then parse the EXI_FileIn, decode into XML_outFile.
Correct me If I am wrong?
Please clarify these doubts?
Thanks in advance
Kumar.
Hi Kumar,
exipe / exipd are test programs, not tools,
therefore CLI is a little bit confusing.
The last "file.exi" in exipe is the file
into which exi encoding is done. You have
to look the code to see how the message
is generated.
exipd parses the exi message and print
the element names and their types either
in XML format or in EXI format (default).
Hope this helps you forward.
Regards,
Raino
Hi Kumar,
As Raino posted exipe/exipd are test programs and not tools. You can find some hints on your questions below:
"I have seen one utility called 'exipg' in your project. Can I use that tool to create a grammar and later encode and decode my xml files based on that grammar?"
-> You can use the exipg utility to create grammars that are later needed by EXIP to encode to EXI and decode from EXI. Note that exip does not support XML input.
"If possible can you suggest me, how can i use this EXIP project information for my requirement?"
-> exipd invoked with the -xml argument is performing the EXI to XML translation. For getting XML as input and encoding it to EXI you need a C XML parser that you should connect to exip encoding API (demonstrated in the exipe)
"In "exipe", it is taking schema file as EXI format and it is outing EXI_Fileout? I didn't understand this?"
-> exipe is encoding static (compile time) XML document to EXI. The -schema argument is needed in if you want to perform schema-enabled processing. It does not support dynamic XML generation from a text XML as an input.
"In "exipd" , based on schema file, it'll prepare grammar and then parse the EXI_FileIn, decode into XML_outFile."
Yes, you are right.
Regards,
Rumen