473,396 Members | 1,975 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,396 software developers and data experts.

XML 2 SQL without complex mapping

Hello,

I need a tool (preferable in PHP to run on every webserver or very
easily accecable by PHP) which can convert data from XML to a
relational DBS (MySQL). I donnot want to stick around with complex
mapping rules, XSLT stuff or XML query languages. The XML should be
mapped automatically to tables. It might be nice, but its not
necessery, to do it the other way round.

Does anyone knows tools (phpscripts) to do this?

Thanks
Jul 17 '05 #1
1 5861

"Leo Heber" <le****@gmx.de> wrote in message news:22**************************@posting.google.c om...
Hello,

I need a tool (preferable in PHP to run on every webserver or very
easily accecable by PHP) which can convert data from XML to a
relational DBS (MySQL). I donnot want to stick around with complex
mapping rules, XSLT stuff or XML query languages. The XML should be
mapped automatically to tables. It might be nice, but its not
necessery, to do it the other way round.

Does anyone knows tools (phpscripts) to do this?

Thanks

Personally I have not seen nor looked for such a tool. I know most of today's DB go from table->XML pretty easily, but I have not
seen it the other way.

I assume you would want it to build relations for you and the whole bit?

<users>
<userInfo>
<Name>First guy</Name>
<Address>14 Summer Lane</Address>
<Phone>
<daytime>303-555-1212</daytime>
<evening>404-555-1212</evening>
</Phone>
</userInfo>
<userInfo>
<Name>Second guy</Name>
<Address>96 Bullers Parkway</Address>
<Phone>
<daytime>303-555-1414</daytime>
<evening/>
</Phone>
</userInfo>
</users>

would somehow translate to

Table users:
id |userInfo
1 | 1
2 | 2

Table userInfo:
id | Name | address | Phone
1 | first guy | 14 Summer Lane | 1
2 | Second guy | 96 Bullers Parkway | 2

Table Phone
id | daytime | evening
1 | 303-555-1212 | 404-555-1212
2 | 303-555-1414 |

In the most simple of cases like the above it probably wouldn't be too hard to code it up. Ideally the API would be able read the
DTD and code the DB schema from it.

To not leave you totally hanging, try ActiveLink http://www.active-link.com/intranet/software.php which provides an API into an XML
database which I think would be the hardest part of this project. This API has the advantage that it can be installed anywhere and
you are allowed to re-distribute it.

-CF
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Bramscher | last post by:
Here's one for pathological SQL programmers. I've got a table of things called elements. They're components, sort of like amino acids, which come together to form complex web pages -- as nodes...
0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
5
by: K | last post by:
I created a collection which is derived from ArrayList and implements IBindingList and ITypedList. Then I bound the DataSource of a data grid into the collection. It could show up the data but...
1
by: yuri | last post by:
Hello, Is it possible to create a binding that would map an input message with a part defined as a complex-type element to a url-encoded string? For example, wsdl file defines a message as ...
4
by: techiepundit | last post by:
I'm a Python newbie who just started learning the language a few weeks ago. So these are beginner questions. I have a list of sockets that I use for select.select calls like this: ...
1
by: Ram | last post by:
Hey, I'm having a trouble mapping a connecting between 2 of my tables. We have 2 tables - the simplest "dept", "emp" tables which are mapped to 2 classes. Class Dept contains 2 properties for...
0
by: AksIndya | last post by:
Hi All, I am a beginner with SSIS. Here I am with a simple extract mapping which extracts data from database (quite a few small tables and 3 big table @ 5million reacords each) simultaneously and...
3
by: Tom | last post by:
I don't want to re-invent the wheel and am looking for a simple implementation of a text viewer or RichTextBox in read only mode that allows rapid file positioning within large data files without...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.