Xlsxir v1.6.4 Xlsxir.ParseString View Source
Holds the SAX event instructions for parsing sharedString data via Xlsxir.SaxParser.parse/2
Link to this section Summary
Functions
Sax event utilized by Xlsxir.SaxParser.parse/2
. Takes a pattern and the current state of a struct and recursivly parses the
sharedString XML file, ultimately saving each parsed string to the ETS process
Link to this section Functions
Link to this function
sax_event_handler(arg1, state) View Source
Sax event utilized by Xlsxir.SaxParser.parse/2
. Takes a pattern and the current state of a struct and recursivly parses the
sharedString XML file, ultimately saving each parsed string to the ETS process.
Parameters
- pattern - the XML pattern of the event to match on
- state - current state of the
%Xlsxir.ParseString{}
struct
Example
Recursively sends strings from the xl/sharedStrings.xml
file to ETS process. The data can ultimately
be retreived from the ETS table (i.e. :ets.lookup(tid, 0)
would return something like "string 1"
).