Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some confusing points about the source code and where to find a good documentation? #97

Open
bsnyh opened this issue Jun 13, 2019 · 0 comments

Comments

@bsnyh
Copy link

bsnyh commented Jun 13, 2019

Hi, very nice work indeed. I was reading your source code and I have several confusing points which would be wonderful if you can shed some lights on them.
Inside of the file runtests.jl, I have the following piece of code.

cbs.start_element = function (h, name, attrs)
       global found_start_element = true
       global start_element_name = name
       global first_attr_start_element = collect(keys(attrs))[1]
       global first_attrval_start_element = attrs[first_attr_start_element]
end

cbs.end_element = function (h,name)
       global found_end_element = true
       global end_element_name = name
end

My question about the above code is: it seems like the function parameter h is never used inside of the two function definitions, right? Or am I wrong about it?
Inside of the streaming.jl, I have the following code.

mutable struct XPStreamHandler{D}
         cbs::XPCallbacks
         parser::XML_Parser
         data::D
end 

My question about this above code is that, it seems that I can not find XML_Parser anywhere, and it is really strange.

Finally, it would be wonderful if you can point to me some references / documentations for streaming large xml files with the help of the XPCallbacks. Would this be doable then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant