code: private static String getValueString(XsdString value)
     {
        if (value == null || value == XsdString.NULL_XSDSTRING)
           return "";
        else
           return value.getValue();
     }
docs: get correct value string
  @param value xsdstring
  @return correct string