# Imagine this one script

"""   
<iq type='set' to= 'roomname@conference.chat.oonair.net'  id='id1'>
 <oo xmlns='http://oonair.com/muc#share'>
   <item name='Falda tubo' thumbnail='http://webpage.info/falda_tn.jpg' id='itemid1' action='add' url='http://webpage.info/falda.htmlÃÂÃÂ¢ÃÂÃÂÃÂÃÂ>
      <metadata  path=' ' />
   </item>
 </oo>
</iq>
"""
class Item(ElementBase):
    name = 'item'
    namespace = 'http://oonair.com/muc#share'
    plugin_attrib = 'item'
    interfaces = set(('name', 'thumbnail', 'id', 'action', 'url', 'metadata'))
    sub_interfaces = set(('metadata'))

class OO(ElementBase):
    name = 'oo'
    namespace = 'http://oonair.com/muc#share'
    plugin_attrib = 'oo_muc_share'
    interfaces = set(('item'))
    sub_interfaces = interfaces
    subitem = (Item,)
    
# And this one will be going in the xmpp client script
register_stanza_plugin(Iq, OO, Item, iterable = True)