Creating a Document in Fragments
"John J. Boyer" <[email protected]> Fri, 4 Jun 2004 17:28:38 -0500 (CDT)
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <[email protected]> |
Hello, I've just started using GDOME2, so here's a newbie question. My application receives a file on stdin. If it is a valid xml document I want to process it using GDOME2. If it is not a valid xml document, I want to fall back on processing it as plain text. From my reading of the source code for GDOME2, it looks like that if I want to use CreateDocumentFromMemory I will have to read in the entire document. Is this the case, or is it possible to read in a large document in chunks of say 8192 bytes? Thanks, -- John J. Boyer; Executive Director, Chief Software Developer Computers to Help People, Inc. http://www.chpi.org 825 East Johnson; Madison, WI 53703