Re: package.xml 2.0 dilemma
| From: | Justin Patrin | Date: | Fri, 03 Jun 2005 03:09:03 +0000 |
| Subject: | Re: package.xml 2.0 dilemma | ||
| References: | 1 2 3 | Groups: | php.pear.dev php.pear.core |
| Request: | Send a blank email to pear-dev+get-37947@lists.php.net to get a copy of this message | ||
On 6/2/05, Greg Beaver <cellog@php.net> wrote:
> Justin Patrin wrote:
>
> > Well...it seems you have to sequence your XML to have multiples of a
> > tag. I suppose this makes some sense as otherwise you basically have
> > an assoc array. Still, though, it doesn't make much sense to me to
> > force sequencing for most of the tags as they're pretty much just an
> > assoc array.
> >
> > IMHO as long as the sequence doesn't actually mean anything (i.e. you
> > could change the sequence and it wouldn't change the meaning) then the
> > tags shouldn't be forced to be in a certain sequence. It would make
> > perfect sense to me to take out the sequencing and have child
> > sequences to allow for multiples of the same tag. I also think this
> > would be easier to use.
>
> Quick note - you're talking about arrays, but I was speaking of XSchema,
> which is the standard used to document the contents of package.xml.
> Implementing this in PHP using arrays is the easy part!
>
No, I'm talking about the XML. If the sequence doesn't mean anything
then I don't think it makes sense to enforce one.
--
Justin Patrin