Lock row from XML?

Is it possible to lock a row for editing in the XML file?

You can specify it directly in XML
 

    …

Such row will be rendered in locked state