A generic function to convert list to XML

listToXml(x, ...)

Arguments

x

list to be converted

...

arguments passed to methods