Update 1 field (docproperty) in document- instead of all fields

I have a Word document with several docproperty-fields.
I want to update 1 or some fields, but not all the fields. UpdateFields() updates all the fields. With Field.Update you can update 1 field, but I can not select the docproperty-Field on a way I can use this Field.Update.
An other solution will be to change some docproperty-fields in static text, but I don’t know how to select a single field so I can use convertFieldsToStaticText. It works with all fields with a specific FieldType. How can I select 1 specific Field?
How can I make it work to update 1 (or some) fields?
I attach a document and the code I use.

Hi Ernst,

for your inquiry. A field in a Word document is a complex structure
consisting of multiple nodes that include field start, field code, field
separator, field result and field end. Fields can be nested, contain
rich content and span multiple paragraphs or sections in a document. The
Field class is a “facade” object that provides properties and methods
that allow to work with a field as a single object.

The Start, Separator and End properties point to the field start, separator and end nodes of the field respectively.

content between the field start and separator is the field code. The
content between the field separator and field end is the field result.
The field code typically consists of one or more Run objects that
specify instructions. The processing application is expected to execute
the field code to calculate the field result.

In you case, I suggest you please use the following code snippet to
achieve your requirement.

String fileName = MyDir + "test.docx";
com.aspose.words.Document adoc = new com.aspose.words.Document(fileName);
for (FieldStart fStart : (Iterable<FieldStart>)adoc.getChildNodes(NodeType.FIELD_START, true))
    if (fStart.getFieldType() == FieldType.FIELD_DOC_PROPERTY)
        if (fStart.getField().getFieldCode().contains("DatumVerzonden"))
adoc.save(MyDir + "out.pdf");

Hello Tahir,
Thank you for your solution.
I had to make some changes because I got a java cast error on the Iterator (on NodeCollection).
Now I can update single fields. It is working fine.
Kind regards,
Ernst Meindersma

Hi Ernst,

for your feedback. If you still face any issue, please share your issue detail with us. We will investigate the issue on our side and provide you more information.

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.