Re: Patch for XML pretty printer

Jann Röder <[email protected]> Fri, 4 Sep 2009 12:51:15 +0200
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
> I discussed it with Franck yesterday.
> The issue is with the encoding. I was claiming that as he is writing
> STRINGs, then the XML declaration is required, because the encoding
> will be iso8859-1, but he said the actual serialization depends upon
> what XM_OUTPUT does down the line. Therefore the problem is difficult.

Hm, ok.

> The best way is not to use this pretty printer for serializing XML -
> really it's only a debug tool. The XSLT serializer should be used for
> serializing output (note this does not mean you have to run XSLT).

Ok I tried that, but using it seems extremely complicated. You need to 
create a new class and provide implementations for two features and then 
I still haven't figured out how to actually make it output an 
XM_DOCUMENT into a file. This serializer is clearly lacking some 
convenience features. In my opinion outputting a XM_DOCUMENT to disk 
with default settings should not require more than 4 lines of code.

Maybe I'm missing something, but could you provide a simple example how 
to go from XM_DOCUMENT to XML file on disk using the XSLT serializer?

Thanks,
Jann

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july