Hi All,    I have written an ATL COM component that wraps Xerces C++ parser.
I am firing necessary events for each of the methods that I have handled for
the Content and Error handler. These events can be trapped at the client
end. I am able to successfully parse XML input in the form of files.    I
also have provided support for parsing of XML content in the form of string
data. To do so I create a "MemBufInputSource" object from the input and pass
it to the parse method. Here I am providing the entire xml data as input.
This approach is workable but will cause problems when I have a large amount
of data to be parsed as I will have to load the entire data into memory.
The alternative to the above approach is too read the xml data in chunks and
then parse it. I have few queries related to this approach:1) Is it possible
to parse XML content in chunks i.e. in a progressive manner? 2) Should the
data chunk contain valid xml structure? The data chunk being passed to the
component may not be well formed.I have tried using parseFirst and parseNext
methods to achieve this. But here again the entire data is to be passed or
pointed to in parseFirst method, before making successive calls to parseNext
Is there some other way to use these methods? Thanking you in advance!
regards,
Girish-------------------------------------
Girish Chandran

Mail  : [EMAIL PROTECTED]
PH. (O)       : 020-25678900 extn. 2364



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to