What does an XML handle actually do (expat handle). I just don't get why you need a handle in the first place. What is its purpose? Your file handle keeps track of the position inside the file. The XML parser handle doesn't exactly need to remember anything. Can anyone help me out?