code: private void  parseAttributesCore(SvgElementBase obj, Attributes attributes) throws SVGParseException
     {
        for (int i=0; i<attributes.getLength(); i++)
        {
           String  qname = attributes.getQName(i);
           if (qname.equals("id") || qname.equals("xml:id"))
           {
              obj.id = attributes.getValue(i).trim();
              break;
           }
           else if (qname.equals("xml:space")) {
              String  val = attributes.getValue(i).trim();
              if ("default".equals(val)) {
                 obj.spacePreserve = Boolean.FALSE;
              } else if ("preserve".equals(val)) {
                 obj.spacePreserve = Boolean.TRUE;
              } else {
                 throw new SVGParseException("Invalid value for \"xml:space\" attribute: "+val);
              }
              break;
           }
        }
     }
docs: =========================================================================