473,386 Members | 2,078 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,386 software developers and data experts.

how to transfer data from XML file to MySql database

Hi,

I need to get the data from XML file , to store it in MySql database.
How can i do it.



Regards,
KiranRredy
Dec 19 '06 #1
7 7434
b1randon
171 Expert 100+
Hi,

I need to get the data from XML file , to store it in MySql database.
How can i do it.



Regards,
KiranRredy
You need to parse the XML structure and run inserts on all of the elements, I think. But you haven't really provided nearly enough information for anyone to help you. What is your XML like? How will it be represented in your DB? What language are you using? If you want help you must provide enough info.
Dec 20 '06 #2
dalhit
2
You need to parse the XML structure and run inserts on all of the elements, I think. But you haven't really provided nearly enough information for anyone to help you. What is your XML like? How will it be represented in your DB? What language are you using? If you want help you must provide enough info.
Hi

Suppose i have standard table EMP in Oracle 9i DB.

So can you give me complete code listing which i just have to execute & get data into XML

or

link from where i can get it.

Also i installed in Oracle 9i Database But do i have to install anything for XML.

Folks can reply me at dal_hit@yahoo.com

Thanks for reply.
Feb 16 '07 #3
dorinbogdan
839 Expert 512MB
Hi,
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Thanks,
Dorin.
Mar 21 '07 #4
Im looking for a similar solution to this.

Im not entirely new to XML but im still a bit puzzled.
Im using a Vb.net program on a Pocket PC to create a xml file which should be uploaded to a PHP mysql server , how should i create my XML file that users can just click a button and the xml files get uploaded to the server (using HTTP)
The server's IP in the internal netwerk = 192.168.25.120

I'll Be sending my updated status of the Pocket pc's database to the mysql server , so the Php webserver should parse the xml data and insert or update what i have on my pocket Pc database.

Should i be using RPC-XML or SOAP with the Post method if so can someone give a small example on how to make the connection with that IP adress ?

Thx.
Apr 3 '07 #5
gomzi
304 100+
suppose i have a couple of feeds and i want to store them in mysql at regular intervals, then how should i go about it?

i.e. every 30 minutes i want those two feeds to be read and stored in the database.

also please specify the best method for reading the feeds.
Apr 4 '07 #6
dorinbogdan
839 Expert 512MB
Depending on what language you are programming (ASP, PHP, .Net...) you can read the XML data (Rss is an xml file) using for instance an XMLDOM object.
For how to read an XML see:
PHP example, or
ASP/Javascript example.

About how to import XML in MySql, see this thread.

I hope these helps.
If need more PHP help, please post on PHP forum.

Thanks,
Dorin.
Apr 4 '07 #7
hi.I have a problem about xml data transfer.I read some solutions in this category.but I couldn't solved my problem .that is my problem:

Expand|Select|Wrap|Line Numbers
  1. <STKpp MalKodu="A4MSI_02" MalAdi="MSI (7104) PM8M-V 478p,8XDDR-400,VGA+SES+LAN" Stok="10+"
  2. BIZIMFiyat="41.5" Marka="06"
  3. BayiFiyat="41.5" DovizKod="USD" VergiKod="KDV18" Kategori="06c"
  4. MarkaID="2"
  5. />
  6.  
  7. <STOKOZELLIKLER>
  8. <OZELLIKLER>
  9. <OZELLIK>garanti süresi</OZELLIK>
  10. <DEGER>24</DEGER>
  11. <OZELLIK>front side bus (MHz)</OZELLIK>
  12. <DEGER>400</DEGER>
  13. <OZELLIK>agp yuvasi</OZELLIK>
  14. <DEGER>8x</DEGER>
  15. </OZELLIKLER>
  16. </STOKOZELLIKLER>

that you see above,datas which I want to transfer mysql database.

I waiting for your help.thanks
Jun 27 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: danubian | last post by:
Hi, I'm a newbie in php/mysql programming,really am. I'm working on a web-site that allows registration and posterior logging in. Already registered user logs in with valid username and...
1
by: BijuThomas | last post by:
Complicated - ASP/Security/data transfer/XML doubt In our company Head office we are hosting an intranet server in IIS (Windows 2000) , ASP and Sqlserver back end. We are maintaining our branch...
0
by: Naeem | last post by:
i want to transfer a huge amount of data which is maintained over windows running PHPTriad. PHPTriad can dump data and schema/structure into a text file. now i want to transfer this data to Red...
1
by: midwesthills | last post by:
How can I transfer the schema of a database from one SQL Server app to another? I've used MySQL in the past and all I had to do is create a ..sql file with the DDL statements for the database,...
6
by: brijesh | last post by:
Sir, I am a development engineer in network application I have a problem regarding upgrading my database the problem is how do I transfer the contents from one table in a database from one server...
11
by: E.T. Grey | last post by:
Hi, I have an interesting problem. I have a (LARGE) set of historical data that I want to keep on a central server, as several separate files. I want a client process to be able to request the...
3
by: axaya | last post by:
How can I transfer an online MS SQL Database with all data to a local machine MS SQL server. I am using Import Export Tool provided by MS SQL Enterprise manager but the referential integraity breaks...
0
by: =?Utf-8?B?R3V5?= | last post by:
I already spent some time thinking for a solution for my problem, but finally can't decide what would be the most optimal and correct solution. Therefore I post my question to this forum, to get...
1
by: janetopps | last post by:
I used a database transfer utility (Bullzip) to move data from Access to MySQL Asp pages, I couldn't transfer the data if i did not opt to leave the default values, therefore the default values...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.