xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: desc text add problem
Date Tue, 06 Nov 2007 11:46:53 GMT
Hi Vyang,

vyang <vyang@apt-cafm.com> 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?

Mime
View raw message