Hi Vyang,

vyang <[EMAIL PROTECTED]> wrote on 11/05/2007 10:51:42 AM:

> I'm having a bit of a problem with adding text to the desc element. When 
I
> add text to the desc element, it adds the text to the next line and not
> after the <desc>.  For example in the svg it'll look like this:
> 
> <rect>
> <desc>
> hello</desc>
> </rect>

   How are you serializing the SVG Document.  I suspect the 
serializer is causing the problem.  Most XML serializers will
move text children to a separate line so the SVG is readable.


> Element desc = patternDoc.createElementNS(null, "desc");
> desc.setTextContent(pattern.getPatternName());

    Just to test the obvious, 'pattern.getPatternName()'
doesn't start with a newline?

Reply via email to