Hi Banibrata,
1) CDR in XER Implies that there is already an ASN.1 specification acting as the schema (defining the abstract values and tag values, much as in BER). I doubt if that is the case, but if it is, then any of the ASN.1 tools that support both XER and BER encodings will be able to translate between the two encodings, with virtually zero effort on your part.
2) If by "proprietary XML" you mean XML that conforms to XSD (the XML Schema Definition notation, equivalent to ASN.1 notation), then there is both a Standard and a free tool to convert the XSD into ASN.1, and the XML document is then (by virtue of the mapping to ASN.1) a conforming (extended) XER encoding of a value of the ASN.1 type, and you can then use a tool to convert that encoding into BER, using the ASN.1 definitions generated from the XSD.
3) If by "proprietary XML", you mean a piece of random XML start and end tags that conforms only to the "well-formed" requirements of XML, then the task is somewhat greater. You need to ask what are the rules for what XML tags are to be mandatorily or optionally present, what can be nested inside what, etc, and essentially to map that English language specification of what is a permitted XML document for your application into an ASN.1 specification whose XER encoding produces the XML you require. This is likely to involve the use of XML encoding instructions.
So ...... it really all means what is the authoritative definition of whether an XML document is a CDR or not. If that definition is in ASN.1 already, life is VERY simple. If that definition is in XSD, life is still fairly simple - you can convert the XSD into ASN.1 and the first then applies. If that definition is just English text, you meed to work a bit harder!
John L
Banibrata Dutta wrote:
Hi,
I've some little bit of prior experience with BER/ASN.1 but XML (or XER for that matter) is absolutely a dark-room for me. So while I was groping, I thought that I might seek a hand to hold!
A colleague (who is absolutely ASN.1 uninitiated) asked me to find out if Teleco Call-Detail-Records which exist in XML format, can they be converted to ASN.1. The colleague got this question from a customer, so he was unable to answer my next question i.e., what do you mean ? I.e. do you want to convert CDR available in XER to BER, or prioprietary XML representation to XER, or something else. While I've started waiting on more information (which may take some 7-10 days to come by), I wanted to find out if the above mentioned 2 translations make sense, i.e.
1) CDR in XER to BER encoding.
2) CDR in proprietary XML notation to XER encoding.
If they do make sense, then how can I achieve this ? What all information (or sources of information) would I need access to ? pointers and hand-holding would be highly appreciated.
thanks & regards,
Banibrata Dutta
Hewlett-Packard ISO Pvt. Ltd,
29, Cunningham Road,
Bangalore - 560052, India.
Tel: +91-80-22051796
------------------------------------------------------------------------
_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
-- Prof John Larmouth Larmouth T&PDS Ltd (Training and Protocol Development Services Ltd) 1 Blueberry Road Bowdon [EMAIL PROTECTED] Cheshire WA14 3LS England Tel: +44 161 928 1605 Fax: +44 161 928 8069
_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
