Hi. Thanks for your reply.
But can you help me with an example of code implemetation? I' don't understand how must implements PrettyPrinter with my Dom Document of SVG (sorry for my English ) ;-) starting from source code I included in my previus message. Thanks a lot from Alessandro Peruzzi --- In [email protected], Thomas DeWeese <[EMAIL PROTECTED]> wrote: > Hi Peruzzi, > > Peruzzi Alessandro wrote: > > > When I create an SVG structure for example: > > > StringWriter strW = new StringWriter(); > > DOMUtilities.writeDocument(svgDoc, strW); > > svgStr = strW.toString(); > > strW.flush(); > > strW.close(); > > > now svgStr is a string with svg code. > > The ploblem is that this code is in only in one no formated row. > > This is because DOMUtilities outputs the DOM just as > you created it. > > > ex: > > <svg><text x="80" y="120" font-size="8" font-family="times" \ > > fill="yellow">hello world</text>....</svg> > > > > In only one row. I'd like this structure: > > <svg> > > <text ....>hello world</text> > >...</svg> > > You have two options. The first is for you to > create text nodes that introduce newlines/indent > where you want them. The other option is to use the > Batik SVG PrettyPrinting transcoder: > > org.apache.batik.transcoder.svg2svg.SVGTranscoder > > > I use normalize() methods but without any result for my scope. > > Why would you think that normalize would indent your XML? > > > I hope there is a solution. > > > > Thanks a lot. > > Alessandro Peruzzi > > > > > > > > > > > > ----- > > To unsubscribe send a message to: svg-developers- [EMAIL PROTECTED] > > -or- > > visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" > > ---- > > Yahoo! Groups Links > > > > > > > > > > > > > > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

