[xml] xmlIndentTreeOutput = 1??


i have a problem with the xmlSaveFormatFileEnc function.

if i write:

xmlIndentTreeOutput = 1;
xmlSaveFormatFileEnc("test.xml",doc,"UTF-8", 1);

there is no indent in the file, but if i use:


it works. the problem is that i don't want to set xmlKeepBlanksDefault(0).

so what's wrong by the first way?

i think the difference between this two way's for setting 
xmlIndentTreeOutput is that den second way is an function call in the 
library. but

Thomas R. 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]