xmlNewDocFragment has already set xmlNode->doc, no need to do that again.
Attach a file by drag & drop or click to upload