Fix xml printing
[hyperobject.git] / mop.lisp
index 47a2aaeb3d37a2da6b0a5983383a66bd6cdbfe36..96eb3256058c5bfb8870b274b4ab5d6e3aedc968 100644 (file)
--- a/mop.lisp
+++ b/mop.lisp
@@ -402,6 +402,13 @@ SQL name"
   (or (eq type 'string)
       (and (listp type) (some #'(lambda (x) (eq x 'string)) type))))
 
+(defun value-type-is-a-string (type)
+  (or (eq type 'string)
+      (eq type 'u::cdata)
+      (and (listp type) (some #'(lambda (x) (or (eq x 'string)
+                                                (eq x 'u::cdata)))
+                              type))))
+
 (defun base-value-type (value-type)
   (if (atom value-type)
       value-type