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

Free Support Forum - aspose.com

Error while converting xml to docx

When converting the attached XML to docx we get the following error. The error does not happen if we convert the attached XML to doc.

Error Details: Input string was not in a correct format…

at System.Number.StringToNumber(

String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Ḫ.‗.‚(ऻ ᣍ, ḩ ൙)
at Ḫ.‗.ඟ(ऻ ᣍ, ࢧ ᄡ, ḩ ൙)
at Ḫ.⁅.:interrobang:(ऻ ᣍ, ࢧ ᄡ, ḩ ൙)
at Ḫ.‗.ඟ(ऻ ᣍ, ࢧ ᄡ, ḩ ൙)
at Ḫ.—.―(Paragraph ᄀ, ḩ ൙)
at Ḫ.—.ඟ(ḩ ൙)
at Ḫ.‑.–(CompositeNode ‒, ḩ ൙)
at Ḫ.≆.ඟ(ḩ ൙)
at
Ḫ.ḩ.ඟ()
at Aspose.Words.Document.࠿(Stream ك, LoadFormat ࡀ, String ء)
at Aspose.Words.Document…ctor(String fileName, LoadFormat loadFormat, String password)
at Aspose.Words.Document…ctor(String fileName)
at Incisive.Verifier.WordML.Handler.WordMLHandler.ConvertXMLToDocx(XmlDocument&
xmlDoc, String docDir, String docNameWithExtension, String
finalDocName, Boolean annotate) in d:\whb\Sites\13536\Web\qa\App_Code\Classes\WordML\Handler<wbr>WordMLHandler.cs:line 161

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. It seems to be that your WordML is corrupted. I cannot open it using MS Word on my side. Could you please check it on your side?

Best regards.