How do you initialize the xml variable?
Also, are you using 1.5.1 or 2.0b? The XML handling changes a lot between the two versions. The wiki probably refers to the old method.
Also, are you using 1.5.1 or 2.0b? The XML handling changes a lot between the two versions. The wiki probably refers to the old method.