Hi,

I'm trying to read, parse, and write an new xml file. I'm trying to skip or omit a specific line during this process but for some reason my filter is not working. I've tried txt as a string and variant. Part of the code is listed below . I'm just trying to get the code to remove one line as that is all that will be removed from the actual xml file. The problem is the if txt statement never turns false. getting bocked by firewall trying to post code, so I'm cutting down until I get a successful post.

As always I appreciate any help

Thanks,


Code:

Do Until myFile.AtEndOfStream

includeLine = True
txt = myFile.ReadLine

If txt = 'Line To Remove'" Then includeLine = False

If includeLine Then
allTxt = allTxt & txt & vbCrLf
includeLine = True
End If

Loop