Jalaj P. Jha Technical & Miscellaneous Ramblings

21Dec/060




Easy way to writing XML

The Microsoft XML component was OK for me, till I needed to write XML to be created, as previously I mostly needed it for parsing existing XML files. The biggest drawback I found was that it didnot format the generated XML with indents etc, and the result xml was a long string. As I was supposed to provide indentation also, I did it anyhow by calculating spaces required for each node... don't ask me how? It took me time, and if ever need to re-do the same, that would take even more...