Hi Philippe,
that is close to what I was searching for. I was glad to see that top feeder is using the
audioscrobbler code (only a few tweaks). Did I miss somehting or is this just the parsing
of the format?
The code does not seem to be audioscrobbler dependent. Is there a chance to rip the XML
part out of the package? Adding a writer to this code base would already lead to a descent
magritte XML handling as far as I could see from a short peek.
Norbert
On 09.02.2010, at 21:43, Philippe Marschall wrote:
2010/2/9 Norbert Hartl <norbert(a)hartl.name>me>:
Hi,
at the moment I'm thinking about a new project. The project will need a Web API to
communicate with an iphone. To me it is quite obvious to implement the API part as a
request handler. But when it comes to generation of e.g. XML I'm not sure what is the
best way to do.
Sure, the seaside way to do it is to create my own canvas and every object needs to draw
itself onto the canvas. But then I have magritte and a lot could be done automatically.
Using xpath in the descriptions I could use Pastell to deserialize objects. To produce the
output there could be a similar way. This would be some kind of XML binding then.
I wanted to ask if there is anything already available that could help me on my way or if
there dedicated ideas how to solve this in seaside.
The AudioScrobbler [1] and TopFeeder [2] projects uses Magritte for
XML to object binding.
[1]
http://source.lukas-renggli.ch/audioscrobbler.html
[2]
http://source.lukas-renggli.ch/topfeeder.html
Cheers
Philippe
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki