Hi,
In Word I have 2 lines of text with a bookmark on each, but when looking a the document with your Document Explorer the second bookmark is located before the end of the first.
Why is this?
TIA,
Doug
Hi
Thanks for your inquiry. I cannot reproduce the problem on my side. Please see the attached screenshot. I use the latest version of Aspose.Words for testing. You can download it from here:
https://releases.aspose.com/words/net
Best regards,
Hi,
I get different results. Doc attached.
Cheers,
Doug
Hi
Thanks for your inquiry. Aspose.Words returns correct order of nodes. Here is snippet of document.xml part of your DOCX document:
<w:p w:rsidR="00E804DA" w:rsidRDefault="00511C0E">
<w:bookmarkStart w:id="0" w:name="line1" />
<w:r>
<w:t>Line1</w:t>
</w:r>
</w:p>
<w:p w:rsidR="00DA7C07" w:rsidRDefault="00511C0E">
<w:bookmarkStart w:id="1" w:name="line2" />
<w:bookmarkEnd w:id="0" />
<w:r>
<w:t>Line2</w:t>
</w:r>
<w:bookmarkEnd w:id="1" />
</w:p>
As you can see order of nodes is the same as Aspose.Words returns (see screenshot).
Best regards,