En cours

Write some Software

Read an xml file that has special characters.

I have a translation file in Italian that I am trying to read from xml. The strings were within the VB code but we transferred them to the attached xml. As the reader progresses it finds some characters that it cannot process.

The routine that we have is:

Public Sub initializeStrings()

Dim dir As String = [url removed, login to view]

Try

Dim pos As Integer = [url removed, login to view]("DEEP")

If pos > 0 Then

dir = [url removed, login to view](pos + 4)

End If

Catch ex As Exception

End Try

Dim file As New XmlDataDocument()

[url removed, login to view](dir & "\Language\" & [url removed, login to view] & "[url removed, login to view]")

[url removed, login to view] = [url removed, login to view]("Language").SelectSingleNode("ReportStrings")

End Sub

The [url removed, login to view] is

Public strings As XmlNode = Nothing

The exception that we get is:

[url removed, login to view] was unhandled

HResult=-2146232000

LineNumber=757

LinePosition=74

Message=Invalid character in the given encoding. Line 757, position 74.

Source=[url removed, login to view]

SourceUri=file:///C:/DeepExcavation/Visual Studio Software Development/Visual Studio Projects/DeepeXcav 2014/DEEP/Language/[url removed, login to view]

Compétences : Visual Basic, XML

Voir plus : software development process, projects software development, get software development projects, write professional looking reports, write news article reports, write automotive technical reports, write headline news reports, write professional clinical reports, software write technical manual

Concernant l'employeur :
( 6 commentaires ) Astoria, United States

N° du projet : #8460759

Décerné à :

yugolancer

I can give you the fix immediately. I already debugged your code so just appear and i will give it to you. Regards

40 $ USD en 0 jours
(32 Commentaires)
6.5

6 freelance ont fait une offre moyenne de 67 $ pour ce travail

cgullapalli

Hi, I am good at vb.net and i would like to work on this project. I would like to discuss the project once. Looking forward to work on this project. I found the error. Error is becoz of special character - "à". I Plus

35 $ USD en 0 jours
(29 Commentaires)
3.9
ljnath

Hello, I am a professional software developer. I have read your project requirement, and can fix your xml reader. Please contact me. To check my work samples visit my site Cheers ljnath www.ljnath.com

45 $ USD en 1 jour
(6 Commentaires)
3.8
wrarvw

Hello, I am an experienced .NET programmer and I know how to parse XML with special characters such as yours.

30 $ USD en 1 jour
(7 Commentaires)
2.3
yabresse

Hello, I'm a 15 years experienced developer. I already have encountered this kind of problem. Regards.

222 $ USD en 0 jours
(0 Commentaires)
0.0
moustaphathiam

Hi. I am a Senior VB.NET Developer living in Paris, I have read your specifications and i want to realize your application. i have already developed several applications which parse XML,CSV,TXT, or DAT files and im Plus

30 $ USD en 0 jours
(0 Commentaires)
0.0