Xml node string to boolean conversion


I am using the XML node to convert an XML formatted string to js object. How can I convert an element value formatted as string ("true", "false") to a boolean datatype in the js object?
in the xml2js docs there seems to be an out-of-the-box processor called parseBooleans

I am aware of the msg.options input in the XML node. (I use it for things like explicitArray)
valueProcessors is another option but this needs an Array of functions as it's value.
My question: is it possible to use this option? if so, how should I format the options message?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.