Eu estou tentando desserializar um XML, mas estou com problema. Consegui alguma coisa mas estou "enxugando gelo: eternamente".
set wc to new System.Net.WebClient 
 set wRetCTE to wc::DownloadData(webAddr) 
 set reg-sai to type System.Text.Encoding::UTF8::GetString(wRetCTE)
try
 declare DSCTe = new type DataSet
 invoke DSCTe::ReadXml(w-nome-sai)
 *> aqui quebra o xml em uma DataSet
 set wCount to DSCTe::Tables::Count
 set wCountRows to DSCTe::Tables[0]::Rows::Count
 set wCountCols to DSCTe::Tables[0]::Columns::Count
 
Aqui esta a parte complicada, como movimentar para variáveis o conteúdo dos campos. Na imagem destaquei toma3 alà existe mais um "nÃvel" como ter acesso a isso.
Here is the tricky part, like moving the contents of the fields to variables. In the image I highlighted toma3 there is another "level" as having access to it.
write wCampos from DSCTe::Tables[0]::Rows[0][0]::ToString