build symbol table from xml ast