We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Loading XML String as a document

Hi Aspose Team ,

Can i load my string which has XML into the stream and load it has a document ?

Sample code :

string XML = GetCurrentxml();

Document doc = new document();

doc.Save(XML) ;

Please let me know ,if this one works !


Regards,
Jaswanth



Hi Jaswanth,


Thanks for your inquiry.

I
am afraid, you can not open a simple XML file using Aspose.Words
component. However, Aspose.Words provides exhaustive support for
different XML-based formats for word processing documents e.g. OOXML,
Flat OPC and also Word 2003 XML. For more details, please visit the
following link:
http://www.aspose.com/docs/display/wordsnet/WordprocessingML+%28DOCX%2C+XML%29

Please let us know if you have any more queries.