Index: ezxmltext/handlers/input/ezoexmlinput.php
===================================================================
--- ezxmltext/handlers/input/ezoexmlinput.php	(revision 3174)
+++ ezxmltext/handlers/input/ezoexmlinput.php	(working copy)
@@ -1371,12 +1371,12 @@
                     $href = $tag->getAttribute( 'href' );
                 }
 
+                $attributes = array();
                 if ( $anchorName != null && $href !== '#'.$anchorName )
                 {
                     $attributes[] = 'name="' . $anchorName . '"';
                 }
 
-                $attributes = array();
                 if ( $className != '' )
                 {
                     $attributes[] = 'class="' . $className . '"';
@@ -1574,4 +1574,4 @@
     public $allowMultipleSpaces = true;
 }
 
-?>
\ No newline at end of file
+?>
