anchor.diff:         [erl_syntax:clause(
             [subst_labels(Result), erl_syntax:variable("_xmlns_attrs")],
             none,
  -          [erl_syntax:match_expr(erl_syntax:variable("_els"), ElFun),
  +          [erl_syntax:match_expr(erl_syntax:variable("_els"), ResFun),
              erl_syntax:match_expr(erl_syntax:variable("_attrs"),AttrFun),
              erl_syntax:tuple(
                [erl_syntax:atom("xmlel"),
  
positive.code:                   Tag, AllElems) ->
      CDataLabel = CData#cdata.label,
      HaveCData = have_label(Result, CDataLabel),
      SubElGenerator = case have_label(Result, '$_els') of
                           true ->
                               erl_syntax:list_comp(
  
negative.code:                          {false, false} ->
                               erl_syntax:list([])
                       end,
      RefsFun = lists:foldr(
  		fun({Label, _}, Acc) ->
  			Var = label_to_var(Label),
  			make_function_call(
  			  make_enc_fun_name([Label,Tag]),
  			  [Var, Acc])
  		end, erl_syntax:list([]), group_refs(Refs)),
      CDataFun = if HaveRefs and HaveCData ->
  		       make_function_call(
  			 lists, reverse,
  			 [make_function_call(make_enc_fun_name([cdata,Tag]),
  					     [label_to_var(CDataLabel),
  					      RefsFun])]);
  		  HaveRefs and not HaveCData ->
  		       make_function_call(lists, reverse, [RefsFun]);
  		  HaveCData and not HaveRefs ->
  		       make_function_call(make_enc_fun_name([cdata,Tag]),
  					     [label_to_var(CDataLabel),
  					      erl_syntax:list([])]);
                    true ->
  		       erl_syntax:list([])
                 end,
      ResFun = if (HaveCData or HaveRefs) and (HaveXMLs or HaveEls) ->
  		     erl_syntax:infix_expr(
  		       XmlElGenerator, erl_syntax:operator("++"), CDataFun);
  		HaveCData or HaveRefs ->
  		     CDataFun;
  		HaveXMLs or HaveEls ->
  		     XmlElGenerator;
  		true ->
  		     erl_syntax:list([])
  	     end,
      AttrFun = lists:foldl(
                  fun(#attr{name = AttrName, label = AttrLabel}, Acc) ->
                          Var = label_to_var(prepare_label(AttrLabel, AttrName)),
  