![]() |
![]() | ![]() | ![]() | 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 output Re: IXMLDOMDocumentPtr::save don't format outputTo: NULL Date: 1/5/2005 12:46:00 PM 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. -- Martin Honnen http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
