     :object-node (ValueFactory/newObjectNode (json/write-str clj-val))
     :processing-instruction clj-val ;; TODO
     :sequence clj-val ;; XXX WONTFIX -- see GitHub issue #8: "com.marklogic.xcc.exceptions.UnimplementedFeatureException - Setting variables that are sequences is not supported"
-    :text clj-val ;; TODO
+    :text clj-val ;; TODO, also really :text-node
 
     :xs-any-uri clj-val ;; TODO
     :xs-base64-binary clj-val ;; TODO

                                                                 (str longitude)))
                                     vertices))))

    :document clj-val ;; :document-node, really, but we're following ValueType
    :element (cond
               (string? clj-val) clj-val
               (vector? clj-val) (xml/emit-str (xml/sexp-as-element clj-val))
               (instance? clojure.data.xml.Element clj-val) (xml/emit-str clj-val))
    :js-array (ValueFactory/newJSArray (json/write-str clj-val))
    :js-object (ValueFactory/newJSObject (json/write-str clj-val))
    :node clj-val

                      ValueFactory/newBooleanNode)
    :attribute clj-val ;; doesn't seem to be implemented by ValueFactory: "java.lang.InternalError Unrecognized valueType: attribute()"
    :binary clj-val ;; TODO
    :comment clj-val ;; TODO, also really :comment-node

    :cts-box (str clj-val) ;; 4-element sequence or String
    :cts-circle (let [[radius [latitude longitude]] clj-val]
