Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

XML error Expecting white space

$
0
0

Is there a way to add white space in VB code for script task .

I am actually getting this error :

[XML Source [1]] Error: The component "XML Source" (1) was unable to process the XML data. 'Evelyn' is an unexpected token. Expecting white space. Line 1, position 4542.

and I do not know out of which file I am getting "" ...

I am some code to replace & to and encoding too but seriously is all is copied for here and there, I do not know much about VB. Before adding this I added Imports system.IO

Dim l_StreamOut As New MemoryStream

Dim l_StreamReader As New StreamReader(filename)

Dim l_StreamWriter As New StreamWriter(filename2)

Dim l_Line As String

l_Line = l_StreamReader.ReadLine()

If (Not l_Line Is Nothing) Then

l_Line = Replace(l_Line,

"ISO8859-15", "UTF-8")

l_Line = Replace(l_Line,

"&", "and")

l_StreamWriter.WriteLine(l_Line)

End If

Do

l_Line = l_StreamReader.ReadLine()

If (Not l_Line Is Nothing) Then

l_Line = Replace(l_Line,

"ISO8859-15", "UTF-8")

l_Line = Replace(l_Line,

"&", "and")

l_StreamWriter.WriteLine(l_Line)

End If

Loop Until l_Line Is Nothing

l_StreamReader.Close()

l_StreamWriter.Close()


Please mark as helpful and propose as answer if you find this as correct!!! Thanks,Miss Never Giveup .


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>