local name, path = vlc.strings.convert_xml_special_chars(item.name or "",item.path or "")
local currentItem = vlc.input.item().uri( vlc.input.item() )
local current = ""
if currentItem == path then
current="current='current'"
end
print("<leafid='"..tostring(item.id).."'uri='"..path.."'name='"..name.."'ro='"..(item.flags.ro and "ro" or "rw").."'duration='"..tostring(item.duration).."'"..current.."/>")
<leafid="10"current="current"uri="file:///mnt/stuff/media/Nirvana/Nevermind/01 - Smells Like Teen Spirit.mp3"name="Smells Like Teen Spirit"ro="rw"duration="-1"/>