Store XML file into Sqlserver Database

Ads

 
 

Share on Google+Share on Google+

Satyavani
Store XML file into Sqlserver Database
0 Answer(s)      5 years and 4 months ago
Posted in : XML

Code for storing a typical XML file into SQl server database in 1 or more tables using asp.net using C#.

<?xml version="1.0" ?> 
  <!DOCTYPE PubmedArticleSet (View Source for full doctype...)> 
- <PubmedArticleSet>
- <PubmedArticle>
- <MedlineCitation Owner="NLM" Status="In-Data-Review">
  <PMID Version="1">22500280</PMID> 
- <DateCreated>
  <Year>2012</Year> 
  <Month>04</Month> 
  <Day>13</Day> 
  </DateCreated>
- <Article PubModel="Print-Electronic">
- <Journal>
  <ISSN IssnType="Electronic">2093-6516</ISSN> 
- <JournalIssue CitedMedium="Internet">
  <Volume>45</Volume> 
  <Issue>2</Issue> 
- <PubDate>
  <Year>2012</Year> 
  <Month>Apr</Month> 
  </PubDate>
  </JournalIssue>
  <Title>The Korean journal of thoracic and cardiovascular surgery</Title> 
  <ISOAbbreviation>Korean J Thorac Cardiovasc Surg</ISOAbbreviation> 
  </Journal>
  <ArticleTitle>Analysis.</ArticleTitle> 
- <Pagination>
  <MedlinePgn>101-9</MedlinePgn> 
  </Pagination>
- <Abstract>
  <AbstractText Label="BACKGROUND" NlmCategory="BACKGROUND">small cell lung cancer.</AbstractText> 
  <AbstractText Label="MATERIALS AND METHODS" NlmCategory="METHODS"> molecular markers were selected.</AbstractText> 
  <AbstractText Label="RESULTS" NlmCategory="RESULTS"> recurrence.</AbstractText> 
  <AbstractText Label="CONCLUSION" NlmCategory="CONCLUSIONS"> disease-free survival.</AbstractText> 
  </Abstract>
  <Affiliation>Korea.</Affiliation> 
- <AuthorList CompleteYN="Y" Type="authors">
- <Author ValidYN="Y">
  <LastName>Cho</LastName> 
  <ForeName>Sukki</ForeName> 
  <Initials>S</Initials> 
  </Author>
- <Author ValidYN="Y">
  <LastName>Park</LastName> 
  <ForeName>Tae In</ForeName> 
  <Initials>TI</Initials> 
  </Author>
- <Author ValidYN="Y">
  <LastName>Lee</LastName> 
  <ForeName>Eung-Bae</ForeName> 
  <Initials>EB</Initials> 
  </Author>
- <Author ValidYN="Y">
  <LastName>Son</LastName> 
  <ForeName>Shin-Ah</ForeName> 
  <Initials>SA</Initials> 
  </Author>
  </AuthorList>
  <Language>eng</Language> 
- <PublicationTypeList>
  <PublicationType>Journal Article</PublicationType> 
  </PublicationTypeList>
- <ArticleDate DateType="Electronic">
  <Year>2012</Year> 
  <Month>04</Month> 
  <Day>03</Day> 
  </ArticleDate>
  </Article>
- <MedlineJournalInfo>
  <Country>Korea (South)</Country> 
  <MedlineTA>Korean J Thorac Cardiovasc Surg</MedlineTA> 
  <NlmUniqueID>101563922</NlmUniqueID> 
  <ISSNLinking>2233-601X</ISSNLinking> 
  </MedlineJournalInfo>
  </MedlineCitation>
- <PubmedData>
- <History>
- <PubMedPubDate PubStatus="received">
  <Year>2011</Year> 
  <Month>9</Month> 
  <Day>09</Day> 
  </PubMedPubDate>
- <PubMedPubDate PubStatus="revised">
  <Year>2011</Year> 
  <Month>9</Month> 
  <Day>28</Day> 
  </PubMedPubDate>
- <PubMedPubDate PubStatus="accepted">
  <Year>2011</Year> 
  <Month>10</Month> 
  <Day>16</Day> 
  </PubMedPubDate>
- <PubMedPubDate PubStatus="epublish">
  <Year>2012</Year> 
  <Month>4</Month> 
  <Day>03</Day> 
  </PubMedPubDate>
- <PubMedPubDate PubStatus="entrez">
  <Year>2012</Year> 
  <Month>4</Month> 
  <Day>14</Day> 
  <Hour>6</Hour> 
  <Minute>0</Minute> 
  </PubMedPubDate>
- <PubMedPubDate PubStatus="pubmed">
  <Year>2012</Year> 
  <Month>4</Month> 
  <Day>14</Day> 
  <Hour>6</Hour> 
  <Minute>0</Minute> 
  </PubMedPubDate>
- <PubMedPubDate PubStatus="medline">
  <Year>2012</Year> 
  <Month>4</Month> 
  <Day>14</Day> 
  <Hour>6</Hour> 
  <Minute>0</Minute> 
  </PubMedPubDate>
  </History>
  <PublicationStatus>ppublish</PublicationStatus> 
