Hi Cerebrus;
Thanks a lot for your response, you are right I need more study on that and
I already started that,
I also used XmlElement that you mentioned and with a bit work manage to get
Elements and
show them on a web page,
The all work that I'm going to do is opening an XML file that is a
Configuration file (Something like an ini file)for another
program(Program-2), extract all configuration parasites(about 3*10
paramiters) show them in a web
page and let web users edit/change those parameters then save the XML file
again, so the Program-2 read this configuration file again next time when it
startup, I don't work on that Program-2 but I have to get an agrement with
the programmar of that program and he is not good on XML either but he
sugest the second XML file because it was
supported on his progamming language (Ace) ,
Can you please give me your suggestion, do you think an XML file with
Elements is a good
way for keeping configuration information, and would be simple editing that
XML file for me later, or is there a
better format that is more supported in ASP.NET/C# ,
Thank you in advance - Sam
"Cerebrus99" <zorg007@sify.com> wrote in message
news:1140469454.705553.59990@o13g2000cwo.googlegro ups.com...[color=blue]
> Hi Sam,
>
> I see you need a primer on XML and so my first suggestion is to read up
> a tutorial on XML Or a good book.
>
>
http://www.w3schools.com/xml/default.asp has a good one.
>
> To answer your questions,
>
> 1. They are NOT a different form of XML, they just contain different
> types of XML elements. The second type contains XML attributes. (Think
> of them as similar to HTML Tag attributes.)
>
> 2. What exactly do you mean by "Parse a file" ? What is it that you
> intend to do with the file ?
>
> 3. Using C#, an XmlElement has a GetAttribute method that you can use
> to retrieve the value of the attribute :
>
> Dim myElem as XmlElement = doc.DocumentElement
>
> if (myElem.HasAttribute("Active"))
> Dim status as String = root.GetAttribute("Active")
> Console.WriteLine(status)
> end if
>
> Regards,
>
> Cerebrus.
>[/color]