User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 402,395 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,899 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums

XML data to database

Join Date: May 2006
Posts: 4
Reputation: FunkeyMonkey is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
FunkeyMonkey FunkeyMonkey is offline Offline
Newbie Poster

Re: XML data to database

  #2  
Jul 5th, 2007
First off, I would convert your dtd to a schema (xsd) file. Everything is so much easier these days in .xsd format. In terms of loading into sql, you have basically 4 options
1) use .net code using the system.xml namespace, create an xmldocument element.
2) use sqlxml 4.0 (bulk load), with an xsd mapping schema. lots of examples online but difficult syntax.
3) use foropen xml (again difficult syntax)
4) my personal favourite, by far and away the most efficient. create an xslt stylesheet, convert your xml to a text file, and then use bcp to copy to sql (or other database). email me at heap_tim@hotmail.com for more info.
Reply With Quote  
All times are GMT -4. The time now is 1:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC