xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vyang <vy...@apt-cafm.com>
Subject Re: desc text add problem
Date Tue, 06 Nov 2007 14:23:12 GMT

Hello Thomas,

I've already tried printing the pattern.getPatternName() as well as inputing
a string such as 'hello' and the effect is still the same.  As for
serializing the document, I haven't looked at that since its been working
fine, but I'll do that.


thomas.deweese wrote:
> 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?

View this message in context: http://www.nabble.com/desc-text-add-problem-tf4752451.html#a13607616
Sent from the Batik - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message