On Oct 30, 2:52 am, Shantanu Kumar <kumar.shant...@gmail.com> wrote:
> Hi,
>
> 1. I notice there is just the "parse" function mentioned as 
> public:http://clojure.github.com/clojure/clojure.xml-api.html
>
> I used the other functions in clojure.xml (emit, emit-element) and the
> var 'element' -- they appear to work fine for me. Are they just
> undocumented or not guaranteed to be maintained in future versions of
> Clojure?

I'm pretty sure emit is undocumented for a reason - the stuff it emits
is not, in general, valid XML. Use it at your peril.

user=> (clojure.xml/emit {:tag :foo :content ["<&>!!!"]})
<?xml version='1.0' encoding='UTF-8'?>
<foo>
<&>!!!
</foo>

- Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to