How to access and update child attributes?

Version 1

    hi!

    Does anyone have code examples how to access and update child attributes?  I would like to add data to the child attribute .

    The "mother" element is created using element template.