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

Free Support Forum - aspose.com

Reading WordProcessingML documents (Office 2003) with CustomXmlMarkup

Hello .


We are currently using Aspose.Words (.NET) ver 2009.11.12
in a project for conversion from WordProcessingML (Word 2003) to RTF .

Our documents are XML files (WordProcessingML) created with Word 2003.
And they contain CustomXmlMarkup elements .

(Our use of those is for some kind of Merging Fields)

Now our purpose is to convert all the documents ( there are thousands of them )
to Word 2013 ,
and as we’ve found out CustomXmlMarkup is no longer supported by MS
due to a court decision about patent violation .

We have downloaded a trial of the newest version of Aspose.Words (2015.06.30 )
, and intend to upgrade our licensed Aspose.Words to this version.

The problem is that during the conversion we have to somehow read these fields from old document
( for creating something similar using Content Controls in the new 2013 documents)

And in the following code:

Aspose.Words.Document doc = new Aspose.Words.Document(@“C:\Temp\OldDocument.xml”);
var customXmlMarkupNodes = doc.GetChildNodes(NodeType.CustomXmlMarkup, true);

GetChildNodes returns empty collection , and actually it says that NodeType.CustomXmlMarkup is obsolete …

How can we use Aspose.Words ( or maybe other suggestion ) to read the CustomXmlMarkup elements from old document for the conversion ?
Sure that we understand that we cannot create these elements anymore.

Thanks .

Hi Lior,

CustomXmlMarkup is not supported by Aspose.Words anymore and the reason is same as you have mentioned in your post. You will not be able to use latest versions of Aspose.Words for this purpose.

The only thing I can suggest at the moment is to use an older version (15.4.0 or older) of Aspose.Words.

Best Regards,