31 TagList::const_iterator it = l.begin();
32 for( ; it != l.end(); ++it )
34 if( (*it)->name() !=
"header" || !(*it)->hasAttribute(
"name" ) )
37 m_headers.insert( std::make_pair( (*it)->findAttribute(
"name" ), (*it)->cdata() ) );
47 static const std::string filter =
"/presence/headers[@xmlns='" +
XMLNS_SHIM +
"']"
48 "|/message/headers[@xmlns='" +
XMLNS_SHIM +
"']"
55 if( !m_headers.size() )
58 Tag* t =
new Tag(
"headers" );
61 HeaderList::const_iterator it = m_headers.begin();
62 for( ; it != m_headers.end(); ++it )
64 Tag* h =
new Tag( t,
"header" );