Hi frankg,<br><br>You can try something like this:<br><br> String completePathToDocument = cms.getSitePath( xmlDocument.getFile() );<br> xmlDocument.getValue( string_with_the_field_name_to_modify, locale ).setStringValue( cms, new_value_to_set );<br>
cms.lockResource( completePathToDocument, CmsLock.TEMPORARY );<br> xmlDocument.getFile().setContents( xmlDocument.marshal() );<br> cms.writeFile( xmlDocument.getFile() );<br><br>That should have your xml file field updated. Hope it helps! If it works fine for you, I recommend you to parametrize it and make it an utility function for your code to call. Greetings,<br>
<br>Nacho Fernandez.