You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, libxml2 added a safeguard against large xml files, which can be disable with the option XML_PARSE_HUGE. As a consequence LightXML no longer loads large files (in my case, large VTK files with ReadVTK).
A workaround is defining
function LightXML.parse_string(s::AbstractString; huge_tree=true)
options = 0
if huge_tree
options |= 524288
end
result = ccall((:xmlReadMemory, LightXML.XML2_jll.libxml2), LightXML.Xptr, (Cstring, Int, Cstring, Cstring, Int), s, sizeof(s), "", Ptr{Nothing}(), options)
LightXML._check_result(result)
end
The text was updated successfully, but these errors were encountered:
Recently, libxml2 added a safeguard against large xml files, which can be disable with the option XML_PARSE_HUGE. As a consequence LightXML no longer loads large files (in my case, large VTK files with ReadVTK).
A workaround is defining
The text was updated successfully, but these errors were encountered: