![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: IXMLDOMDocumentPtr::save don't format output [Thread Next] Re: IXMLDOMDocumentPtr::save don't format outputTo: NULL Date: 1/13/2005 1:17:00 PM Martin Honnen wrote: > > > Gorgen Givik wrote: > > >>> However if you construct a new document from scratch using DOM >>> methods (e.g. createElement, createTextNode, appendChild) then indeed >>> you need to ensure yourself that the document is properly formatted >>> for saving. One way to do that is to use XSLT to format the document, >>> this older post contains an XSLT 1.0 stylesheet doing that: >>> <http://groups-beta.google.com/group/microsoft.public.dotnet.xml/msg/3545b35d0886d49c?dmode=source> >>> >>> Can't help you with C++ but perhaps you are able to transcribe the >>> JScript code to C++ yourself. >>> > > >> Indeed I create the structure from scratch, so unfortunatly I can't use >> .preserveWhiteSpace > > > But you can use XSLT on the created document to create a new one with > proper indentation, see the link in my quoted earlier reply above, there > you find an XSLT 1.0 stylesheet. > > Thank you for the help Görgen | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
