getMailMerge().getFieldNames() behaviour

Hi!

After loading a dotx document getFieldNames() returns an empty array.
After loading and calling getChildNodes(NodeType.FIELD_START, true) getFieldNames() calls returns the expected array. Is this the expected behaviour, or getFieldNames() call should work without getChildNodes() call?

16.2.0 (jdk16) version from https://releases.aspose.com/words/java/ repository.

Thank You!

Hi Kálmán,

Thanks for your inquiry. Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

Dear Tahir!

I attached the dotx file.

Hi Kálmán,

Thanks for sharing the document. We have tested the scenario using latest version of Aspose.Words for Java 16.5.0 and have not found the shared issue. Please use Aspose.Words for Java 16.5.0 and let us know if you have any more queries.

Updated to 16.5. Now getFieldNames() works, does not need to call getChildNodes() before.

Thank You!