Hi. I have changed the code and I am using this:
rptTblNAV = Me.MainDataSource.CreateNavigator()
rptTblNAV.SelectSingleNode("/my:AddRoom/my:rtbFloorsInUseGr1", Me.NamespaceManager)
Gr1Nav = rptTblNAV.SelectSingleNode("/my:AddRoom/my:rtbFloorsInUseGr1/my:rtbFloorsInUseGr2", Me.NamespaceManager)
'Gr1Nav = rptTblNAV.Clone()
Gr2Nav = rptTblNAV.SelectSingleNode("/my:AddRoom/my:rtbFloorsInUseGr1/my:rtbFloorsInUseGr2/my:field0", Me.NamespaceManager)
newValue = Gr2Nav.Clone()
newValue.SelectSingleNode("value").SetValue("bla")
newValue.SelectSingleNode("displayname").SetValue("bla1")
Gr1Nav.AppendChild(newValue)
But at line
Gr1Nav.AppendChild(newValue)
i get this error:
Schema validation found non-data type errors
Can someone help pls? Thank you!