This content has been marked as final. Show 3 replies
myXML is local to the function there (by declaring var myXML).
Pass the node to the function.
Thanks for your reply. The array is now being populated but I am unable to access it from elsewhere in the application i.e. myVar = budgetImpactValues doesnt work. Is this due to the scope of the array being inside a function? I didn't think it was because it's declared outside the function...
My bad, I assumed myXML was inside a function (stupid I know because you don't show it inside a function).
The code should be:
So, you don't need to pass the node to the function.
You should be able to access the budgetImpactValues array since it is a timeline var. But, you can only access it AFTER the xml is parsed and the array is populated. Maybe you are trying to access it to quickly... can't see that here.