I am sory...
Now i 've attached the file plz find that...
rename the extension to xml and see..
Main Topics
Browse All TopicsHi,
I 've an xml file with multiple tables and multiple records...
For every table Vrify data is there ...This one is for Mandatory as well as duplicate record check..
If it is successful then i need to insert into database...
If any record fails in any table whole transaction gets rollback...
Right now Only one table and Multiple records are there in the xml..
It should be generic ..
Plz advise ...
For ur reference i 've attached the XML file...
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
What are you talking about? If you use a DataSet, then you can have multiple tables, and the relationships would be automatically created for you from the data.
If I use the below code to examine the DataSet, I get this output:
Tables:
VOD
VOD_Id PROCEDURE
VERIFY_DATA
VERIFY_DATA_Id VOD_Id
columnName
columnName_Text VERIFY_DATA_Id
RECORDS
RECORDS_Id VOD_Id
RECORD
SHIP_CD EMP_NAME TRN_MONTH USER_ID CDC_NO TRAINING_DT RESPONSIBILITY SUBJECT TITLE_TYPE RECORDS_Id
Relations:
VERIFY_DATA_columnName
RECORDS_RECORD
VOD_VERIFY_DATA
VOD_RECORDS
Are you telling me that your target table in the database is one, single flat table, doesn't have the same structure as the XML? It might be possible to flatten the data from the DataSet, by looping through the tables.
Another approach is to use an XmlDocument, parse the XML, and build a single table, that you can write to the database with.
Example:
Manipulate XML data with XPath and XmlDocument (C#)
http://www.codeproject.com
Business Accounts
Answer for Membership
by: selva_konguPosted on 2009-10-12 at 00:23:25ID: 25549127
there is no attachment, please attache the sample xml