> -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Auftrag von > Philipp Spritzey > Gesendet: Mittwoch, 23. M�rz 2005 13:32 > An: [email protected] > 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 _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
