Click here to Skip to main content
14,642,838 members
Home » Discussions » Visual Basic
   

Visual Basic

 
QuestionRetrieving value from an XML file Pin
Ben Senior17-May-17 8:32
MemberBen Senior17-May-17 8:32 
GeneralRe: Retrieving value from an XML file Pin
PIEBALDconsult17-May-17 14:11
professionalPIEBALDconsult17-May-17 14:11 
GeneralRe: Retrieving value from an XML file Pin
Ben Senior17-May-17 22:33
MemberBen Senior17-May-17 22:33 
GeneralRe: Retrieving value from an XML file Pin
Richard MacCutchan17-May-17 23:08
mveRichard MacCutchan17-May-17 23:08 
GeneralRe: Retrieving value from an XML file Pin
Ben Senior19-May-17 7:40
MemberBen Senior19-May-17 7:40 
GeneralRe: Retrieving value from an XML file Pin
Richard MacCutchan19-May-17 21:13
mveRichard MacCutchan19-May-17 21:13 
AnswerRe: Retrieving value from an XML file Pin
David Mujica19-May-17 7:02
MemberDavid Mujica19-May-17 7:02 
GeneralRe: Retrieving value from an XML file Pin
Ben Senior19-May-17 7:26
MemberBen Senior19-May-17 7:26 
Hi David,

No. What I want to do is take:
<descrip type="reliabilityCode">3

and replace it with:
<descrip type="reliabilityCode">Very reliable

The "3" can vary and when I get this numerical code I have a function from where I can retrieve its text equivalent. I then need to insert the text equivalent back into the XML file. There are five of these numeric codes.

I'm new to XML and have never used XPath before so I'm struggling at the moment. I've been researching XPath and LINQ and just can't seem to get the hang of them.

I have been using the looping as that's what I'm used to doing in VB and C#.

The last thing that I will need to do is go through each element and depending upon the value of the subject field write the whole element to a new file for that subject. But first thing first and replace the numeric codes with text.

The subjectField is very similar other than there are over 700 subjects. I already have a function which converts the numeric subject field codes into text, and as above I need to insert the text back into the XML file.
GeneralRe: Retrieving value from an XML file Pin
David Mujica19-May-17 8:28
MemberDavid Mujica19-May-17 8:28 
AnswerRe: Retrieving value from an XML file Pin
Ben Senior20-May-17 4:28
MemberBen Senior20-May-17 4:28 
AnswerRe: Retrieving value from an XML file Pin
Meshack Musundi23-May-17 5:58
professionalMeshack Musundi23-May-17 5:58 
GeneralRe: Retrieving value from an XML file Pin
Ben Senior23-May-17 7:33
MemberBen Senior23-May-17 7:33 
QuestionCatching Control, Shift Key and Alt Key Presses and Releases Pin
Jalapeno Bob16-May-17 11:19
professionalJalapeno Bob16-May-17 11:19 
AnswerRe: Catching Control, Shift Key and Alt Key Presses and Releases Pin
Alex k (oShortyo)16-May-17 23:16
MemberAlex k (oShortyo)16-May-17 23:16 
AnswerRe: Catching Control, Shift Key and Alt Key Presses and Releases Pin
Richard Deeming17-May-17 1:19
mveRichard Deeming17-May-17 1:19 
GeneralRe: Catching Control, Shift Key and Alt Key Presses and Releases Pin
Jalapeno Bob17-May-17 7:03
professionalJalapeno Bob17-May-17 7:03 
QuestionGET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel9-May-17 13:28
MemberOtekpo Emmanuel9-May-17 13:28 
AnswerRe: GET PC POSITION IN VISUAL BASIC Pin
Chris Quinn9-May-17 21:28
MemberChris Quinn9-May-17 21:28 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel10-May-17 6:12
MemberOtekpo Emmanuel10-May-17 6:12 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Chris Quinn10-May-17 21:47
MemberChris Quinn10-May-17 21:47 
GeneralSolved: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel12-May-17 8:50
MemberOtekpo Emmanuel12-May-17 8:50 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Richard MacCutchan12-May-17 13:18
mveRichard MacCutchan12-May-17 13:18 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel13-May-17 8:20
MemberOtekpo Emmanuel13-May-17 8:20 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Dave Kreskowiak13-May-17 8:39
mveDave Kreskowiak13-May-17 8:39 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel3-Jul-17 19:20
MemberOtekpo Emmanuel3-Jul-17 19:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.