I'm not sure if anyone answered this... But a couple of things 1.) what's a XMLFragment -> is this a cocoon class??? And what really is an XMLFragment, e.g. is it a org.w3c.dom.DocumentFragment. If so a DocumentFragment is already a node so no need for a conversion. DocumentFragments are used throughout the authentication and session pieces of code...
2.) As to the NULL pointer another clue maybe the following. If a XMLFragment is really derived from a w3c.dom node... and you've created a document, and then a node (dummy). Basically these two set's of nodes (dummy vs the XMLFragment) are from different documents and to get one into the other you need to "import" it otherwise you get null pointer exceptions. Your appending in a fragment from another document and that typically doesn't work until you import the fragment in. Look at either the Document or the node class for an import method. Not sure if that helps, md --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>