Check the following modifications to the example:
El Martes, 3 de Agosto de 2004 05:54 AM, Arx Henrique escribi�:
>
> this is the code:
>
> using System;
> using System.Xml;
>
> namespace DotNetXmlSample
> {
> public class XmlSample
> {
> static void Main(string[] args)
> {
> XmlDocument SampleDoc = new XmlDocument();
> XmlNode RootNode = null;
> XmlNode RegionNode = null;
> XmlNode RegionDescription = null;
> SampleDoc.Load("/home/ahcruz/teste.xml");
> RootNode = SampleDoc.DocumentElement;
if (RootNode == null)
Console.WriteLine("here is your problem? malformed
document?");
> RegionNode = RootNode.ChildNodes[0];
> RegionDescription = RootNode.SelectSingleNode("description");
> RegionDescription.InnerText = "Reeeeeealy fast";
> SampleDoc.Save("/home/ahcruz/teste_2.xml");
> }
> }
> }
>
> And this is the xml file
>
> <?xml version="1.0"?>
> <links>
> <category xmlns="prog">
> <address>one addres</address>
> <description>one description</description>
> </category>
> <category xmlns="prog2">
> <address>two addres</address>
> <description>two description</description>
> </category>
> </links>
>
> thanks a lot of
>
> Arx Henrique
>
> _______________________________________________
> Mono-list maillist - [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
--
Israel Fdez Cabrera
Usuario Linux: 270292
Ciudad La Habana, Cuba.
Segurmatica.
[EMAIL PROTECTED]
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list