To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9776
9775  |  9777
Subject: 
Re: Request change to ptreleases.cgi
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 2 Aug 2004 16:06:07 GMT
Viewed: 
2428 times
  
In lugnet.cad.dev, Travis Cobbs wrote:
I'm not really up on XML, but it looks fine to me.

Looking at this some more...

The script currently returns XML with 3 lists of distribution files:
  BASE
    - file ZIP
    - file ARJ
  COMPLETE
    - file ZIP
    - file ARJ
  UPDATE
    - file ZIP
    - file ARJ
    - file ZIP
    - file ARJ
    - file ZIP
    ...

It could be argued that this should be either changed to a totally flat,
straight list of files (sort of the XML equivalant of the tab-delimited list),
or modified to a more hierarchical presentation.

A straight list:
  <releases>
    - file BASE ZIP
    - file BASE ARJ
    - file COMPLETE ZIP
    - file COMPLETE ARJ
    - file UPDATE ARJ
    - file UPDATE ARJ
    - file UPDATE ARJ
    - file UPDATE ZIP
    ...
  </releases>

Hierarchical:
  <releases>
     <release 0.27>
       <current>base</current>
       <base>
         - file ZIP
         - file ARJ
     <release 2004-02>
       <current>yes</current>
       <complete>
         - file ZIP
         - file ARJ
       <update>
         - file ZIP
         - file ARJ
     <release 2004-01>
       <current>no</current>
       <update>
         - file ZIP
         - file ARJ
     ...
     <release 1997-15>
       <current>no</current>
       <update>
         - file ARJ


... or the XML could easily return both sets of information in a single stream.

I suppose the 'best' organization depends on what one wants to do with the data.

Steve



Message has 1 Reply:
  Re: Request change to ptreleases.cgi
 
(...) I actually considered that when you made your original post. However, there are actually multiple different perfectly valid heirarchies, and for this reason I think the flat list is better overall. Here's an example with a different (...) (21 years ago, 2-Aug-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: Request change to ptreleases.cgi
 
(...) I'm not really up on XML, but it looks fine to me. I do have a question, though. Is there some significance that I am missing to naming the root element "opt"? --Travis Cobbs (21 years ago, 31-Jul-04, to lugnet.cad.dev)

18 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR