re: How to Update Document using SAX APIs?
David Megginson <[email protected]>
| Newsgroups | gmane.text.xml.sax.general |
|---|---|
| Message-ID | <[email protected]> |
Ghanshyam Prajapat, Noida writes: > pardon me if it looks a silly question , anyone tell me how to > update a document stored in a database using SAX APIs? SAX is primarily a reading API, not a writing API: reading a document from a database should be relatively straightforward (assuming someone has written a SAX driver for the database), and should look exactly the same to your application as a document read from a file or an HTTP connection. You can use SAX as a writer by generating SAX events and sending them to a client that knows how to create XML markup; in principle, the same thing should work for adding a complete document to a database (again, assuming that someone has written a driver), but SAX would not really be a good fit for doing an incremental update, since it's a serialized format rather than a random-access one (think of the difference between updating a file on a harddisk and updating a file on a magnetic tape; SAX is like the magnetic tape). All the best, David -- David Megginson, [email protected], http://www.megginson.com/ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ List: [email protected] See: http://www.saxproject.org https://lists.sourceforge.net/lists/listinfo/sax-users