On Fri, 11 Oct 2002, Andrew Fan wrote: > Hi, > > In XML technologies, there are some tools or protocols like SAX/SAX2, > DOM which can dynamicly parse XML stream, shipped XML schema or DTD > syntax, which make XML applications have quite good flexibilities and > extensibilities. > > In some sense, ASN Modules definitions something like XML schema or DTD, > and the encoded ASN contents something like XML document, may be there > will be something like XML parser, events interfaces or trees > interfaces. If we can do this, I believe that ASN will have a more > comprehensive process. :-) > > At present, most of the ASN parsers just parser the ASN synatx > presentation into structs or classes in the form of C/C++, Java, etc., > which have some limitations compared by XML parser.
The OSS Compile-And-Go Library (CAGL) allows you to parse ASN.1 modules at runtime, and instead of generating C structs or Java/C++ classes, etc., you can immediately use the OSS IAAPI library functions (included with the OSS ASN.1 Tools at no added cost) to create values, encode them, and decode messages. The CAGL produces no output files for you to compile or link with. Among the benefits of this solution is that it makes it easy for you to implement applications such as ASN.1 value editors, protocol analyzers and use encoders/decoders which can work with any ASN.1 module without need to change or rebuild the application program. The model is analogous to that of DOM, in that it allows you to parse an ASN.1 module(s) and then use this result to immediately parse either XML documents or PER, BER or DER messages, and convert between these if you wish. The OSS ASN.1 Tools also includes support for XML as a standard component, so now you can effortlessly convert between binary encoding rules such as PER/BER/DER and XML. ------------------------------------------------------------------------- Bancroft Scott Toll Free :1-888-OSS-ASN1 OSS Nokalva International:1-732-302-0750 [EMAIL PROTECTED] Tech Support :1-732-302-9669 x-1 1-732-302-9669 x-200 Fax :1-732-302-0023 http://www.oss.com
