I know what tutorial your talking about , I saw it in the manual.
I think the resource data type is new to php4, its kinda like a reference (pointer) to another resource (can contain methods properties, functions, constants whatever). In other languages, if you print the value of a reference (pointer) without de-referencing it you'll just get a hexidecimal value of its address in memory. I think that the php resource is similar, except it can point to more than just variables (in memory).
Basically, $parser is whatever you make it, in this case its asigned a resource - an xml parser resource.
so:
$parser = xml_parser_create();
$parser is now used as a resource handle to php's xml parser kinda like you would a file-handle to manipulate a file. So when you use functions like xml_parser_into_struct(), xml_parse(), xml_parser_set_option() etc..., you'll need to pass the resource id ($parser) to these functions so it can know which resource to use, set options to etc...
I've been working on an XMLSocket class (in PHP) that will not only retrieve xml from a remote server but can also be used a an xml parser for organizing xml into a structure. If you (or anyone else) would like to test/check it out, I've just finished my first stable (I think 🙂 ) release. It has alot of good examples for you to check out.