|
||
|
|
#1 (permalink) |
|
Forum Expert
|
How do i create a XML file? so far my code look like this.
Code:
XmlDocument catchdocXML = new XmlDocument();
catchdocXML.CreateXmlDeclaration("1.0", "UTF-8", "yes");
catchdocXML.CreateElement("main");
catchdocXML.Save(@"Annuaire.xml");
MessageBox.Show("Le fichier Annuaire.XML etait inexistant, celui ci a eter creer automatiquement, VEuiller recommencer.");// the file had not been found, a new one has been created, please try again.
__________________
Admin of Crystal World, French shard Under Construction http://www.crystalworld.over-blog.com/ If there is another lifeform in the universe, they are wise enough to avoid our babaric civilisation. |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
Look at my XML tutorial in the FAQ forum (and I think i have a link to it in my sig). It shows one way to create an xml file. There are many more ways to do it, but that was the only way I actually knew how when i wrote the tutorial.
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|