FIRST EDIT
I take the Child 1 tag in DropDownList in C # form, Plz offers a code of best practice (C #) to remove the Parent tag and all its child tags in the XML file. Example:
<Parents> <Parent> <Child 1>Something</Child 1> <Child 2>Something</Child 2> <Child 3>Something</Child 3> <Child 4>Something</Child 4> </Parent> <Parent> <Child 1>Something 1</Child 1> <Child 2>Something 1</Child 2> <Child 3>Something 1</Child 3> <Child 4>Something 1</Child 4> </Parent> </Parents>
--- Previous question ---
How can I insert the following style sheet tag into my new xml file that is generated using C # code?
<?xml-stylesheet type="text/xsl" href="issuez.xsl"?>
C # code to create an xml file: -
new XDocument( new XElement("issues", new XElement("issue", new XElement("cat", comboBox1.Text), new XElement("desc", richTextBox1.Text), new XElement("end", dateTimePicker1.Text), new XElement("att", textBox2.Text) ) ) ).Save(path);
source share