anchor.diff:  	  
   render(#occi_node{type=occi_collection, data=Coll}, Env) ->
       Data = render_xml(
  -	     make_doc([?declared_occi_ns, ?declared_xlink_ns],
  -		      ?occi_ns, collection,
  -		      [],
  -		      [ exmpp_xml:element(
  -			  ?occi_ns, entity,
  -			  [exmpp_xml:attribute(?xlink_ns, <<"href">>, occi_uri:to_binary(Id))], []) || 
  -			  Id <- occi_collection:get_entities(Coll) ])),
  +	     make_ns([?declared_occi_ns, ?declared_xlink_ns],
  +		     exmpp_xml:element(
  +		       ?occi_ns, collection, [],
  +		       [ exmpp_xml:element(
  +			   ?occi_ns, entity,
  +			   [exmpp_xml:attribute(?xlink_ns, <<"href">>, occi_uri:to_binary(Id))], []) || 
  +			   Id <- occi_collection:get_entities(Coll) ]))),
       {[Data, "\n"], Env}.
   
   %%%
  
positive.code:     L7 = [exmpp_xml:attribute(<<"name">>, occi_attribute:get_id(A)) | L6],
      exmpp_xml:element(?occi_ns, attribute, L7, []).
  
  render_attribute(E, #occi_attr{}=Attr) ->
      exmpp_xml:append_child(E, make_attribute(Attr)).
  
  make_attribute(#occi_attr{}=Attr) ->
      make_attribute(occi_attribute:get_id(Attr), occi_attribute:get_value(Attr)).
  
  make_attribute(Name, #uri{}=Uri) ->
      exmpp_xml:element(?occi_ns, attribute, 
  		      [exmpp_xml:attribute(<<"name">>, Name),
  		       exmpp_xml:attribute(?xlink_ns,
  			 <<"href">>, occi_uri:to_binary(Uri))],
  		      []);
  make_attribute(Name, Value) ->
      exmpp_xml:element(?occi_ns, attribute, 
  
negative.code:     {[Data, "\n"], Env};
  
  render(#occi_node{type=occi_link, data=Link}, Env) ->
      E = make_ns([?declared_occi_ns, ?declared_xlink_ns], make_link(Link)),
      {render_xml(E), Env};
  
  render(#occi_node{type=occi_query, data={Kinds, Mixins, Actions}}, Env) ->
      Children = lists:map(fun render_kind/1, Kinds)
  	++ lists:map(fun render_mixin/1, Mixins)
  	++ lists:map(fun render_action/1, Actions),
      Data = render_xml(
  	     make_ns([?declared_occi_ns],
  		     exmpp_xml:element(?occi_ns, component, [], Children))),
      {[Data, "\n"], Env};
  
  render(#occi_node{type=occi_user_mixin, data=Mixin}, Env) ->
  