473,796 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to transfer data from XML file to MySql database

2 New Member
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 7462
b1randon
171 Recognized Expert New Member
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 New Member
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.c om

Thanks for reply.
Feb 16 '07 #3
dorinbogdan
839 Recognized Expert Contributor
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
IamMacro
8 New Member
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 Contributor
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 Recognized Expert Contributor
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
ayselozden
1 New Member
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
6123
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 password. Username and password are validated against a MySQL database of personal data that contains these fields among others. This is done by means of a PHP script that redirects to a "page2.html" (if user and password non-existent) OR it redirects to...
1
2155
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 accounts at various locations and they are sending monthly reports only. Now we are planning to have a centralised data store at our Head Office so that, all details can be accessed from one place using this intranet.
0
1309
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 Hat Linux 7.2 running APACH/PHP/MYSQL..... how can i do ....? Thanx in advance
1
2543
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, then import that file in the other db. Can I do the same kind of thing with SQL Server 2000? If so, how? Also, is there a way to transfer the schema and data? Thanks in advance for the help!!!
6
1889
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 to postgresql database table in another server. the data contents is in few MB. can you suggest me an easy way to do so? regards Brijesh Shetty
11
2452
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 data in a specific file by specifying the file name, start date/time and end date/time. The files are in binary format, to conserve space on the server (as well as to increase processing time). The data in each file can be quite large, covering...
3
5645
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 (Primary and secondary key relationship). Thus the Data concurrency is lost and the database becaomes of no us. Most of our database projects have Stored procs, Views, Triggers and contain data. Sometimes we have to take back up of the running...
0
1240
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 your opinion. On a regular basis (eg every 10 minutes or after user initiation) the content of several MySQL database tables (on a pc/laptop client) need to be transfered (over the Internet) (synced) with a SQL Server 2005 db (hosted on a server)...
1
2209
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 didn't get transfered. I checked the access database and some of the fields have default values, ie, current time to go in automatically. Obviously, these being absent in MySQL are causing problems as they show NULL I use MYSQL query...
0
10457
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.