I need to insert a xml(Word 2007 XML) to the aspose document. And one Aspose staff said that:
"
Hello
Thanks for your request. If you XML is MS Word document (I mean Word 2003 or Word 2007 XML) then you can try loading this XML into Aspose.Words Document object and process with Aspose.Words. Using Aspose.Words you can create, modify, edit, and merge any of MS Words documents. Please see the following link to learn how to insert a document into another document: https://docs.aspose.com/words/net/insert-and-append-documents/
If your XML document is in file, you should simply pass file name into the Document constructor, if it is in the stream, pass this stream into the constructor.
Please let us know if you need more assistance, we are always glad to help you.
Thanks for your request. Why do not you use the approach suggested earlier, i.e. using InsertDocument method? In the document, there is a certain nodes hierarchy, so you cannot insert a whole document after a paragraph as you do in your code. Please see the following link to learn more about document nodes hierarchy: https://docs.aspose.com/words/net/aspose-words-document-object-model/