Click here to Skip to main content
15,896,201 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: build string from array Pin
Johan Hakkesteegt16-Apr-09 20:55
Johan Hakkesteegt16-Apr-09 20:55 
AnswerRe: build string from array [modified] Pin
CPallini16-Apr-09 0:05
mveCPallini16-Apr-09 0:05 
GeneralRe: build string from array Pin
0x3c016-Apr-09 0:50
0x3c016-Apr-09 0:50 
QuestionUpdate records Pin
mansi368715-Apr-09 21:20
mansi368715-Apr-09 21:20 
AnswerRe: Update records Pin
Henry Minute15-Apr-09 23:58
Henry Minute15-Apr-09 23:58 
AnswerRe: Update records Pin
Johan Hakkesteegt16-Apr-09 0:18
Johan Hakkesteegt16-Apr-09 0:18 
QuestionHow do i load xml file into memory for parsing Pin
kryan015-Apr-09 11:09
kryan015-Apr-09 11:09 
AnswerRe: How do i load xml file into memory for parsing [modified] Pin
0x3c015-Apr-09 11:43
0x3c015-Apr-09 11:43 
Are you using VB or VB.Net?

VB.Net:
Use an OpenFileDialog, use System.Xml.Linq.XDocument.Load(filePath) to get an XDocument and then recursively get every node. If it has child nodes, recurse further. If not, write the child node text somewhere. To save it, just save the XDocument, and have any editing alter the XDocument itself

So, in summary

Load:
OpenFileDialog. Get filename
System.Xml.Linq.XDocument.Load(FileName)
Get every node
If node has child node: go to previous instruction
Else: write node details

Editing node:
Alter XDocument itself

Saving:
XDocument.Save

VB[1-6]:
Interface with COM. I can't help you here

modified on Thursday, April 16, 2009 6:50 AM [Needed to clarify]

GeneralRe: How do i load xml file into memory for parsing Pin
kryan015-Apr-09 12:03
kryan015-Apr-09 12:03 
GeneralRe: How do i load xml file into memory for parsing Pin
Christian Graus15-Apr-09 19:16
protectorChristian Graus15-Apr-09 19:16 
GeneralRe: How do i load xml file into memory for parsing Pin
Johan Hakkesteegt16-Apr-09 0:28
Johan Hakkesteegt16-Apr-09 0:28 
GeneralRe: How do i load xml file into memory for parsing Pin
0x3c016-Apr-09 0:47
0x3c016-Apr-09 0:47 
AnswerRe: How do i load xml file into memory for parsing Pin
kryan016-Apr-09 8:29
kryan016-Apr-09 8:29 
QuestionVB.NET 2008 Subreport Cannot Be Shown Pin
DaveMcTKD15-Apr-09 9:37
DaveMcTKD15-Apr-09 9:37 
AnswerRe: VB.NET 2008 Subreport Cannot Be Shown Pin
Dave Kreskowiak17-Apr-09 4:37
mveDave Kreskowiak17-Apr-09 4:37 
QuestionSeeking recommendations for PDF Merge Library Pin
Kschuler15-Apr-09 4:12
Kschuler15-Apr-09 4:12 
GeneralRe: Seeking recommendations for PDF Merge Library Pin
Steven J Jowett15-Apr-09 23:39
Steven J Jowett15-Apr-09 23:39 
AnswerRe: Seeking recommendations for PDF Merge Library Pin
Henry Minute16-Apr-09 0:07
Henry Minute16-Apr-09 0:07 
Questionopen a ms word file in a richtextbox Pin
marclenoir200515-Apr-09 3:56
marclenoir200515-Apr-09 3:56 
AnswerRe: open a ms word file in a richtextbox Pin
0x3c015-Apr-09 4:34
0x3c015-Apr-09 4:34 
AnswerRe: open a ms word file in a richtextbox Pin
Dave Kreskowiak15-Apr-09 5:32
mveDave Kreskowiak15-Apr-09 5:32 
GeneralRe: open a ms word file in a richtextbox Pin
0x3c015-Apr-09 5:40
0x3c015-Apr-09 5:40 
GeneralRe: open a ms word file in a richtextbox Pin
Luc 64801115-Apr-09 5:48
Luc 64801115-Apr-09 5:48 
GeneralRe: open a ms word file in a richtextbox Pin
Dave Kreskowiak15-Apr-09 6:02
mveDave Kreskowiak15-Apr-09 6:02 
AnswerRe: open a ms word file in a richtextbox Pin
marclenoir200515-Apr-09 9:03
marclenoir200515-Apr-09 9:03 

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.