From: Jann R. <roe...@et...> - 2009-09-04 10:51:31
|
> 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 |