Queryxmlnode

Can queryxmlnode be used to return a Node with child elements into a document type? If yes, then how what should be the type of the target variable when building a WQL/SQL

Thanks,
Mow