w:fldSimple getting removed

I am opening my generated WordML document and wish to make some adjustments using Aspose.Words 6.1. I then save the document back as WordML. The same symptoms exist if I save as Doc or Docx.

This is the code I am using to open/save:

Dim OutputFileName As String = "C:\doc.xml"
Dim asp As New Aspose.Words.Document(OutputFileName)
asp.Save("C:\doc1.xml", Aspose.Words.SaveFormat.WordML)

In my original document (doc.xml) I have a number of references to other parts of the document, e.g:

<w:t>*<w:fldSimple w:instr="REF FoundID1 \r \h" />*</w:t>

(The underscores are there so I could find it easily)
In doc1.xml the <w:fldsimple /> has been removed

<w:t>__</w:t>

The bookmarks being referred to exist in both documents.

Is there anything obvious that I am probably doing wrong that is causing these references to bookmarks to disappear?

Thanks in advance.

As is often the way I have resolved this. Just for anyone else who happens to stumble upon this post here is my solution:

Where I had:

<w:t><w:fldSimple w:instr="PAGEREF FoundID1 \h" /></w:t>

I replaced with:

<w:r>
	<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
	<w:instrText xml:space="preserve"> PAGEREF FoundID1 /> \h</w:instrText>
</w:r>
<w:r>
	<w:fldChar w:fldCharType="seperate"/>
</w:r>
<w:r>
	<w:fldChar w:fldCharType="end"/>
</w:r>

Hi

Thanks for your request. Most likely, the problem occurs because Aspose.Words does not evaluate REF fields. As a workaround you can update fields in the output document manually (Ctrl+A and press F9).
In addition, you can try replacing REF fields with HYPERLINK fields.
https://forum.aspose.com/t/102957
Best regards.