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
Wondering if readxml(::IOBuffer) is a valid use case?
# works
xml ="<text>Hello, World</text>"@showparsexml(xml)
# ERROR: LoadError: XMLError: Document is empty from XML parser (code: 4, line: 1)
io =IOBuffer()
write(io, xml)
@showreadxml(io)
I think the current readxml function may be dependent on the layout of IOStream? Perhaps the following needs to be adapted to work for ::IO rather than just ::IOStream:
I think the context argument needs to be a C FILE *? It was difficult for me to find clear documentation for libxml2. I'm happy to PR a fix+tests once I understand what to do with an IOBuffer.
The text was updated successfully, but these errors were encountered:
Wondering if
readxml(::IOBuffer)
is a valid use case?I think the current
readxml
function may be dependent on the layout ofIOStream
? Perhaps the following needs to be adapted to work for::IO
rather than just::IOStream
:EzXML.jl/src/document.jl
Lines 147 to 160 in 8cc2855
I think the
context
argument needs to be a CFILE *
? It was difficult for me to find clear documentation for libxml2. I'm happy to PR a fix+tests once I understand what to do with anIOBuffer
.The text was updated successfully, but these errors were encountered: