That looks like the .Net XML stuff, yes? So C# I'm guessing.
You need to create and append nodes for each element.
If this is a batch write, I find the XmlWriter a lot simpler and cleaner to use. The inside of your loop would look something like this:
wtr.WriteStartElement("Line");wtr.WriteElementString("Name", strDefaultName);wtr.WriteElementString("Score", (lDefaultScore - (iCounter * lLowerScore)).ToString());wtr.WriteEndElement();
If you use an XmlWriter, make sure to create an XmlWriterOptions (I think its called) for its constructor and set the Indent property to true. The default is to generate a text stream without any newlines. Indent=true on the XmlWriterOptions will format the stream like you probably want it.