Yes. The following example shows an advanced use of the XSDASN1 Translator using the NewsML 1.2 Schema.
It shows three ways to generate E-XER instructions:
In this mode, all of the E-XER instructions are generated inline within the ASN.1 syntax.
In this mode, all of the E-XER instructions are generated under an XER control section. Note that the generated ASN.1 files describe the same binary and XML data as in the previous example, but the files look different because in this example the E-XER syntax is localized and not spread across the file.
In this mode, all of the E-XER instructions are generated within ASN.1 comments. This allows you to use the generated ASN.1 with an old ASN.1 compiler that does not understand E-XER instructions. However, these ASN.1 modules can not be used to generate XML (E-XER). They can be used to generate binary encodings only.
The samples included with some of the Knowledge Center answers are meant for your general understanding of the OSS products. Different versions of the products might produce slightly different outputs. Consult the products documentation and samples for the most up-to-date products information and code examples.
Test drive the OSS Nokalva ASN.1, LTE, and XML Tools now! Your trial includes complete software, documentation, sample programs, free 24x7 technical support and more.
Our expert personnel can help you learn ASN.1!
We offer 4-day ASN.1 courses at our headquarters or your premises.