Is there any example on how to add a variable to a parser ?
Not sure what you mean. Does the built-in XmlParser provide an example of what you're trying to do?