[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Urgent !!


python asn.1
[Kiran Nadgir]

> Phew ! thanks for all those options.
> I'll try to put down the task as clearly as possible.
> I have a TAP(transferred account procedure) which is an ASN1 file, which
has
> some data, basically records. I have to convert this ASN1 file into an XML
> file. This is an ongoing procedure. I have the DTD which i have to conform
> to. What i am looking for is some utility which will use the asn file  and
> the DTD as input and give an XML file as output.
>

I am pretty sure you will not find such a tool.  I think you have basically
two choices -

1) Get an asn.1 toolkit to read the asn.1 encoded messages and store them in
data structures (which the toolkit will define and build).  Write some code
that will walk these structures and output XML fragments, which your code
would assemble (or it could output SAX events, which you would feed to an
XML writer).

2) Get some tool that will output an XML encoding of the asn.1, get your
asn.1 toolkit to do the encoding, and then use xslt to transform it to the
format that you actually want.  You will no doubt have to write the xslt
stylesheet yourself.  What tool could you get?  I am not sure, maybe that
IBM one that was  referenced yesterday, or maybe one of the asn.1 companies
has a beta version you could use.


All in all, I would probably go with 1) now.  You could sort of combine 1)
and 2) by writing an intermediate xml format in 1), then using a stylesheet
to arrive at the final format.

Here are links to  Python asn.1 BER encoders/decoders which might be a
starting point:

http://www.panix.com/~asl2/software/PyZ3950/
http://www.cnri.reston.va.us/software/pisces/manual/module-pisces.asn1.html

Cheers,

Tom P



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.