473,383 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

New ti xml database

I need to use a file that is in xml format in vb.net.

I'm new here. I have MSSql 2000 and vb.net 2003. I have accessed SQL
files before. What is best.
1. Access the XML file directly?

2. Somehow import it into MSSQL 2000

3. Is there a better way.

The file is publically available via internet. It must be updated
periodically and accessed.

Any Good advice will be greatly appreciated.
jwc

*** Sent via Developersdex http://www.developersdex.com ***
Nov 12 '05 #1
1 909
Jim Bob wrote:
I need to use a file that is in xml format in vb.net.

I'm new here. I have MSSql 2000 and vb.net 2003. I have accessed SQL
files before. What is best.
1. Access the XML file directly?


There are multiple ways. If it is a small file and you don't need
highest performance but understandable code, use System.Xml.XmlDocument
wich provides an XML DOM wich means that the whole XML document will be
converted into a tree of objects (thus it won't work with large
documents and will be slow and oversized if you don't use all the data).
Then there is System.Xml.XPath.XPathDocument wich is a bit "lighter"
than XmlDocument and allows you to do queries using XPath, for example
from XSLT.
The fastest way, wich is also suitable for very large documents is the
use of System.Xml.Xml(Text)Reader/Writer. The reader is just a simple
parser wich allows you to navigate from one node to the next and
determine its type, name, namespace and value. The writer directly
writes XML tokens, it helps you with namespaces, indentation and has a
few comfort-methods for writing special content. It is also easy to
"stream-process" (large) XML files with those two classes.
--
Pascal Schmitt
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.