ı wanna create xml file on aspx.cs but ı have no idea what ı need to do.can anyone help me?
ı don’t want to use database.just this way.
- <categories>
- <category>
<id>0</id>
<name>Music</name>
</category>
- <category>
<id>1</id>
<name>Sport</name>
</category>
- <category>
<id>2</id>
<name>News</name>
</category>
</categories>
You could use the
XDocumentclass from theSystem.Xml.Linqnamespace:This outputs:
XDocument Class