anchor.diff:  ]).
   
   
  -
   pubsub_stanza(Children, NS) ->
       #xmlel{name = <<"pubsub">>,
  -	     attrs = [{<<"xmlns">>, NS} ],
  -	     children = Children  }.
  +	   attrs = [{<<"xmlns">>, NS} ],
  +	   children = Children  }.
   
   create_specific_node_stanza(NodeName) ->
  -    #xmlel{
  -       name = <<"create">>,
  -       attrs = [{<<"node">>, NodeName}] }.
  +    #xmlel{name = <<"create">>,
  +	   attrs = [{<<"node">>, NodeName}] }.
   
   iq_with_id(TypeAtom, Id, To, From, Body) ->
       S1 = escalus_stanza:iq(To, atom_to_binary(TypeAtom, latin1), Body),
  
positive.code:     PublNode = publish_node_with_content_stanza(NodeName, ItemTopublish),
      pubsub_stanza([PublNode], ?NS_PUBSUB).
  
  
  %% Similar to above but with different entry body - mimicking "real" physical 
  %% device with hardware "identifier" - device 1
  create_publish_node_content_stanza_second(NodeName, ItemId) ->
  
negative.code: %% ------end-------------------- sample entry bodies ------------------------
  
  %% provide EntryBody as list of anything compliant with exml entity records.
  
  publish_entry_children([]) ->
      entry_body_sample1();
  
  publish_entry_children([#xmlel{}] = EntryBody) ->
      EntryBody.
  
  publish_entry(EntryBody) ->
      #xmlel{
         name = <<"entry">>,
         attrs = [{<<"xmlns">>, <<"http://www.w3.org/2005/Atom">>}],
         children = publish_entry_children(EntryBody)
        }.
  
  publish_item_children(#xmlel{} = ItemBody) ->
      publish_entry(ItemBody);
  
  publish_item_children([]) ->
      publish_entry([]).
      
  publish_item(ItemId, PublishEntry) ->
      #xmlel{
         name = <<"item">>,
         attrs = [{<<"id">>, ItemId}],
         children = [publish_item_children(PublishEntry)]
        }.
  
  publish_node_children([]) ->
      publish_item(<<"abc123">>, []);
  
  publish_node_children(#xmlel{} = ItemBody) ->
      ItemBody;
  
  publish_node_children(_) ->
      publish_node_children([]).
  
  publish_node_with_content_stanza(NodeName, ItemToPublish) ->
      #xmlel{
         name = <<"publish">>,
         attrs = [{<<"node">>, NodeName}],
         children = [publish_node_children(ItemToPublish)]
        }.
  
  %% Create full sample content with nested items like in example 88 of XEP-0060
  