Wrox Programmer Forums
|
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2008, 11:17 AM
Registered User
 
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML file interpretation

A bit of background: I'm a veteran Visual Foxpro programmer (don't laugh) with a fair knowledge of VB with a pet project on my hands. There's a program that I participated in writing a while back that originally processed its data in about four hours. Then we started receiving the data in XML format, and because of the way VFP does its XML processing, the program takes about six days to run. So I've been looking into how to get VB to work with XML data, thinking that it's got to improve on the situation.

I've picked up a copy of "Visual Basic 2008", by Stephens, but I'm still trying to wrap my brain around LINQ - yes, it seems a lot like SQL, but enough different that I'm not quite getting the results I'm expecting. So any hints on how to work with LINQ would be much appreciated - I can throw examples of what I've been trying on the board if that would help.

Thanks,

David
 
Old February 21st, 2008, 01:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

You should look at LINQ to XML (http://msdn2.microsoft.com/en-us/library/bb308960.aspx); this is a big topic and I don't grasp it completely myself. However, LINQ isn't your only options. You can use the System.Xml namespace, which has an XmlDocument object that can load XML and you can use objects to query the file that way as well.

So you have a couple of options.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
HTML text interpretation omsadgamaya Crystal Reports 2 September 15th, 2006 07:23 AM
Basic PBE - Password Interpretation AndyN BOOK: Beginning Cryptography with Java 1 August 11th, 2006 08:45 AM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM
Problem to create an xml file from two xml files saurabh_inblore XSLT 1 April 12th, 2006 02:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.