Commit 2e245119 authored by Marvin Scholz's avatar Marvin Scholz Committed by Jean-Baptiste Kempf

lua: Add parse_stream method to simplexml

Add a function to simplexml that allows parsing a
stream, which the module already does but
is not exposing this at all, for no obvious
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 2bfd9e80
...@@ -90,6 +90,10 @@ function parse_url(url) ...@@ -90,6 +90,10 @@ function parse_url(url)
return parsexml( return parsexml(
end end
function parse_stream(stream)
return parsexml(stream)
function parse_string(str) function parse_string(str)
return parsexml(vlc.memory_stream(str)) return parsexml(vlc.memory_stream(str))
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment