Ross Bamford wrote:

<snip>

>   /* define singleton methods as normal */
>
>   VALUE singleton = rb_singleton_class(cXMLNode);
>   rb_define_alias(singleton, "new_element", "new");

Bingo.  That's what you want.  I was just getting the singleton wrong.

- Dan