Exampple.Xml.Stream (exampple v0.10.6)
Process a stream chunk by chunk to obtain a XML document. The stream is initiated passing a PID where the information from the chunks are going to be received.
The parser is using Exampple.Xml.Parser.Sender
which is
responsible to convert the stream data into a valid %Xmlel{}
and send it back to the specified process.
Link to this section Summary
Functions
Creates a new Saxy.Partial
struct to parser little by little
the incoming stream. The information is sent back to the pid
passed as a paramter, by default this is set as self()
.
Use it to send every chunk of the XML document(s) we want to
parse. Every chunk
will be sent back to the process passed
initially in the new function through the partial
parameter.
When we wants to send the rest of the XML document(s) we
have to use this function which let us to finalise the
partial
data.
Link to this section Functions
new(pid \\ self())
Creates a new Saxy.Partial
struct to parser little by little
the incoming stream. The information is sent back to the pid
passed as a paramter, by default this is set as self()
.
parse(partial, chunk)
Use it to send every chunk of the XML document(s) we want to
parse. Every chunk
will be sent back to the process passed
initially in the new function through the partial
parameter.
terminate(partial)
When we wants to send the rest of the XML document(s) we
have to use this function which let us to finalise the
partial
data.