- <ArticleIdList>
  <ArticleId IdType="doi">10.5090/kjtcs.2012.45.2.101</ArticleId> 
  <ArticleId IdType="pubmed">22500280</ArticleId> 
  </ArticleIdList>
  </PubmedData>
  </PubmedArticle>
  </PubmedArticleSet>
Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Store XML file into Sqlserver Database
Store XML file into Sqlserver Database  Code for storing a typical XML file into SQl server database in 1 or more tables using asp.net using C
Store XML file into Sqlserver Database
Store XML file into Sqlserver Database  Code for storing a typical XML file into SQl server database in 1 or more tables using asp.net using C#. <?xml version="1.0" ?> <!DOCTYPE PubmedArticleSet (View Source
Advertisements
How to store extracted values from xml in a database? - XML
How to store extracted values from xml in a database?  I want to store extracted xml values in a database... How can i store extacted xml values in a database... give me a example
How to store extracted values from xml in a database? - XML
How to store extracted values from xml in a database?  I want to store extracted xml values in a database... How can i store extacted xml values in a database... give me a example
How to convert XML file to database ?
How to convert XML file to database ?  How to convert XML file to database
Convert sqlserver database to msexcel
Convert sqlserver database to msexcel  How to i convert sqlserver database values into msexcel sheet using java...   We have used MySQL database. import java.io.*; import java.sql.*; import
how to store data in XML file - JSP-Servlet
how to store data in XML file  hi i have to store the data for example user id and password in a xml file the input userid and password..., To solve the problem visit to : http://www.roseindia.net/servlets/login-Xml
converting an xml file in relational database objects
converting an xml file in relational database objects  converting an xml file in relational database objects
upload file to server and store recode in database
upload file to server and store recode in database  i want to upload a file into the server and store a recode in mysql database.any one know the code
How I Upload File and Store that file name in Database using JSP
How I Upload File and Store that file name in Database using JSP  Hi All, I m the beginner in JSP and I want to upload the file and store that file and some other form data in MySQL database. Ex. There is one employee detail
data insertion from xml file to database table
data insertion from xml file to database table  Hi all, I have data in the XML file. I need to insert it into table in the database using servlet. so please reply me . ThankYou
HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP?
HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP?  HELLO SIR, CAN ANYONE HELP ME OUT HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML... EMPLOYEES SHOULD BE SAVED IN XML FILE AND MY SQL DATABSE TABLES AT A TIME, AND ALSO
Insert XML file data to database
Insert XML file data to database In this tutorial, you will learn how to insert the xml file data to database using dom parser. You all are aware of XML... to read the xml file data and save the values of an XML file to a Database
How to store data entered by User in JSP page in XML file
  JSP store data entered by user into XML file 1)form.jsp: <html>...How to store data entered by User in JSP page in XML file  How to store data entered by user in JSP page to be saved in XML file.On clicking submit
Extract xml to store into db - JSP-Servlet
Extract xml to store into db  Hi all, I need to get the data from the xml file and store it onto the database. Is there anyway of doing this? thanks
How to store data entered in JSP page by a user in XML file & later retrieval of data using id at other page
How to store data entered in JSP page by a user in XML file & later retrieval..., projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data
Java Xml Data Store
be followed up and/or purchased. You will need to store the data in a local binary or XML file. As a good Java programmer you will use correct Object-Oriented...Java Xml Data Store  I have to do this project and i'm finding it so
how to store image file and videofile in ms access database using java? - JDBC
how to store image file and videofile in ms access database using java?  how to store image file and video file in ms access database using java
Data needs to be gathered in XML file from the database (MySql) using JSP
Data needs to be gathered in XML file from the database (MySql) using JSP ... data regarding particular id from the database table. Data needs to be gathered in XML file from the database (MySql) using appropriate JSP/Java Bean functions
Fetch Records from SQL database and convert into XML file
Fetch Records from SQL database and convert into XML file  Hi Experts... file with all records into a single XML with containing as Row's. Please see the output XML: - I need output XML File as: - ** <?xml version="1.0
xml or database - XML
xml or database  If I implement some web applications, which is a better way to retrieve and parse xml file directly using DOM or storing those xml files in Database and retrieve. My xml files will be about 100 - 200 and each
storing xml into database - XML
storing xml into database   hi i have an xml file it contains... .......with it i know how to persist a simple xml file into data base but i m finding some difficulty to start with i m sending u the xml file
Create XML file from flat file and data insert into database
Create XML file from flat file and data insert into database... have developed an application to create xml file from flat file and data...). Create a file "FlatFileXml.java"  used to create an XML and data
Storing properties in XML file
Storing properties in XML file       This Example shows you how Store properties in a new XML File. JAXP (Java API for XML Processing) is an interface which provides parsing
ms sqlserver
ms sqlserver  hii, i m getting trouble in restoring a database file in MS SQLServer 2000 . all i have is signature.bkp , query.sql, signaturebackup.bkp files... please guide me how i restore these backup files in new database
Creating XMl file - XML
Creating XMl file   I went on this page: http://www.roseindia.net/xml/dom/createblankdomdocument.shtml and it shows me how to create an XML file, however there is something I don't understand. I have to create an XML file
How to store image into database
How to store image into database  Hi, all I want to store image into database using Java. Can anyone help me that how can i store image into database using Java. Thanks in advance.   hi friend, To store image
database data in xml format
database data in xml format  HI, i want to display the database data in the xml format(not as xml file ) on the console using DOM. help will be appreciated. THANKS K.K
image store in database - JDBC
to store image into database. Check at http://www.roseindia.net/servlets/insert...image store in database  Dear Deepak Sir, If I want to store image into the database what is the process to do that? Please explain
Unable to store the image into database
Unable to store the image into database  Hello, I have created below..."> <input type="text" name="hint"> <input type="file" name="user_file"> <input type="submit"> ################### JSP PAGE
XML in database - XML
XML in database  Hi Deepak, i m again facing problem with single element multiple tag in xml. i m trying to read the tag values into my database but it gives nullpointerexception. pls guide me appropriatly. MyXML