Try this VB Sample code in
Dim XmlData As String
Dim Notes, Script, ScriptLanguage, ScriptName As String
Dim root, noteX As XElement
XmlData = Repository.SQLQuery("SELECT Notes FROM t_script)
root = XElement.Parse(XmlData)
If root.Elements("Dataset_0").Any() Then
Notes = root.<Dataset_0>.<Data>.<Row>.<Notes>.Value().ToString()
noteX = XElement.Parse(Notes)
ScriptName = noteX.FirstAttribute.Value
ScriptLanguage = noteX.LastAttribute.Value
End If