commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@gmail.com>
Subject Re: [chain] fixed, one-way chains, only?
Date Mon, 14 Mar 2005 05:02:24 GMT
Commons Chain isn't about parsing documents, it is about executing
commands.  If you are after converting your XML document into some
sort of data structure, you probably want to look at Commons Digester
instead.

Craig


On Sun, 13 Mar 2005 17:43:40 +0100, tmp@nitwit.de <tmp@nitwit.de> wrote:
> Hi!
> 
> I yet only had an quick look at Commons Chains. Am I right that a GoF/Commons
> chain does have a fixed one-way flow, only? I want to use the lib in order to
> parse the iTunesDB which looks like this
> (http://www.ipodlinux.org/ITunesDB#iTunesDB_file):
> 
> <mhbd> - This is a database
>   <mhsd> - This is a list holder, which holds either a mhlt or an mhlp
>     <mhlt> - This holds a list of all the songs on the iPod
>       <mhit> - This describes a particular song
>         <mhod>... - These hold strings associated with a song
>         <mhod>... - Things like Artist, Song Title, Album, etc.
>       <mhit> - This is another song. And so on.
>         <mhod>...
>         <mhod>...
>       ...
>   <mhsd> - Here's the list holder again.. This time, it's holding an mhlp
>     <mhlp> - This holds a bunch of playlists. In fact, all the playlists.
>       <mhyp> - This is a playlist.
>         <mhod>... - These mhods hold info about the playlists like the name of
> the list.
>         <mhip>... - This mhip holds a reference to a particular song on the
> iPod.
>         ...
>       <mhyp> - This is another playlist. And so on.
>         <mhod>... - Note that the mhods also hold other things for smart
> playlists
>         <mhip>...
>         ...
>       ...
> 
> As you can see, it's not mhdb -> mhsd -> mhlt but the flow may also be mhbd ->
> mhsd -> mhlp. And esp. mhod is used everywhere. So, what I need is something
> like the struts config. This cannot be done with Commons Chain, can it?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message