Java and Xml

when i trying to read the xml file using the SAX parser
when i try to use global variables and set these global variables
to some values and use these values in the methods like
startElement they r found to be null...

the way to workaround to this problem is using static vars
then this problem get solved...
i think there some bugs in the API for XML..

whats ur say guys....

feel free to contact me at mittal.bhiogade@patni.com