Re: XML as a config file (was: Re: Gnome-Bugs and SMTP)
- From: James Henstridge <james daa com au>
- To: Ali Abdin <ALIABDIN aucegypt edu>
- cc: gnome-devel-list gnome org
- Subject: Re: XML as a config file (was: Re: Gnome-Bugs and SMTP)
- Date: Wed, 10 Nov 1999 22:05:27 +0800 (WST)
There is nothing wrong with having more than one package element like you
have (think of html (it is almost like XML) -- there is nothing preventing
you having multiple paragraphs).
As for the root element, there is only one root element in a document (if
there is more than one, then the document is not well formed.
James.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Wed, 10 Nov 1999, Ali Abdin wrote:
> Okay now another question - Can we use the same tag-names several times?
>
> i.e.
> <package>
> <name>gnome-libs</name>
> <version>1.0.53</version>
> </package>
> <package>
> <name>gnome-core</name>
> <version>1.0.54</version>
> </package>
>
> My understanding of XML tells me this is okay - and it is up to me how
> this is handled (i.e. it'll just sequentially go on to the next one)
>
> oh by the way - what if there is /more/ than one root element (like the
> whole above example is the entire .xml file) - When I reach the last
> element of the first block when I do a 'cur = cur -> next' will it go to
> the next root element?
> I really am learning a lot from the awnsers to these questions :)
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]