• Hello

    In a SQL to get the fields of XML to SQL query would be like this, not if you really want to take SQL.

    select

    campo.value('(/Encabezado/Heads_tree_XML)[1]','Data_type'')

    from tabla

    I hope to help you