[openbeos] Re: Support Kit -- XML vs BMessages

DarkWyrm <bpmagic@xxxxxxxxxxxxxxx> wrote:

><breaking out the fire extinguisher>
Yeah, this is really necessary now.

>Call me attempting to prevent a flamefest, how's this grab you? A minor 
>extension of the BMessage class: PrintToStreamXML()/ReadFromStreamXML(). The 
>IK team *already* needs to rewrite the whole class, including 
>PrintToStream(). It would be a simple matter to add a few tags and such in 
>the process of dumping it.

Nice idea, but I think I have a much nicer one.

We should not spend our time discussing how we could
extend the api once we have implemented the current one.

Anyone whishing to write an XML kit is free to do so,
independent of the OpenBeOS project.

For example, you could create an BXMLStorage class,
haing member functions like 
class BXMLStorage : public BArchivable (or even BMessage)
status_t SetToBMessage(const BMessage *); //initialize from BMessage
status_t ArchiveToBMessage(BMessage *); //store data in to a BMessage

You can already do this, create an libxml.so, and release it on BeBits.
Later we can implement this into OpenBeOS, but I would really
appreciate if we would focus on the current BeOS API, until we
have a running OpenBeOS.

BTW, I started writing a CAPI implementation and ISDN drivers
for AVM's active ISDN card before I joined the OpenBeOS project.
It's not finished, and probably can be integrated into OpenBeOS
later. But it will be released on BeBits first, and is not needed for 
OpenBeOS!

regards
Marcus
 

Other related posts: