Hi,

On Thu, Sep 4, 2008 at 5:42 PM,  <[EMAIL PROTECTED]> wrote:
>
> Hi Angeline,
>
>> I'm new to batik. I have a the content of the SVg file as a String. Is
>> there a way to use this string in the
>> createDocument method rather than giving a URl or a InputStream ? or is
>> there any alternative way to
>> use this string in createDocument ?
>
>     The short answer is no, you need to provide an InputStream/Reader but
> since there is
> java.io.StringReader which turns a String into a Reader you can use that
> with
> the Reader variant of createDocument.
>
>

Here is the blog entry that I wrote long time ago on how to build a
DOM from String.
Same with Thomas answer, it is wrap the string into StringReader

http://blogs.kiyut.com/tonny/2007/08/23/how-to-convert-svg-string-to-svgdocument/

Cheers
Tonny Kohar
-- 
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to