search for: doc_to_buf

Displaying 2 results from an estimated 2 matches for "doc_to_buf".

2018 Feb 22
0
[PATCH 1/5] v2v: DOM: Add doc_to_string function.
...and xml_quote_pcdata str = let str = String.replace str ">" "&gt;" in str -let doc_to_chan chan (Doc doc) = - fprintf chan "<?xml version='1.0' encoding='utf-8'?>\n"; - element_to_chan chan doc; - fprintf chan "\n" +let doc_to_buf buf (Doc doc) = + bprintf buf "<?xml version='1.0' encoding='utf-8'?>\n"; + element_to_buf buf doc; + bprintf buf "\n" + +let doc_to_string doc = + let buf = Buffer.create 4096 in + doc_to_buf buf doc; + Buffer.contents buf + +let doc_to_chan chan doc...
2018 Feb 22
11
[PATCH 0/5] v2v: Add -o rhv-upload output mode.
The first four patches are straightforward. The final patch adds the -o rhv-upload output mode. It is still spooling into a temporary file because I've had some trouble getting streaming conversions working. There are other problems as outlined in the commit message, so this patch is not ready for upstream but is good for discussion. Also I hit this, which I'm assuming for now will be