How to add xml-Stylesheet line to xml-file? [modified]
-
Hi, i'd would like to add that line to my xml file using the xmlDocument-Class but i don't know how? Atm i use the following code
using (XmlWriter writer = XmlWriter.Create(FullFilePath, settings))
{
//Add Stylesheet
writer.WriteRaw(string.Format("", Globals.StylesheetXSL));
//write root Element
writer.WriteStartElement("root");
writer.WriteEndElement();
writer.Flush();
writer.Close();
}-- modified at 10:49 Thursday 30th August, 2007
-
Hi, i'd would like to add that line to my xml file using the xmlDocument-Class but i don't know how? Atm i use the following code
using (XmlWriter writer = XmlWriter.Create(FullFilePath, settings))
{
//Add Stylesheet
writer.WriteRaw(string.Format("", Globals.StylesheetXSL));
//write root Element
writer.WriteStartElement("root");
writer.WriteEndElement();
writer.Flush();
writer.Close();
}-- modified at 10:49 Thursday 30th August, 2007
-
error1408 wrote:
using the xmlDocument-Class
error1408 wrote:
using (XmlWriter writer = XmlWriter.Create(FullFilePath, settings))
XmlWriter is NOT XmlDocument. I strongly recommend you use the documentation[^] to find information.
-
I KNOW, that is the code I use at the moment... I do not know how to do exactly the same with the xmlDocument-Class. Thats why i'm asking.
-
error1408 wrote:
I do not know how to do exactly the same with the xmlDocument-Class.
I fail to see how that negates my original reply... I strongly recommend you use the documentation to find information.
-
I searched the documentation for my problem. And i found nothing. I checked every method. And because i found nothing, i asked you.
-
-
I wonder why Microsoft keeps hiding this information in the documentation? :confused:
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
I wonder why Microsoft keeps hiding this information in the documentation? :confused:
"We make a living by what we get, we make a life by what we give." --Winston Churchill