Index: trunk/src/com/kitfox/svg/SVGElement.java
===================================================================
--- trunk/src/com/kitfox/svg/SVGElement.java	(revision 15900)
+++ trunk/src/com/kitfox/svg/SVGElement.java	(revision 15901)
@@ -260,9 +260,10 @@
         if (this.id != null && !this.id.equals(""))
         {
+            this.id = this.id.intern();
             diagram.setElement(this.id, this);
         }
 
         String className = attrs.getValue("class");
-        this.cssClass = (className == null || className.equals("")) ? null : className;
+        this.cssClass = (className == null || className.equals("")) ? null : className.intern();
         //docRoot = helper.docRoot;
         //universe = helper.universe;
@@ -298,5 +299,5 @@
             String value = attrs.getValue(i);
 
-            presAttribs.put(name, new StyleAttribute(name, value));
+            presAttribs.put(name, new StyleAttribute(name, value == null ? null : value.intern()));
         }
     }
Index: trunk/src/com/kitfox/svg/xml/StyleAttribute.java
===================================================================
--- trunk/src/com/kitfox/svg/xml/StyleAttribute.java	(revision 15900)
+++ trunk/src/com/kitfox/svg/xml/StyleAttribute.java	(revision 15901)
@@ -70,12 +70,11 @@
     public StyleAttribute(String name) 
     {
-        this.name = name;
-        stringValue = null;
+        this(name, null);
     }
 
     public StyleAttribute(String name, String stringValue) 
     {
-        this.name = name;
-        this.stringValue = stringValue;
+        setName(name);
+        setStringValue(stringValue);
     }
 
@@ -86,5 +85,5 @@
     public StyleAttribute setName(String name)
     {
-        this.name = name;
+        this.name = name == null ? null : name.intern();
         return this;
     }
@@ -102,5 +101,5 @@
     public void setStringValue(String value)
     {
-        stringValue = value;
+        stringValue = value == null ? null : value.intern();
     }
 
