AW: [xml] indent in the output file



-----Ursprüngliche Nachricht-----
Von: xml-bounces gnome org [mailto:xml-bounces gnome org]Im 
Auftrag von
Philipp Spritzey
Gesendet: Mittwoch, 23. März 2005 13:32
An: xml gnome org
Betreff: [xml] indent in the output file


Hello all,

Thanks for your lightning fast response Alfred!

After using xmlTextWriterSetIndent(m_writer, MY_INDENT) and
xmlTextWriterSetIndentString(m_writer, MY_INDENT_STR)
with const MY_INDENT = 4 and const xmlChar MY_INDENT_STR[2] = " ",
i experienced, that there is no difference in the output,
whatever the indent parameter is 1, 2 or greater.

Is this a bug? How to i set an indent of 4 spaces?

xmlTextWriterSetIndent(m_writer, TRUE); // TRUE -> do indent, FALSE -> no indent
const xmlChar MY_INDENT_STR[5] = "    ";        // Your indent String is 4 blanks
xmlTextWriterSetIndentString(m_writer, MY_INDENT_STR);

Thanks!

Yours, Philipp

Servus -- Alfred



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