I have file that Im writing to using the appendchild function and then save. It works, but the problem is that it doesnt insert line item and indent the tag properly, each childnode gets written on the same line one after another. Is there a function or class that can indent the child nodes automatically besides doing it via xmltextreader?