example from libxmljs README