[quote user="blumax57"]text = tg(i)[/quote]
You're attempting to assign a TagElement (tg(i)) to a String. Those are incompatible data types. You already have the solution a few lines later...
text = tg(i).Value
[quote user="blumax57"]text = tg(i)[/quote]
You're attempting to assign a TagElement (tg(i)) to a String. Those are incompatible data types. You already have the solution a few lines later...
text = tg(i).Value