000522-2 |
You want to send a person's name, separated into subfields for Surname, Given name, Middle Initial and Generation qualifier (like "Jr"). Show how this is specified using both ASN.1 and XML/DTD. Also show an example of how the name "John F. Kennedy Jr" is sent, and compare how many bytes are sent using the ASN.1/BER and the XML encoding. |
|
Answer |
ASN.1: Name ::= SEQUENCE { Generation [3] VisibleString OPTIONAL } DTD:
BER data (34 octets): 10 21 XML data (172 octets): <?xml version="1.0"?>
|