How to send iq with vcard information in it by using smack code

I need code in smack to know how to send iq with vcard information in it .

ex.

< iq from = ’ juliet@capulet . com ’
type = ’ set ’
id = ’ vc1 ’ >
< vCard xmlns = ’ vcard - temp ’ >
< BDAY > 1476 -06 -09 </ BDAY >
< ADR >
< CTRY > Italy </ CTRY >
< LOCALITY > Verona </ LOCALITY >
< HOME / >
</ ADR >

< NICKNAME / >

< GIVEN > Juliet </ GIVEN > < FAMILY > Capulet </ FAMILY > </ N >

< EMAIL > jcapulet@shakespeare . lit </ EMAIL >

< PHOTO >

< TYPE > image / jpeg </ TYPE >

< BINVAL >

Base64 - encoded - avatar - file - here !

</ BINVAL >

</ PHOTO >

</ vCard >

</ iq >

Hi,

there is an implementation of VCard packets included in Smack.

See VCard JavaDoc.

Best regards,

Henning