yvfrzeti

.net site map sitemap.xml

xmltext = xmldoc.CreateTextNode (" "

); );The statement of paragraph

XmlNode xmlnode = xmldoc.CreateXmlDeclaration (" 1.0" " gb2312", null,

XmlElement xmlelem1 = xmldoc.CreateElement (" " " book",, " "

xmltext = xmldoc.CreateTextNode (" "

); );

xmldoc.AppendChild (xmlnode);

/ / add a child element of the

XmlDocument xmldoc = new XmlDocument (

);

xmlelem.AppendChild (xmltext);

/ / add a root element of

/ / add XML

)

/ / sub element " book" add two properties

{

xmlelem1.SetAttribute (" genre" " ",, " fantasy"

xmlelem1.AppendChild (xmltext);

xmldoc.AppendChild (xmlelem);

1., xml

Here is Demo

xmlelem>

protected void btn1_OnClick (object sender, EventArgs e

/ / create XML file method

); drawing the lessons of others

);

XmlElement xmlelem = xmldoc.CreateElement (" " " bookstore",, " "

XmlText xmltext;

Leave a Reply

Your email address will not be published. Required fields are marked *