On Thu, 14 Jun 2001 14:27:07 +0200
"Per Nyfelt" <[EMAIL PROTECTED]> wrote:

> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Behalf Of Lars Martin
> > Sent: den 14 juni 2001 10:57
> > To: [EMAIL PROTECTED]
> > Subject: Re: XMLResource
> > > I'm not sure how to do XMLResource.setContentAsSAX(). What should the
> > > ContentHandler you return from here do? Any examples?
> >
> > The returned ContentHandler is application or better implementation
> > specific, what means that only this ContentHandler knows how to handle
> > SAX events and how to store them in your Ozone DB. But note that you're
> > on client side and that you have to stream the thrown SAX events to
> > server side to provide maximum performance. (but this is very Ozone
> > specific)
> 
> Sorry, I still don't see clearly how it works. Any chance you could give me
> an example from a user perspective?

I hope you can identify this *nice* ASCII diagram :-)

     ---------------------                           ---------------
    |  Client-Application |                         |Remote-Database|
    |                     |                         |               |
    |                     |                         |               |
    |                     |-------------------      |   store all   |
    |     (XML-Reader)    |  XML:DB Database  |     |   catched     |
    |      SAX-Parser <-->| setContentAsSAX() |<--->|   events      |
    | setContentHandler() |-------------------      |               |
    |        /|\          |                          ---------------
     ---------|-----------
              |
              |
           XML-File

With this you can pass/stream throws SAX events from your client
application to the database and store the events in your "internal"
format. You don't need to create a DOM document or something else.
You're working with events. That's all...


> 
> Best regards,
> Per
> 
> 
> ----------------------------------------------------------------------
> Post a message:         mailto:[EMAIL PROTECTED]
> Unsubscribe:            mailto:[EMAIL PROTECTED]
> Contact adminstrator:   mailto:[EMAIL PROTECTED]
> Read archived messages: http://archive.xmldb.org/
> ----------------------------------------------------------------------


--
______________________________________________________________________
Lars Martin                                    mailto:[EMAIL PROTECTED]
SMB GmbH                                        http://www.smb-tec.com


----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact adminstrator:   mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to