The files are always read by chunks in a buffer and parsed.
The last sample "providing your own data to SAX parser" show you how to to
that.
But I think I should provide a function that takes as parameter a callback
function.
Le jeudi 19 juillet 2012 08:43:01 UTC+2, dhruvbird a écrit :
>
> Is it possible to feed this parser an incomplete XML stream and then pass
> it the rest of the stream? Something like a sax parser? I'm asking since
> all the examples show that you are passing a complete xml document to the
> parser every time.
>
> On Wednesday, July 18, 2012 12:24:30 PM UTC-7, Henri Gourvest wrote:
>>
>> Le 18/07/12 17:56, Angelo Chen a �crit :
>> >
>> > How to extract a element from a XML string?
>>
>> non SAX functions return objects like this
>>
>> {
>> name: "root",
>> attrib: {...}
>> childs: [...]
>> }
>>
>>
>>
>>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en