Problem with XML

I written a class, loading XML. How can I call the XML class when Event COMPLETE, because now it trace me NULL.